Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript and JPEG

Status
Not open for further replies.

ajarantes

Programmer
Jan 29, 2003
8
Does anybody know if there's any kind of problem between JPEG and Javascript? Any kind of tip on how to use them? Or how to save the JPEG that will be used in Internet? I've been having a problem that now, I believe, is related to my JPEG pictures and not with my Javascript.

I have a homepage, which recently I changed completely.

In the old version, with frames, everything was fine except when the user decided to enlarge a picture or a map (both JPEG's). After doing so, the page stopped working or, at least, the frame with the thumbnails of pictures and maps.

In the new version, without frames, everything is fine again, except when the user decide to enlarge a picture or a map (both, again, JPEG's). After doing so, the pages stop, this time, completely. The internet session freezes and I'm obligated to use CTRL+ALT+DEL to end it.

One last point is that both versions of the page are heavily made using Javascript.
 
The enlargement of picture and window closing etc all works fine without any problems with my browser IE6, however, here is a syntax error in your javascript. If you turn error reporting to on in your browser you will get the following message when you enter the site
syntax error
line 1 char3
and the same message again after selecting the language.

Hope this helps It's not a lie if you believe it!

 
Aside from the first letter matching, there should be no unfortunate confluence of events regarding JavaScript and JPG images.

I see you're linking off to eight different JS files. Have you tried sequentially commenting out one at a time to see what's causing the hang? You can also toss "alert" windows at various locations to let you know when it's hanging.

That would be easier than slugging through eight different files (you couldn't fit all those functions in one file?!).

And it hung on me, too.

Cheers,

Edward "Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top