korshak / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

Runway fails on IE reload or simple navigation #290

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When I visit for first time the page where runway is implemented 
everything goes OK.
2. If I go back to another html page and later I return to the page where 
runway should appears, I get the background gradient where the Runway 
widget is supposed to be, and no images.
3. I get the same behavior if I am viewing the page with runway showing the
images properly and reload the page pressing F5. 

What version of the product are you using? On what browser and what
operating system?

This only occours if I use IE (v. 7 and 8), but no with Nestcape. 

Please provide any additional information below.

I could reproduce the issue using the local web page included in the 
runway project.

Original issue reported on code.google.com by aelore...@gmail.com on 16 Jun 2009 at 1:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Can you give me details on your solution.  I'm having the same problem.  What 
was the 
configuration fix?

Thanks

Original comment by tonyga...@gmail.com on 20 Aug 2009 at 9:14

GoogleCodeExporter commented 9 years ago
Now, it is faling againg. I made more tests and It fails with the same 
behaviour.  I 
have to update the issue state.

My web pages are a php, ajax and html mix and it is difficult to debug the 
problem. 
I can reproduce the error with the RUNWAY example.

No lues at all right now.

Original comment by aelore...@gmail.com on 21 Aug 2009 at 7:16

GoogleCodeExporter commented 9 years ago
I have the same issue.
since it is all client side you can easily reproduce the issue by visiting this 
link
http://eliemakeup.com/glamPortfolio.php
and then navigating between the different portfolios.
the issue happens in IE6 and IE8.
much appreciate any suggestions people can offer.

Original comment by wangsan...@gmail.com on 25 Aug 2009 at 1:51

GoogleCodeExporter commented 9 years ago
so some more info. i thought it might be an issue with the <body onLoad="..."> 
tag so
i attached a piece of alert code. 

when the page is loaded an alert popup appears so i don't think that is the 
issue
anymore. This would indicate that the the function to create the widget is 
getting
executed. 

in IE6 i am getting a js error (screenshot) but not in IE8. 

side note: i tried using the IE8 debugger (press F12). it looks like firebug, 
but is
impossible to use (i find). so i have had like 0 luck debugging this so far.

Original comment by wangsan...@gmail.com on 25 Aug 2009 at 2:35

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Wang,

I can navigate through your web page without any problem. It works perfectly. 
How 
did you solve the problem?

I have IE 8 (8.0.6001.18813).

Thanks in advance,

Antonio

Original comment by aelore...@gmail.com on 25 Aug 2009 at 10:26

GoogleCodeExporter commented 9 years ago
oh that's wierd. i didn't do anything. as far as i know it still doesn't work. 
did
you try jumping from one protfolio to another, etc? i'm assuming you did just 
because
that was in the original description of your problem....

Original comment by wangsan...@gmail.com on 25 Aug 2009 at 4:34

GoogleCodeExporter commented 9 years ago
further notes, i discovered if i clear the browser's cache (IE6 and IE8) it 
works as
if visting the site for the first time, but clicking on a subsequent page 
causes it
to break again...=(

Original comment by wangsan...@gmail.com on 26 Aug 2009 at 2:19

GoogleCodeExporter commented 9 years ago
this issue is really consuming me.
i found a post by David H. (original author and maintainer) that the version at 
this
link is intended to be the latest v1.1 release when it actually gets released
http://trunk.simile-widgets.org/runway/
(the astute will observe some nifty new features)

I thought it may be an implementation problem that is causing the ie6 / ie8 bug 
but
have discovered that I can reproduce the bug on two computers at home on both 
the
current website and the v1.1 website mentioned above.

steps to reproduce:
1. http://trunk.simile-widgets.org/runway/
2. click on a hyeprlink (say documentation)
3. revisit http://trunk.simile-widgets.org/runway/. It doesn't matter how you 
revisit
the page -- back button, retype / copy-paste url, it all results in only the
background being rendered and not the images.

David help please? i think you may be the only person who may have a clue as to 
what
is going on here?

Original comment by wangsan...@gmail.com on 26 Aug 2009 at 7:11

GoogleCodeExporter commented 9 years ago
Hi Wang,

I made your "steps to reproduce" and it worked nicely.

I will test it for a while, if I find something I will post here the findings.

Original comment by aelore...@gmail.com on 26 Aug 2009 at 8:48

GoogleCodeExporter commented 9 years ago
Regarding your web page, I navigated through portfolios without problems (all 
of 
them with images and "scrolling")...

Original comment by aelore...@gmail.com on 26 Aug 2009 at 8:50

GoogleCodeExporter commented 9 years ago
Regarding my application:

I have two versions of it, the older works perfectly, but the newer has the 
issue. I 
make a lot of changes between these versions without testing this feature, so 
it 
could be difficult to find the bug, but I will try. I made important changes in 
the 
head html section (a lot of php sending html code), and perhaps it’s an html 
code 
bug, I don't know.

Stay tuned...

Original comment by aelore...@gmail.com on 26 Aug 2009 at 8:59

GoogleCodeExporter commented 9 years ago
Hi all, 

I've certainly been feeling the pain on this issue. To confirm comments before, 
the
first instance of a page load containing Runway on IE8 is successful, subsequent
reloads on that same instance of IE8 result in no images/functionality being 
loaded.

If you set the Internet Options -> Browsing History -> Settings -> Check for new
versions.... to Everytime, then you don't experience the issue. This confirms 
to me
that the problem was IE cache based. Further research took me to the following 
link:
http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_22050560.html

Digging around, I found that in Runway, the src file is being set within the
runway.js file, around line 108:

 this._elmt.innerHTML = Runway.Flash.generateObjectEmbedHTML(
        "src",                  Runway.swf

I basically inserted a randomly generated number onto the 'Runway.swf' on my 
locally
hosted version of runway.js and this seems to have solved the issue. The code 
now
looks like:

    var random = new Date().getTime().toString();
    this._elmt.innerHTML = Runway.Flash.generateObjectEmbedHTML(
        "src",                  Runway.swf + "?" + random,

Would be interested to know if this resolves the issue for anyone else....and 
whether
anyone sees any problems with this. 

Many thanks

Original comment by farhan.i...@gmail.com on 1 Dec 2009 at 6:06

GoogleCodeExporter commented 9 years ago
wow great work Farhan!
This has been bugging me for the longest time.
I can confirm this fix works for me and all previously seen issues no longer 
appear.

I always suspected it was some sort of caching issue but could never nail it 
down.
Thanks for going through the code and coming up with the fix.

Original comment by wangsan...@gmail.com on 2 Dec 2009 at 6:00

GoogleCodeExporter commented 9 years ago
no problem, really glad it works for you too - I certainly felt your pain!

ps, love the FX portfolio on your site, haha

Original comment by farhan.i...@gmail.com on 2 Dec 2009 at 6:48

GoogleCodeExporter commented 9 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:35