Solved

access to loaded html page

Posted on 2012-04-10
5
176 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 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

6 Experts available now in Live!

Get 1:1 Help Now