Solved

access to loaded html page

Posted on 2012-04-10
5
182 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
[X]
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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

730 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