Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-14 Thread Marÿffffffffffffffffffffffeda Bazus
Hi all, I am trying to use the methos getURL("name.xml", callback) to retrieve the xml fiel from the server, but i have the problem that the xml file too big is, thats why i cannot get it, i have read that i could compress the xml file with winzip and then in the response.content i have the desc

Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread A.M.Shourbagui
Hi guys and thnx a million it worx fine now ... here is the code and you can use it I tailed it to my case...

Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread Marÿffffffffffffffffffffffeda Bazus
ok, thanks, the problem is that the xml file was too big (368KB)...with a smaller one it works...does anybody know the size limit of the parseXML() parameter??? or how can i read only a fragment of the xml file with getURL() parseXML()? thanks in advance --- Guy de Pourtalès <[EMAIL PROTECTED]

Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread Guy de Pourtalès
Did you try to embed your code in a try .. catch block and display the error message ? It is strange that the content type is right and not the content... Guy Le 13 janv. 05, à 12:14, Marÿffeda Bazus a écrit : > > > > sorry my former message was truncated..i wanted to say

Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread Marÿffffffffffffffffffffffeda Bazus
sorry my former message was truncated..i wanted to say that the urlRequeststatus.success = true urlRequeststatus.contentType = text/xml urlRequestStatus.content ? but i obtain an "unexpected exception" when i try to access the urlRequestStatus.content! i dont know why so i cannot not

Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread Marÿffffffffffffffffffffffeda Bazus
thanks guy, i made this modification so i have the code like in the example: if (ver.indexOf("Adobe") != -1) { context = evt.target.ownerDocument; getURL("WW050410.xml", callback); } function callback (urlRequestStatus) { if (urlRequestStatus.success) { if (ver.indexOf("Adobe") != -1

Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread Guy de Pourtalès
Hi, First of all, you do not need PHP to parse XML from SVG Viewer. I see several improvements to your code : 1. Check if urlRequestStatus.success is OK (if it is not, the download process had an error !) 2. Declare your variable as following "var xmlDocument = parseXML... " 2. Check if the Ad

Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread Marÿffffffffffffffffffffffeda Bazus
Hi, I would like to the same thing to read an external XML file but it doesnt already work yet, i think that my function is correct but it doesnt work ("unexpected exception"), in this way ALL the XML file would be written at the end of the SVG Document, isnt it? so i can access it inside my SVG

Re: [svg-developers] Re: SVG-XMLDOM and ECMA is it buggy

2005-01-13 Thread Guy de Pourtalès
Hi, It seems that you try to mix custom xml data and svg data... If you want to do this in a correct xml way, you have to define another xml namespace, so that it doesn't confuse Adobe SVG Viewer, for example : > xmlns:myns="http://www.mysite.com";> > > Empire Burlesque > Bob Dylan > > T

Re: [svg-developers] Re: SVG-XMLDOM and ECMA is it buggy

2005-01-13 Thread A.M.Shourbagui
Hi again .. in my search for a solution to what i am facing..I found out it is a persisting problem... i have several objects.each object has a id. then i hava separate xml file containg data about each and every object.one tag contains the id field to identify the object. when i click on the p

Re: [svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread Guy de Pourtalès
Hi, In the same site referenced by Rolf, there is a good example of what you want (i.e. getting info of an external xml file) : http://www.datenverdrahten.de/dynsvg/svgparse.htm And the code is well written... Guy Le 13 janv. 05, à 09:49, amshourbagui a écrit : > > > Hi again and thnx al

[svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread amshourbagui
Hi again and thnx alot for replying.. actually i have studied this example but ..the manipulation of the xml tree in it is not through the client side scripting it is a server side php that does it.. I need a script that shows me how to walk an external xml file and extract the node values and

[svg-developers] Re: SVG-XMLDOM and ECMA

2005-01-13 Thread rwkemper
Hi, I'm not sure about your intention, but here is an example of getURL in combination with svg I found a view days ago. You may just view the source code. Even it is somehow in German the example is quite self explaining. http://www.datenverdrahten.de/svglbc/?doc=periodensystem Rolf --- In