Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-03-2004, 01:30 PM   #1
babu08
Registered User
 
Join Date: Aug 2004
Posts: 7
Default flash + Asp + html + Xml

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
babu08 is offline   Reply With Quote
Old 08-03-2004, 06:48 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

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.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 08-04-2004, 06:44 AM   #3
babu08
Registered User
 
Join Date: Aug 2004
Posts: 7
Default

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.
babu08 is offline   Reply With Quote
Old 08-05-2004, 11:24 AM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

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.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-05-2004, 02:10 PM   #5
babu08
Registered User
 
Join Date: Aug 2004
Posts: 7
Default

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
babu08 is offline   Reply With Quote
Old 08-05-2004, 02:13 PM   #6
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

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.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-06-2004, 05:59 AM   #7
babu08
Registered User
 
Join Date: Aug 2004
Posts: 7
Default

Thanks it worked out
babu08 is offline   Reply With Quote
Old 08-09-2004, 12:32 PM   #8
babu08
Registered User
 
Join Date: Aug 2004
Posts: 7
Default

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
babu08 is offline   Reply With Quote
Old 08-09-2004, 12:44 PM   #9
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

what difference does that make?
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-13-2004, 09:25 AM   #10
babu08
Registered User
 
Join Date: Aug 2004
Posts: 7
Default

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
babu08 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:28 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.