[jQuery] Re: help! imagebox disaster - website crashes safari

2007-06-13 Thread Robert Wagner


2007/5/15, Klaus Hartl [EMAIL PROTECTED]:

Look for occurences of $(elem).hmtl('...'). This causes Safari to crash
for me as well. You have to replace it with $(elem)[0].innerHTML = '...'

If you're using jQuery 1.1.2 that is. That should be fixed with the
latest version.




wow. just found your answer looking for safari crash. had the same
problem with
$(elem).append(html)
where html was an ajax result. i changed this to $(elem).load(url)
which doesn't seem to use the html() function and works. just to let
you know...

-robert



-- Klaus




[jQuery] Re: help! imagebox disaster - website crashes safari

2007-05-15 Thread Klaus Hartl


Robert O'Rourke wrote:


Help!

   I'm really desperate here, the site I just set live is causing safari 
to crash when you click through to a property page.. not good. The only 
unique thing about the page is that I am including imagebox and 
interface in the head. Are there known issues with this in safari? Could 
it be the other effects interfering with it?


   url is http://www.italianpropertygallery.com, if you click through to 
any property safari crashes. I don't have a mac so can't test it 
properly here.


   I'd appreciate any suggestions or advice or I'm going to have to just 
hide that js from safari. All other browsers are working as expected.


   Thanks in advance,
   Rob



Look for occurences of $(elem).hmtl('...'). This causes Safari to crash 
for me as well. You have to replace it with $(elem)[0].innerHTML = '...'


If you're using jQuery 1.1.2 that is. That should be fixed with the 
latest version.




-- Klaus



[jQuery] Re: help! imagebox disaster - website crashes safari

2007-05-15 Thread Erik Beeson


I don't have a suggestion on why it happens, but I can confirm that it
kills Safari. I see you're using an old version of jQuery (rev 1460,
current is 1465). Maybe try updating? Or maybe try the current SVN
version?

Also, you might want to move that animating that you're doing at the
top of $(document).ready(function() {...}) to
$(window).load(function() {...}). I don't know if animating before the
page has loaded would cause Safari to crash, but you probably want the
animation to start on load anyways.

--Erik


On 5/15/07, Robert O'Rourke [EMAIL PROTECTED] wrote:


Help!

I'm really desperate here, the site I just set live is causing
safari to crash when you click through to a property page.. not good.
The only unique thing about the page is that I am including imagebox and
interface in the head. Are there known issues with this in safari? Could
it be the other effects interfering with it?

url is http://www.italianpropertygallery.com, if you click through
to any property safari crashes. I don't have a mac so can't test it
properly here.

I'd appreciate any suggestions or advice or I'm going to have to
just hide that js from safari. All other browsers are working as expected.

Thanks in advance,
Rob



[jQuery] Re: help! imagebox disaster - website crashes safari

2007-05-15 Thread Robert O'Rourke


Klaus Hartl wrote:


Robert O'Rourke wrote:


Help!

   I'm really desperate here, the site I just set live is causing 
safari to crash when you click through to a property page.. not good. 
The only unique thing about the page is that I am including imagebox 
and interface in the head. Are there known issues with this in 
safari? Could it be the other effects interfering with it?


   url is http://www.italianpropertygallery.com, if you click through 
to any property safari crashes. I don't have a mac so can't test it 
properly here.


   I'd appreciate any suggestions or advice or I'm going to have to 
just hide that js from safari. All other browsers are working as 
expected.


   Thanks in advance,
   Rob



Look for occurences of $(elem).hmtl('...'). This causes Safari to 
crash for me as well. You have to replace it with $(elem)[0].innerHTML 
= '...'


If you're using jQuery 1.1.2 that is. That should be fixed with the 
latest version.




-- Klaus



Thanks a million Klaus and Erik,
   Upgrading to the latest build did sort out the crashing however 
safari still failed to load the images via imagebox. I found this 
replacement version of the script: 
http://www.intelliance.fr/jquery/imagebox/ that solves the problem. All 
working now, panic over... phew!


   I've checked out the latest build out via svn now so I have a first 
port of call for debugging. And less of these frantically bashed out 
emails =P


   Erik, I moved the animation effect back inside the $(document).ready 
function some time ago, I don't know how that old code ended up on your 
computer... our servers do some funny caching at the moment so I'll have 
to check it out.


   Thanks again,
   Rob