http://qs321.pair.com?node_id=224319


in reply to Perl + Frames + JavaScript

My JavaScript is a little rusty, but try adding "return true;" to the end of your javascript: line.

<a href="javascript:JSGotoRightFrame('/cgi-bin/dynamicScheduler.pl?tas +k=getClassInfo&uid=$uid&classid=$temp'); return true;">$subject $clas +snumber</a>

If this works, let us know. If not, I'll go and dust off my JS book and take a look for you. (Also, you should use="quotes" to set an attribute such as HREF in an anchor tag. It's better HTML that way, and is a start on the path of monkly righteousness.)

John J Reiser
newrisedesigns.com

Replies are listed 'Best First'.
Re: Re: (nrd) Perl + Frames + JavaScript
by Anonymous Monk on Jan 04, 2003 at 23:05 UTC
    John, Thanks for the update (and tips), but unfortunately it doesn't work. It prints "true" on the left frame while going to the link on the right frame. Any ideas? Thanks.

      See tachyon's post below. I completely forgot that you an redirect with CGI. That method is much more reliable (some people don't browse with JavaScript on) and allows you to work in Perl (which is ++ if you are more accustomed to Perl.)

      I looked on JavaScript.com, which is a pretty good resource for JS, and found this, if you want to stick with JavaScript.

      John J Reiser
      newrisedesigns.com