Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

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 meditating upon the Monastery: (3)
As of 2016-06-29 00:41 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (365 votes). Check out past polls.