Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: (nrd) Perl + Frames + JavaScript

by newrisedesigns (Curate)
on Jan 04, 2003 at 22:08 UTC ( #224319=note: print w/ replies, xml ) Need Help??


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


Comment on Re: (nrd) Perl + Frames + JavaScript
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://224319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-08-30 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls