Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

access to loaded html page

Posted on 2012-04-10
5
181 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Find out what you should include to make the best professional email signature for your organization.
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

839 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