Web Connection
How to do Javascript getTime in VFP?
03/11/2010
04:56:53 PM
2VW0ZEGNE Show this entire thread in new window
Gratar Image based on email address
From:
Brett Baggott
To:
All 
Attachments:
None
Subject line pretty much says it all. I'm trying to integrate/replace some existing code and I'm having to reverse engineer some server functionality. One thing that's giving me fits is trying to duplicate some HTML that calls a javascript file. All I can see is the HTML output but it calls the file like:

<script type="text/javascript" src="http://www.example.com/js/example.js?1268088105"></script>

I'm sure the server side is inserting the equivalent of the javascript getTime() at the end of the script reference because everything inside the javascript file is about time syncing with the server and such.

Anyone have any ideas? I've considered using wwHTTP to hit a webpage that returns getTime() in plaintext but that seems "wrong" somehow.

EDIT: Forgot wwHTTP can't execute javascript... DOH!

EDIT: Looks like I can use the MSScriptControl. Nice.