print qq(<html> <head> <script language="javascript"> // Get handle to the FormAPI/userscript frame. api = parent.getScriptFrame(); // Set the city and state. api.IWDatacapture.getItem("/city").setValue("Sunnyvale"); api.IWDatacapture.getItem("/state").setValue("CA"); </script> </head> <body> </body></html>);
my $state = "CA";my $city = "Sunnyvale";print qq(<html><head><script language="javascript">// Get handle to the FormAPI/userscript frame. api = parent.getScriptFrame(); // Set the city and state. api.IWDatacapture.getItem("/city").setValue("$city"); api.IWDatacapture.getItem("/state").setValue("$state");</script></head><body></body></html>);