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?
VapiSoftAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jini JoseSenior .Net DeveloperCommented:
i think it is not possible. because you cannot change the opened page. if you can change the opened page, then you can get the return values from it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stergiumCommented:
you could insert a page inside a <div> and then change whatever you want .
i'd use jquery (ajax) for that but a new page that cannot be change i dont see a way around it.
0
VapiSoftAuthor Commented:
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.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

stergiumCommented:
i was thinking something like this
 <script type="text/javascript" src="jquery.js"></script>  
<script type="text/javascript">
$(document).ready(function() {
$.ajax({
  url: "test.html",
  context: document.body,
  success: function(){
$('#input1').val('values'); // input1 that gets the value 'values'
  }
});
 });
</script>


0
VapiSoftAuthor Commented:
Hi,
I tried to run it and I receive an error - Object expected. The error
0
VapiSoftAuthor Commented:
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

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.