PDA

View Full Version : flash + Asp + html + Xml


babu08
08-03-2004, 02:30 PM
Hi,
I have embedde a flash in a html page. that flash has got asp scripting,XML

that asp , create a xml file from and flash fetch the xml file back

my problem is its my flash embedd in html is not refreshing

specific:

html -> Flash -> Asp
Asp ->fetch records from database and create xml file
that xml file will be read back by the flash. the problem i newly added recorde cannot be seen in the flash, but its there in database.

every time i close the browser and open then it works

can anyone help me plz

tg
08-03-2004, 07:48 PM
when the database is updated, you will need to return something in order to trigger an event, once the event is triggered, you will need to have flash reload your xml file.

babu08
08-04-2004, 07:44 AM
the problem is how to refresh the html page embedd with the flash. its not refreshing. only when i refresh i cld able to get the latest updates.

hangalot
08-05-2004, 12:24 PM
append a randon querystring element to the url. that will force a reload. also in the asp
use the following command
<%
response.expires = -1
%>
telling the browser that this content is not cachable.

babu08
08-05-2004, 03:10 PM
i tried its not coming:) for first times its coming then the subsequest times no

but the xml file has the records till i upadted last but in my flash its not showing. it shows till the preivious recors not the latest

hangalot
08-05-2004, 03:13 PM
did u append a random querystring? that is a sure fire method, since the url is unique each time and the browser is forced to load the page.

babu08
08-06-2004, 06:59 AM
Thanks it worked out :) :)

babu08
08-09-2004, 01:32 PM
but it create multiple files in cache how do i avoid it thinks its beauce of the query string parameter with time, so every time i acces the record i create a xml file in cache. how this can be prevented

hangalot
08-09-2004, 01:44 PM
what difference does that make?

babu08
08-13-2004, 10:25 AM
when i update one record xml create with the value 1 and when i create second record another file will have the value 1 and 2 so two xml files are there now

i hope u understand now

hangalot
08-13-2004, 10:44 AM
no. i don't understand what u mean.