Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorwings
    • CommentTimeJun 23rd 2007 edited
     
    First, have to say, I'm really not a programmer, have just done a course or two at Uni (a long time ago) lol. I'm developing a website that displays graph and obviously have choosen flash based graphing.

    The data being passed in is dynamic, if I change the data on another page, then go back to the flash report page, 90% of the time the graph does get refreshed. I can live with that, so everything worked quite well until my users want to have SSL enabled.

    Under SSL, the flash graph would NOT get refreshed 90% of the time. It seems that if the browser is closed, the flash graph will get refreshed, but if I just surf between the pages, it would not.

    This is a problem in IE6, IE7, but not in Firefox.

    The header has already got "no-cache" in it.

    I'm really desperate on this, the deadline is just around the corner and all :(

    Any suggestions anyone could give, it would be much appreciated.

    Thanks

    Grace
    • CommentAuthorAran
    • CommentTimeJun 24th 2007
     
    Grace.

    Try adding a random number to the end of the location of your xml / data file file. IE has some bad caching issues and does not behave as it should.

    So, if you previously added the data location like:

    so.addVariable("datasource", "http://some.server/some.xml");

    add the "random" number to fool IE into thinking it is a new file on every view like:

    so.addVariable("datasource", "http://some.server/some.xml?random=" + new Date().getTime());

    This will end up adding the current milliseconds to the end like: http://some.server/some.xml?random=345756490


    This should soplve you issues.
    • CommentAuthorwings
    • CommentTimeJun 25th 2007
     
    Hi Aran, thanks for your tip. I made a change based on what you said. The problem still persists, so I'm not sure if I implemented it right. I've copied the relavant section in the two files it generated, could you check it for me please?

    First time
    <param name="movie" value="/charts/charts.swf?&library_path=/charts/charts_library&xml_source=/graph/graph?params_string=1180612800.0_1183204800.0_1_300_false_&rand=-965153224"></param>

    Second time
    <param name="movie" value="/charts/charts.swf?&library_path=/charts/charts_library&xml_source=/graph/graph?params_string=1180612800.0_1183204800.0_1_300_false_&rand=-964854330"></param>

    Thanks a lot

    Grace
    • CommentAuthorAran
    • CommentTimeJun 25th 2007
     
    Grace.

    Hmmm...

    Have you tried specifing an absolute path for your xml source? I am unsure what library path does, but if that is a call to the server, then absolute that path too.

    Also, are you calling the data source through SSL protocol? Unless you specify the https:// in the path to the server in the addVariable() / flashvars, I don't think flash will be calling it securely. Perhaps IE's security model is blocking something ?

    As you can tell, I am just logically going through all possibilities of what could be the issue. Without seeing the page itself I don't know what else to suggest right now. Anyone else?

    The randomisation looks like it is working as intended (although the - in front of the value is a bit strange. Is you server clock set correctly ?)
    • CommentAuthorwings
    • CommentTimeJun 25th 2007
     
    Hi Aran. It all works now, we put the randomisation at the end and also changed it to uniqueID instead of Rand, and it worked like a charm.

    Gosh, that was a major crises over, our launching date is next Monday. Thanks so much for your help. Sometimes, I'm really attempted to put "Who Stole My Money prefers Firefox" on our website :)