A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: XML from Java Servlet

  1. #1
    Junior Member
    Join Date
    Aug 2003
    Posts
    11

    XML from Java Servlet Problem

    The Flash engine I built will pull from a static XML file but when I point the load URL to the Java servlet that generates the XML its not working. I have an onLoad function going so it should wait until the XML is loaded before it attempts to do anything with it. Does anyone know anything that I might have missed. Pulling the XML from a servlet is possible right? heh
    heres the loading code:

    var experimentRaw = new XML();
    experimentRaw.onLoad = function(success) {
    if (success) {
    }
    };
    experimentRaw.load("abc.def.ghij.com:8080/xxx/experimentAsXML.do?experiment=1");


    Thanks for any help
    Last edited by FlynnBoyO; 09-05-2003 at 07:49 PM.

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    2 things that might be causing you trouble:

    1) Your xml file (from servlet etc) has to be on the same web server that your flash file is on. Have a look in the Flash XML faq (linked below) for solutions of getting the xml file onto your server. This shouldn't be a problem if you are running it from your local machine (or flash debugger).

    2) Make sure you have valid XML, Internet Explorer will validate your XML file if you put the URL in the browser.

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    Junior Member
    Join Date
    Aug 2003
    Posts
    11

    Fixed Problem

    Its working now. THe problem was I just needed to ignor the whitespace.
    THanks All

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center