Quantcast
Channel: Adobe Community : All Content - ASP VBScript Development (read only)
Viewing all articles
Browse latest Browse all 106

Spry Data XMLDataSet Question

$
0
0

Hi There

 

I am not sure if my question is maybe beyond the scope of this area but here goes anyway...

 

I am using as you can see an XMLDataSet which is retrieving at 40 second intervals...

<script type="text/javascript">
<!--
var Dedications = new Spry.Data.XMLDataSet("/sample11.asp", "export/row",{useCache:false,loadInterval:40000});
//-->
</script>

The following fields and values are retrieved

Artist   = Europe

Album  = 1986 UK Chart Hits

Title     = The Final Countdown

Duration = 240656

Date_Played = 07/06/2009 10:07:40

 

and displayed on my .asp page fine all works well...

 

I can pull the server Time() or Date() no problem, however what i would like to do or have tried to do with no success is to have a calculation run that sets the interval value of the XMLDataSet to equal as follows...

 

NewDuration = Duration - (now() - {Dedications::Date_Played})

 

I have looked at the possibility of using a javascript timer but it blew my mind out completely not being a seasoned programmer, the NewDuration is what or when i would like the XMLDataSet to refresh itself, this is to cut down on the calls to the server as it would only call at the end of each track and not every 40 seconds.

 

Would i be right in thinking it would have to have some sort of javascript function created to do this?

 

Many thanks in advance for any help or enlightenment anyone can throw on this

 

Regards

 

Ray


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>