Updated: 19/10/02; 11:46:46 AM.

Redirecting to my new site, halfpie.net
This site is no longer being updated. Please update your bookmarks!



daily link  Tuesday, 11 June 2002


Thanks to Jake (again) the tracking script has been fixed so that it loads itself into the homepage, and the homepage only. Here's what he said:
Ok -- you can do something like this:

In your #homeTemplate.txt, add something like this:

<% local (pta = html.getPageTableAddress ()); if pta^.radioResponder.fileBeingRendered == (user.radio.prefs.wwwFolder + "index.txt") {return (file.readWholeFile ("path_to_your_JavaScript_file"))} else {return ("")} %>

Note -- you'll want to remove all of the line-endings that my email app undoubtedly added to the above, otherwise you'll get a macro error in your page. Also (obviously), replace path_to_your_JavaScript_file with the full path to the text file that contains the JavaScript you want to add.

There /are/ more sophisticated ways to do this kind of thing, and if you want details, let me know. But for a one-off implementation, the above will work well enough.

I feel a bit guilty that I've managed to have yet another solution written for me... but anyway, thanks Jake.

Mark Paschal also contributed to my understanding in this area. Thanks Mark. Radio users are generally pretty helpful to one another, it seems.  
10:05:56 PM  permalink  [comment here ()]  


 
June 2002
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
May   Jul


Family
Friends' Sites
Friends Who Blog
Kiwi Bloggers
Interesting
News
Site Stuff
In Between Time


Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.






Copyright 2002 © Alan Macdougall.
Last update: 19/10/02; 11:46:46 AM.