Populate form with data from different domain.

Posted on 2007-07-20
Last Modified: 2013-11-19
I have a web form. I have a need to populate some of the fields with data that is gathered from an XML page on a seperate server. Unfortuantely I do not have access to any server side languages - PHP, JAVA etc. I need to do this with just HTML and Javascript. Using AJAX doesn't work as its a cross domain call.
So if anyone has either a way round the AJAX issues or another method to doing it, let me know. Im open to all suggestions!
Question by:sam_cogan
    LVL 75

    Expert Comment

    by:Michel Plungjan
    If it is for yourself, you can bypass the ajax limit with browser security settings
    Alternatively in IE you can save a webpage with extension .HTA which can be opened from your harddisk:

    function loadXml(iFrame) {
      if (window.if1.location.href.indexOf('about')==0) {
    function getXml() {

    <iframe id="if1" application="yes" src="about:blank" onLoad="parent.loadXml(this)"></iframe>
    LVL 3

    Author Comment

    Unfortunately it's not just for myself, and needs to work in both IE and firefox.
    LVL 75

    Accepted Solution

    Then you are Mickeyed.

    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

    This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    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…

    754 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

    22 Experts available now in Live!

    Get 1:1 Help Now