HighDots Forums  

Re: Image Load in IE vs. Mozilla

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Image Load in IE vs. Mozilla in the Javascript forum.



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

Default Re: Image Load in IE vs. Mozilla - 12-02-2003 , 06:34 AM






On Sun, 30 Nov 2003 19:15:10 GMT, "Frank Carr" <jfcarr (AT) msn (DOT) com> wrote:

Quote:
I'm trying to load a matching image when a link is clicked. The following
test page works OK (the pictures load when their link is clicked) in IE6 but
it does not work in Mozilla 1.5.

------------------
a href="javascript:ShowPic1()">Picture #1</a><br

------------------

TIA for any assistance...
"<a href="javascript:..." is not a good move, as it means that anyone
without Javascript can't see the picture at all. Better to have
<a href="images/test_1.gif" and use onclick to place it where you want
on the page.

--
Stephen Poley


Reply With Quote
  #2  
Old   
Frank Carr
 
Posts: n/a

Default Re: Image Load in IE vs. Mozilla - 12-02-2003 , 08:40 AM






"Stephen Poley" <sbpoley (AT) xs4all (DOT) nl> wrote


Quote:
"<a href="javascript:..." is not a good move, as it means that anyone
without Javascript can't see the picture at all. Better to have
a href="images/test_1.gif" and use onclick to place it where you want
on the page.
The actual pages I'm putting together will probably need to require
Javascript. In the 'non-test' pages a variable number of image files are
selected and uploaded by a separate backend process on a regular basis and a
list of files and their description is put into an array in a separate JS
file. Without having Javascript, the link itself wouldn't be there in the
first place since it's generated in the onload() processing.

If you have any alternative suggestions on how to do this (aside from
running things server side in ASP, JSP, or PHP which I can't do in this
case) I'd like to hear about them.

--
Frank Carr
jfcarr (AT) msn (DOT) com
http://www15.brinkster.com/vbnotebook




Reply With Quote
  #3  
Old   
Stephen Poley
 
Posts: n/a

Default Re: Image Load in IE vs. Mozilla - 12-02-2003 , 03:41 PM



On Tue, 02 Dec 2003 13:40:22 GMT, "Frank Carr" <jfcarr (AT) msn (DOT) com> wrote:

Quote:
"Stephen Poley" <sbpoley (AT) xs4all (DOT) nl> wrote in message
news:4stosv4r9k27li3hddirclt8rpvifeno97 (AT) 4ax (DOT) com...

"<a href="javascript:..." is not a good move, as it means that anyone
without Javascript can't see the picture at all. Better to have
a href="images/test_1.gif" and use onclick to place it where you want
on the page.

The actual pages I'm putting together will probably need to require
Javascript. In the 'non-test' pages a variable number of image files are
selected and uploaded by a separate backend process on a regular basis and a
list of files and their description is put into an array in a separate JS
file. Without having Javascript, the link itself wouldn't be there in the
first place since it's generated in the onload() processing.

If you have any alternative suggestions on how to do this (aside from
running things server side in ASP, JSP, or PHP which I can't do in this
case) I'd like to hear about them.
Well, I'm not 100% sure what your situation is. But if you've got things
being changed dynamically by a back-end process, it does sound as if PHP
/ JSP / ASP would be the way to go. Or Perl. If you are running such
processes, why is it not possible to use one of those four?

--
Stephen Poley


Reply With Quote
  #4  
Old   
Frank Carr
 
Posts: n/a

Default Re: Image Load in IE vs. Mozilla - 12-02-2003 , 08:14 PM



"Stephen Poley" <sbpoley (AT) xs4all (DOT) nl> wrote


Quote:
Well, I'm not 100% sure what your situation is. But if you've got things
being changed dynamically by a back-end process, it does sound as if PHP
/ JSP / ASP would be the way to go. Or Perl. If you are running such
processes, why is it not possible to use one of those four?
As usual, it goes back to the server that I have to run this on (ie a client
with cheap rented web space). It would be my preference to run it under ASP
or ASP.NET since that's what I have the most experience in but I don't get
that choice this time around.

--
Frank Carr
jfcarr (AT) msn (DOT) com
http://www15.brinkster.com/vbnotebook




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.