Solved

access to loaded html page

Posted on 2012-04-10
5
177 Views
Last Modified: 2012-08-13
I am doing some testing and I don't know how to connect the javascript code on the keyboard to the loaded html page text field.

The html page has javascript keyboard in it. I found the keyboard code on line but that works fine. WHat I want to do is to load any html page and be able to use the keyboard on the parent html page to type in to text field of the loaded html page.

in the following link:
http://intelgraphic.com/kboard/6.html

you will see some text field on the left which are on the main html page and you can use the keyboard to type in them, but the loaded html page (in the center), would not capture the javascript keyboard type.

How do I do it so you can type in the loaded html page using the keyboard ?
0
Comment
Question by:Angha110
  • 2
5 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 37828090
That page "w3schools.com" is from a different origin. It cannot capture events that are triggered in your parent page
0
 

Author Comment

by:Angha110
ID: 37828105
So, you mean there is no way to connect that keyboard to the text field on the loaded page?
Some sort of tricky way, or...!!!!
0
 
LVL 18

Accepted Solution

by:
nap0leon earned 500 total points
ID: 37828523
Browsers do not allow you to use javascript from one domain on another domain's webpage.
So, no, you cannot directly type from your page to put data into the other page's form.

This is called "Cross-Site Scripting"
0
 

Author Comment

by:Angha110
ID: 37839431
Since there is no solution for my question. What should I do?
Do I accept the response (not possible) as a solution?

Please advice
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now