HighDots Forums  

links in Mozilla

alt.html alt.html


Discuss links in Mozilla in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sonnich
 
Posts: n/a

Default links in Mozilla - 07-10-2006 , 09:45 AM






Hi all!

I have this in IE:
The font change works in both IE and mozilla, but the link does not
work in mozilla... can anyone help stupid me?

BR
Sonnich

<a
onmouseout="this.className=&quot;&quot;"
onmouseover="this.className=&quot;BOLD&quot;"

onclick="OpenWin(&quot;file:///\\\\some_server/some_folders/file.pdf&quot;">
here
</a>

The openwin is :

function OpenWin(targ)
{
alert (targ); // testing
window.open(targ);
}


Reply With Quote
  #2  
Old   
Benjamin Niemann
 
Posts: n/a

Default Re: links in Mozilla - 07-10-2006 , 10:01 AM






Sonnich wrote:

Quote:
Hi all!

I have this in IE:
The font change works in both IE and mozilla, but the link does not
work in mozilla... can anyone help stupid me?

a
onclick="OpenWin(&quot;file:///\\\\some_server/some_folders/file.pdf&quot;"
here
/a
Backslashes are not allowed in URLs. Although Windows uses the backslash as
a seperator, always use the forward slash in URLs. IE is known
to 'auto-correct' backslashes into correct slashes, but other browsers are
not so forgiving. The correct URL should be
<file://some_server/some_folders/file.pdf>.


--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/


Reply With Quote
  #3  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: links in Mozilla - 07-10-2006 , 10:07 AM



Sonnich wrote:
Quote:
Hi all!

I have this in IE:
The font change works in both IE and mozilla, but the link does not
work in mozilla... can anyone help stupid me?

BR
Sonnich

a
onmouseout="this.className=&quot;&quot;"
onmouseover="this.className=&quot;BOLD&quot;"

onclick="OpenWin(&quot;file:///\\\\some_server/some_folders/file.pdf&quot;"
here
/a

The openwin is :

function OpenWin(targ)
{
alert (targ); // testing
window.open(targ);
}

You've made the most common Windows-centric error, '\' backslashes are
*Windows only*, for the rest of the 'world' it is '/' forward slashes.

file://///some_server/some_folders/file.pdf

and the onclick handler is JavaScript so you would not use HTML
entities, but single quote in this situation

.... onclick="OpenWin('file://///some_server/some_folders/file.pdf');">

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #4  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: links in Mozilla - 07-10-2006 , 10:12 AM



Benjamin Niemann wrote:
Quote:
Sonnich wrote:

Hi all!

I have this in IE:
The font change works in both IE and mozilla, but the link does not
work in mozilla... can anyone help stupid me?

a
onclick="OpenWin(&quot;file:///\\\\some_server/some_folders/file.pdf&quot;"
here
/a

Backslashes are not allowed in URLs. Although Windows uses the backslash as
a seperator, always use the forward slash in URLs. IE is known
to 'auto-correct' backslashes into correct slashes, but other browsers are
not so forgiving. The correct URL should be
file://some_server/some_folders/file.pdf>.


Not enough slashes there for any browser other than IE, need 5.

file://///server_name...


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #5  
Old   
Sonnich
 
Posts: n/a

Default Re: links in Mozilla - 07-10-2006 , 10:27 AM




Jonathan N. Little wrote:
Quote:
Sonnich wrote:
Hi all!

I have this in IE:
The font change works in both IE and mozilla, but the link does not
work in mozilla... can anyone help stupid me?

BR
Sonnich

a
onmouseout="this.className=&quot;&quot;"
onmouseover="this.className=&quot;BOLD&quot;"

onclick="OpenWin(&quot;file:///\\\\some_server/some_folders/file.pdf&quot;"
here
/a

The openwin is :

function OpenWin(targ)
{
alert (targ); // testing
window.open(targ);
}


You've made the most common Windows-centric error, '\' backslashes are
*Windows only*, for the rest of the 'world' it is '/' forward slashes.

file://///some_server/some_folders/file.pdf

and the onclick handler is JavaScript so you would not use HTML
entities, but single quote in this situation

... onclick="OpenWin('file://///some_server/some_folders/file.pdf');"
None of the suggestions work.

I have the code as here now, and tried whatever (except the right
thing).
I have a PHP thing, which runs on a server, then creating a PDF file on
another server, which I'd like to open.
The alert is present, but the file is never opened, not even a window.



Reply With Quote
  #6  
Old   
Sonnich
 
Posts: n/a

Default Re: links in Mozilla - 07-10-2006 , 11:14 AM




Sonnich wrote:
Quote:
Jonathan N. Little wrote:
Sonnich wrote:
Hi all!

I have this in IE:
The font change works in both IE and mozilla, but the link does not
work in mozilla... can anyone help stupid me?

BR
Sonnich

a
onmouseout="this.className=&quot;&quot;"
onmouseover="this.className=&quot;BOLD&quot;"

onclick="OpenWin(&quot;file:///\\\\some_server/some_folders/file.pdf&quot;"
here
/a

The openwin is :

function OpenWin(targ)
{
alert (targ); // testing
window.open(targ);
}


You've made the most common Windows-centric error, '\' backslashes are
*Windows only*, for the rest of the 'world' it is '/' forward slashes.

file://///some_server/some_folders/file.pdf

and the onclick handler is JavaScript so you would not use HTML
entities, but single quote in this situation

... onclick="OpenWin('file://///some_server/some_folders/file.pdf');"
Some results:

<href="file://///some_server/some_folders/file.pdf*">
- does not work in IE (no action at all)
- works in mozilla, but returns an error 443 at all times.



Reply With Quote
  #7  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: links in Mozilla - 07-10-2006 , 12:27 PM



Sonnich wrote:
Quote:
Sonnich wrote:
Jonathan N. Little wrote:
Sonnich wrote:
Hi all!

I have this in IE:
The font change works in both IE and mozilla, but the link does not
work in mozilla... can anyone help stupid me?

BR
Sonnich

a
onmouseout="this.className=&quot;&quot;"
onmouseover="this.className=&quot;BOLD&quot;"

onclick="OpenWin(&quot;file:///\\\\some_server/some_folders/file.pdf&quot;"
here
/a

The openwin is :

function OpenWin(targ)
{
alert (targ); // testing
window.open(targ);
}

You've made the most common Windows-centric error, '\' backslashes are
*Windows only*, for the rest of the 'world' it is '/' forward slashes.

file://///some_server/some_folders/file.pdf

and the onclick handler is JavaScript so you would not use HTML
entities, but single quote in this situation

... onclick="OpenWin('file://///some_server/some_folders/file.pdf');"

Some results:

href="file://///some_server/some_folders/file.pdf*"
- does not work in IE (no action at all)
- works in mozilla, but returns an error 443 at all times.

Not aware of an error code 443 (up to 425, but not 443). Are use sure it
is not a post address number not an error code? 443 is standard SSL
HTTPS. Anyway, Dow you have a webserver running? If so, don't use
file:// protocol but http:// and you will have better results....

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #8  
Old   
JDS
 
Posts: n/a

Default Re: links in Mozilla - 07-10-2006 , 12:30 PM



On Mon, 10 Jul 2006 08:14:49 -0700, Sonnich wrote:

Quote:
Some results:

href="file://///some_server/some_folders/file.pdf*"

I seriously doubt that "file://" will work.

--
JDS



Reply With Quote
  #9  
Old   
Rik
 
Posts: n/a

Default Re: links in Mozilla - 07-10-2006 , 01:52 PM



JDS wrote:
Quote:
On Mon, 10 Jul 2006 08:14:49 -0700, Sonnich wrote:

Some results:

href="file://///some_server/some_folders/file.pdf*"


I seriously doubt that "file://" will work.
Try the IP-adress instead of the servername.

else:
http://ieview.mozdev.org/ (it is said it can be made to open file://*
automatically in IE).
or:
apt-get install mozilla-firefox-gnome-support

Grtz,
--
Rik Wasmus




Reply With Quote
  #10  
Old   
Sonnich
 
Posts: n/a

Default Re: links in Mozilla - 07-17-2006 , 12:09 PM




Rik wrote:
Quote:
JDS wrote:
On Mon, 10 Jul 2006 08:14:49 -0700, Sonnich wrote:

Some results:

href="file://///some_server/some_folders/file.pdf*"


I seriously doubt that "file://" will work.

Try the IP-adress instead of the servername.

else:
http://ieview.mozdev.org/ (it is said it can be made to open file://*
automatically in IE).
or:
apt-get install mozilla-firefox-gnome-support
Sorry, I haven't been dealing with this for some time.

I tried to pull the PDF file from windows explorer into Firefox - the
result (file://///server/folder/file.pdf) opened well. I tried to copy
that into HTML as follows:

<a
href="file://///server_name/some_folder/some_file.pdf">test1</a><br>';
<a
href="https://172.25.33.31/some_folder/some_file.pdf">test2</a><br>';
<a
href="file://///172.25.33.31/some_folder/some_file.pdf">test3</a><br>';

Only the 2nd one procudes "Bad Request (Invalid Hostname)", the other
(1 and 3) do not no anything. Appearently there is a difference for
opening it by a link and the mouse.
So far I have not found solution for this.

BR
Sonnich



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.