Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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/ +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

Comment on Re: (nrd) Perl + Frames + JavaScript
Download Code
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, which is a pretty good resource for JS, and found this, if you want to stick with JavaScript.

      John J Reiser

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2015-11-29 16:10 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls