From: Naomi M. <na...@sm...> - 2007-01-16 12:00:23
|
All I need it to do is close when the user hits the close link (in all browsers), at the moment it just goes off to Facility anyhow and I'm trying to stop it doing that. I'm coming to the conclusion that I'll have to do it another way. It worked fine in Safari if you just used href=".", but not in FF or IE, so I'm trying to find a solution that works for all. On 16 Jan 2007, at 11:46, Colin Tatham wrote: > I'm not really following what you need the template to do Naomi, > but is > there a way you can achieve what you want to another way, that > possibly > doesn't involve JavaScript? Maybe use some conditional logic in the > template to call different methods in the Facility class you're using? > > Colin > > Matthew Buckett wrote: >> Naomi Miles wrote: >>> Nope, it's not a form. After I hit the 'close' link, it still goes >>> to Facility and tries to execute the getReport method defined in the >>> <call>, and I want to stop it from doing this. >> >> Firebug pointed me in the direction for this which I can't >> recommend enough. >> >> http://getfirebug.com/ >> >> Remove the return, the value of the last statement should be >> enough so >> it ends >> window.close();false;"> >> >> I'm not sure this works in javascript URLs but I think it's how >> onsubmit >> for forms normally works. >> >> >> --------------------------------------------------------------------- >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn >> cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> >> >> --------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> Bodington-developers mailing list >> Bod...@li... >> https://lists.sourceforge.net/lists/listinfo/bodington-developers > > > -- > ____________________________________ > Colin Tatham > VLE Team > Oxford University Computing Services > > http://www.oucs.ox.ac.uk/ltg/vle/ > http://bodington.org > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers |