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. How

Recommended Answers

All 3 Replies

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?

It's not easy to understand what you are saying you want to do.

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?

It looks like you are having problems with the quote characters.
Change "linkFTecnica(nref2)" to 'linkFTecnica(nref2)' . Your perl script is probably aborting with compile errors complaining about BAREWORD, right?

$datos .= qq~<a href="$me?C=OFERTAS2&EMPRESA=$empresa_param&NREF=$nref" onMouseOver="linkFTecnica(nref2)">~;
commented: what can i say? superior solution ;) +1

looks lie a job for print qq!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.