Dear Heiko,

thank you very much for replying! I really was hoping if someone 
would look at this... 
I tried your example, and it does not work with accessing it through 
webserver.


#1) What does your webserver return if you call the xml file 
directly?
when I request just xml file from any html page, my webserver 
handles the request and renders the way html file wants.
#2) Have you tried different samples that use getURL()?
different samples, if it means different examples of getURL(), then 
yes, I have.

I ran your example just as stand alone, and it works, but when I 
request through my webserver, the SVG part gets rendered, but there 
is no response to clicking to 'request data' button where getURL() 
is used.

#3) Do you just call static xml files or do you also execute some 
kind of server-side script - accessing a database i.e.?
yes, we do access database sometimes with xml files for displaying 
data from database.


#4) ...

note: There are alternatives to xml and parseXML() if you just want 
to get some data/values. 

I was thinking of writing some values to xml file with using getURL
() like this:

foo(){
    var someVar = "someXmlFile.xml?writeSomeVar="+js_var";
    getURL("someVar", callbackfoo);
}
callbackfoo(obj){
    if(obj.success)
        alert("success!");
    else
        alert(failed);
}

I have been searchin for a couple of days now, but this is the only 
way I could find that I can request to server. I would really 
appreciate it if you can suggest some another way to send values to 
the server.


Thanks again,
D Dave

--- In [email protected], "Heiko Niemann" <[EMAIL PROTECTED]> 
wrote:
> Hi DD,
> 
> #1) What does your webserver return if you call the xml file 
directly?
> 
> #2) Have you tried different samples that use getURL()?
> 
> You could download
> 
> http://www.zuccaralloo.de/devgroup/downloads/restaurant_xml.zip
> 
> and see whether that runs. 
> 
> #3) Do you just call static xml files or do you also execute some 
kind
> of server-side script - accessing a database i.e.?
> 
> #4) ...
> 
> note: There are alternatives to xml and parseXML() if you just 
want to
> get some data/values.  
> 
> Regards,
> 
> Heiko
> 
> 
> 
> 
> --- In [email protected], "deeti_dave" 
<[EMAIL PROTECTED]>
> wrote:
> > Dear Holger:
> > 
> > Thank you very much for your suggestion. But this still does not 
> > solve my problem completely. If I run this code just as a stand 
> > alone program, it works okay, but the trouble starts when I call 
> > this svg page through webserver, and run the same code, I get 
getURL
> > () failed! I also tried putting the whole path of the xml file 
in 
> > getURL(), and also the webserver address and the filename, still 
> > does not work, Both svg and xml files are in the same folder on 
the 
> > same machine.
> > 
> > I would really appreciate it if anyone can throw some light on 
this 
> > problem...
> > 
> > Thanks
> > DD
> > 
> > 
> > 
> > --- In [email protected], Holger Will <[EMAIL PROTECTED]> 
> > wrote:
> > > deeti_dave schrieb:
> > > 
> > > > Hi There,
> > > >
> > > > I am having trouble in using getURL()/parseXML() in svg. I 
am 
> > using
> > > > a custom made webserver, could it be the one, not supporting 
the
> > > > request? I am getting "request failed" alert everytime I 
try. I 
> > am
> > > > using IE 6.0 browser, and I checked that it works fine when 
> > loading
> > > > data from xml files in html pages. The svg part seems to be 
> > showing
> > > > okay. I am using very simple code in my svg file here:
> > > >
> > > >
> > > >
> > > > var svgdoc;
> > > >
> > > > function getFile(evt){
> > > >       svgdoc = evt.getTarget().getOwnerDocument();
> > > >         getURL("testXML.xml", testFunction);
> > > >         alert("HIIIIIII");
> > > > }
> > > >
> > > > function testFunction(obj){
> > > >         var string = '';
> > > >       if(obj.success){
> > > >             string = obj.content;
> > > >             var xmldoc = parseXML(obj.content,svgdoc)
> > > >             var nodes = xmldoc.childNodes;
> > > >             for(var i=0; i<nodes.length; i++){
> > > >                   var group = nodes.item(i);
> > > >                   alert("group: "+group);
> > > >             }
> > > >      
> > > >       }else{
> > > >                alert("request failed !")
> > > >         }
> > > > }
> > > >
> > > >
> > > > my xml file is:
> > > >
> > > > <?xml version='1.0'?>
> > > > <DOCUMENT>
> > > >       <CUSTOMER>
> > > >             <NAME>
> > > >                   <LAST_NAME>Lname</LAST_NAME>
> > > >                   <FIRST_NAME>Fname</FIRST_NAME>
> > > >             </NAME>
> > > >       </CUSTOMER>
> > > > </DOCUMENT>
> > > >
> > > >
> > > >
> > > > I would really appreciate it if someone can help me...
> > > > Thank you.
> > > >
> > > >
> > > >
> > > your code does work in IE+ASV6 when you remove the <?xml ?> 
prolog 
> > from 
> > > your .xml file.
> > > 
> > > hth
> > > Holger




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hsuts7v/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123603684/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to