Sign in to follow this  
TomS

How I can execute Javascript into Perl?

Recommended Posts

MrEvil    970
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this