Perl WWW::Scripter, calling javascript from .js file -


the main html file contains following javascript source

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>hello worlds</title> <link rel="stylesheet" href="css/main_page.css" type="text/css"/> <link rel="stylesheet" href="css/page_content.css" type="text/css"/> <script type="text/javascript" src="js/jquery.js"></script>  <script type="text/javascript" src="js/util.js"></script> <script type="text/javascript" src="js/main_page.js"></script> <script type="text/javascript" src="js/page_content.js"></script> <script type="text/javascript" src="js/configurator.js"></script> <meta http-equiv="cache-control" content="no-cache"/> <meta http-equiv="pragma" content="no-cache"/> <meta http-equiv="expires" content="0"/> 

one of form's post called javascript function belongs page_content.js file.

i trying inovke function using following

$scripter->get('javascript:submitform()'); 

but it's not working. please me how can call function belongs page_content.js file.

if html page (with address stored in $url) contains (internally or externally) javascript define function/procedure submitform() can execute following code:

use www::scripter;  $w = new www::scripter; $w->use_plugin('javascript');  $w->get($url); $w->eval('submitform();'); 

for more information see www::scripter documentation.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -