Link to home
Start Free TrialLog in
Avatar of VapiSoft
VapiSoft

asked on

Javascript - intracting with another page.

Hi,

Can I lanch a page (window.open) that is not mine (I cannot change it) and then
interact (get data or write to <input>) with controls in it?
ASKER CERTIFIED SOLUTION
Avatar of Jini Jose
Jini Jose
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VapiSoft
VapiSoft

ASKER

To stergium,

How do I do that?
This is good enouh for me if I can do it bacsuse What I need is to automate a test their.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,
I tried to run it and I receive an error - Object expected. User generated image
I forgot to add the code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>JS Bar Graph</title>
<script type="text/javascript" src="jquery.js"></script> 
<script type="text/javascript">
$(document).ready(function() {
$.ajax({
  url: "https://www.misim.gov.il/svInfoNadlan/index.html",
  context: document.body,
  success: function(){
$('#input1').val('values'); // input1 that gets the value 'values'
  }
});
 });
</script>
 
</head>
<body>
<div id="input1"></div>
</body>
</html>

Open in new window