The problem is that the function doesn't even get called after using addEvent.
I removed all plugins, switched to default tpl and tried a variation of: addEvent(thisPopup, 'change', function(){linkToPage(thisPopup)}); addEvent(thisPopup, 'change', function(){linkToPage(this)}); addEvent(thisPopup, 'change', function(){linkToPage()}); addEvent(thisPopup, 'change', linkToPage);
I'll break it out of DW and see if I can find out more...martin
Martin Tschofen writes:
> addEvent(thisPopup, 'change', function(){linkToPage(thisPopup)});
try passing this in the callback function. eg:
addEvent(thisPopup, 'change', function(){linkToPage(this)});
Variable scope in closures is a mystery sometimes. -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist
-- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist