Sign in to follow this  
Dorown

Real time updating

Recommended Posts

Hi All,

I`ve download your trail version and I want to test it and see if its what im looking for.

My question: is it possible to update the Flash real time ?

I`ve change the XML variables and the board only update when I press F5/refresh.

Is it possible to made the flash read the new variables from the xml file and update every X minutes ?

Or I have to press F5 every time ?

Thanks & Best Regards,

Doron Caspi

Share this post


Link to post
Share on other sites

Hi Basundhara,

I didn`t fully understand how you can do that.

I tried to read the manual but I didn`t understand.

Can you please show me an example for this issue ?

Should I add a Line in the XML ?

How can I tell the flash to read the new data ?

I mange to update the xml by VBscript but i can only see the update after I refesh the page.

Can you explain how we can do that ?

Thanks,

Doron Caspi

Infoteck

 
Basundhara Ghosal

Share this post


Link to post
Share on other sites

Sorry, but I never worked with AJAX, you have any example ?

I saw the refreshInterval='3' and i tried to add it to the XML file but it didn`t help.

If you can show me a way to tell the flash to read again the Value from the XML file it will be great !

I made a script that change the Value in the XML and do refresh to the page, the problem is that when I refresh the Flash load again. and its not Real time updating.

Can some one please update code or any example for my issue ?

Thanks ALOT for you help!

Doron Caspi

Share this post


Link to post
Share on other sites

hello doron

u can just try with the below code in your .aspx page...

below code can help you to understand AJAX update panel control but dont forget to write update control

inside scriptmanager....

<form id="frmAJAXLiteralControl" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server" />

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<ContentTemplate>

-----write here for your graph control (which you are using)--------

</ContentTemplate>

</asp:UpdatePanel>

</form>

try this may be it will be useful for your problem::

 

regards

Vikas

 

Share this post


Link to post
Share on other sites

Hi All,

I dont use aspx. or any.

We want to make it local board on our office to cound the numbers of Tickets we have.

We have the HTML that read from the XML.

I just want to config some file (xml or the html its self) to tell the Flash to update from the XML every X min or something.

is it possible ? 

Thanks

Doron Caspi

Share this post


Link to post
Share on other sites
Vikasdotnetman (11/26/2009)
hello doron

u can just try with the below code in your .aspx page...

below code can help you to understand AJAX update panel control but dont forget to write update control

inside scriptmanager....

<form id="frmAJAXLiteralControl" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server" />

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<ContentTemplate>

-----write here for your graph control (which you are using)--------

</ContentTemplate>

</asp:UpdatePanel>

</form>

try this may be it will be useful for your problem::

 

regards

Vikas

 

 

Thanks for you mail,

I dont work with aspx.

I just want to add the ajax to html file is it possible to do so ?

 

Thanks,

Doron Caspi

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello Dorown,

You can set a timer to call a URL containing the data for the chart and update it in real-time.

This can be done using javascript.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Could you please refer to the following forum link where a similar example has been described?

http://www.fusioncharts.com/forum/Topic9443-11-1.aspx

<div id="map1div">

FusionMaps.

</div>

<script type="text/javascript">

//FusionMaps.js must be include

//Register With JS must of set ON ("1") [ RED BELOW] to access the map when updating

var map1 = new FusionMaps("../Maps/FCMap_Colorado.swf", "Map1Id", "300", "187", "0", "1" );

map1.setDataURL("colo2008.xml" );

map1.setTransparent(true);

map1.render("map1div" );

 

//Attempt to get the refresh working:

window.setInterval(function() { mapr('Map1Id'); }, 5000);

 

function mapr(mapId)

{

var umap=getMapFromId(mapId);

umap.setDataURL("colo2008.xml" );

}

</script>

Hope this helps.

Edited by Guest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this