Here's an example of that test version of the code from one of my
development gadgets:

<script type="text/javascript">

        function script( url, seconds ) {
                document.write(
                        '<script type="text/javascript" src="', url, '?t=', 
+new Date,
'">',
                        '<\/script>'
                );
        }

        script( 'http://mytestmachine/elections/poll411-map.js' );

</script>

This loads my local (hosted on mytestmachine) copy of poll411-map.js
with a t=NNNNN cachebuster in the .js URL.

-Mike

On Nov 24, 8:34 am, Michael Geary <[EMAIL PROTECTED]> wrote:
>
> To make development easier, make a second copy of your .xml file that
> loads a local copy of the .js file (e.g. from localhost or a file:
> URL) and includes a cachebuster in the .js file URL. Where the XML
> files above have this call:
>
> _IG_GetCachedUrl( url, { refreshInterval:seconds } ),
>
> replace it with:
>
> url, '?', (+new Date),
>
> and make url your local URL.
>
> Now when you use this test copy of the gadget, you'll be loading all
> the JS locally and with a timestamp in the URL.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to