> I'm trying to jury-rig someone elses javascript into a tiddler

How are you loading the 3rd-party javascript code?

> onClick='tickCpv("03000000",this.checked)'> <a href=''
> onClick='browseCodes("03000000");return false;'>
> ...
> The html will display in the tiddler, but when elements are clicked
> the onClick events won't fire.
> As it is, when I click on the <a> element, it tries to reload the
> tiddlywiki.  If I remove the href='' it does nothing.
> The checkbox will show as ticked, but again, no function call.
> I've tried putting alerts inside the browseCodes and tickCpv function
> and they are definely not being called.

Try adding "window." in front of the function calls, like this:

onClick='window.tickCpv("03000000",this.checked)'> <a href=''
onClick='window.browseCodes("03000000");return false;'>

HTH,
-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/tiddlywiki?hl=en.

Reply via email to