Jump to content
  • Advertisement
Sign in to follow this  
TomS

How I can execute Javascript into Perl?

This topic is 4299 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Quote:
Original post by TomS
"I don't know how I can execute an event of javascript into a link in a program in Perl.
This event of javascript have executed a function that return a HTML page.
Anybody know how I can it?

Is it possible do it this?:

$datos=$datos.""<a href='"" . $me . ""?C=OFERTAS2&EMPRESA="".$empresa_param.""&NREF="".$nref.""' onMouseOver=""linkFTecnica(nref2)"">"";


What is bad in this code?

Thank you very much. "


The forum uses HTML for links, so you need to use &lt; and &gt; instead of < and >.

In your actual Perl code, you should use &amp;EMPRESA= instead of just &EMPRESA=, otherwise your resulting HTML code will be malformed. You need single quotes around the onMouseOver attribute really, instead of double quotes as you have used (which I imagine is confusing Perl).

I don't know what exactly you want to do with this code, but it should work after fixing the above issues…

I'm confused why you have double quotes in your Perl code, and why you have quote marks surrounding your whole post.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!