Lightbox JavaScript problem in IE

This is a discussion on "Lightbox JavaScript problem in IE" within the JavaScript Forum section. This forum, and the thread "Lightbox JavaScript problem in IE are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack (2) Thread Tools
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old May 29th, 2007, 19:19
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbox JavaScript problem in IE

I'm using Lightbox for a gallery of images, and I've used it exactly as given, I haven't changed a thing. It works fine in Opera, Firefox, Safari and Netscape, but on IE, the first time I click on any image, the JavaScript doesn't seem to kick in (the larger image just opens in the same way as when JavaScript is disabled). If I re-click the same image, or any others, it all works fine and continues to work fine until I close the browser. When I re-open IE and try again, it does the same thing again.

Has anyone else had this happen? Or is it something I've done somehow

Last edited by VanessaJW; May 29th, 2007 at 19:21. Reason: Missed a word out
Reply With Quote

  #2 (permalink)  
Old May 30th, 2007, 00:37
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Lightbox JavaScript problem in IE

Do you have any other JS on the page? It could be a conflict of what gets to start up on the page load.
Reply With Quote
  #3 (permalink)  
Old May 30th, 2007, 05:28
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Lightbox JavaScript problem in IE

No, just that.
Reply With Quote
  #4 (permalink)  
Old May 30th, 2007, 07:50
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Lightbox JavaScript problem in IE

I've just realised I gave some misinformation, if I click away from the gallery page onto another page on the site, then click back to the gallery page, it happens again with the lightbox not working for the first image click. Not just when I close the browser and reopen.
Reply With Quote
  #5 (permalink)  
Old May 30th, 2007, 09:18
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Lightbox JavaScript problem in IE

You wouldn't happen to have a link would you? Or a JavaScript debugger? Maybe what you downloaded could've been slightly corrupted.
Reply With Quote
  #6 (permalink)  
Old May 30th, 2007, 12:22
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Lightbox JavaScript problem in IE

As mentioned in the Web Critique forum, this is the link for the site: http://www.aca-graphics-ltd.co.uk/ I know you said it worked fine for you Ryan, but I'm posting the link here anyway, in case anyone else has any insights that might help - of if anyone else can try it in IE to see if the same thing happens for them that would be a great help. Thanks.
Reply With Quote
  #7 (permalink)  
Old May 30th, 2007, 12:27
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Lightbox JavaScript problem in IE

Hmmm ... IE6 here and no problem.
Reply With Quote
  #8 (permalink)  
Old May 30th, 2007, 15:44
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,325
Blog Entries: 12
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Lightbox JavaScript problem in IE

Hi Vanessa, I mentioned in the site critique that it may just be a timing issue to render the code, but I was wrong (as usual)

In IE7 I get a JS runtime error on line 429 - can't execute code from a freed script

not sure what that is about but I'm sure someone will know.

Stew
Last Blog Entry: Opera 9.5 Released ! (Jun 12th, 2008)
Reply With Quote
  #9 (permalink)  
Old May 30th, 2007, 15:49
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,325
Blog Entries: 12
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Lightbox JavaScript problem in IE

found the below in a forum
Quote:
We faced this error when some <meta> tags come after <script> tags. Try to change the tags order, so <script>'s come after <meta>.
I would therefore move the
Code: Select all
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
to above
Code: Select all
<script type="text/javascript" src="lightbox.js"></script>
and see if that solves it.
Stew
Last Blog Entry: Opera 9.5 Released ! (Jun 12th, 2008)
Reply With Quote
  #10 (permalink)  
Old May 30th, 2007, 17:32
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Lightbox JavaScript problem in IE

Many thanks Karinne for checking it on yours, at least it seems it's working for most people which is a start

Stew - thanks so much for looking into it further, I really appreciate it, I'll try switching those things around later tonight, but I won't be able to check if it works until I go back to work tomorrow and have a look on IE there. So I'll report back tomorrow. You're a star
Reply With Quote
  #11 (permalink)  
Old May 31st, 2007, 08:06
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Lightbox JavaScript problem in IE

Stew - I love you! It works :jump: It's not up on the proper site yet, but it can be seen here: http://www.yoursecretgarden.co.uk/ (don't worry about the domain name, that's just a spare one I'm using to test things in). Of course if it worked fine for you the other way, then there won't be anything different to see here!
Reply With Quote
Reply

Tags
internet explorer, javascript, lightbox

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.webforumz.com/javascript-forum/39940-lightbox-javascript-problem-in-ie.htm
Posted By For Type Date
Ad Code Conflict with Lightbox Script This thread Refback Apr 6th, 2008 04:43
Ad Code Conflict with Lightbox Script This thread Refback Mar 9th, 2008 12:20

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with JavaScript and JSP pesho318i JavaScript Forum 0 Jan 23rd, 2008 18:04
external javascript problem Damian PHP Forum 0 Dec 5th, 2007 09:44
Firefox Javascript problem Darkink JavaScript Forum 9 Feb 6th, 2007 22:20
Javascript problem zc1 JavaScript Forum 2 Jan 15th, 2007 17:01
Javascript problem/question kb3llm129 JavaScript Forum 0 May 6th, 2006 22:03


All times are GMT. The time now is 10:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43