[svg-developers] Re: getURL/parseXML does not work

2005-08-10 Thread deeti_dave
Hi All,

I solved the problem finally!
I used object tag to embed my svg into html page, and by replacing 
it to embed tag, it worked, phew!

Thank you very much for all of your responses and for helping hand :)

D Dave

--- In svg-developers@yahoogroups.com, deeti_dave 
[EMAIL PROTECTED] wrote:
 Dear Holger,
 
 Thank you very much for your reply!
 
 ohh :( I am trying to convince them, they are afraid of whole 
 network being exposed to the outside world, I'm seeing what i can 
 do...hopefully i should be able to.
 
 D Dave
 
 --- In svg-developers@yahoogroups.com, Holger Will [EMAIL PROTECTED] 
 wrote:
  deeti_dave schrieb:
  
   Dear Holger,
  
   Thank you very much for your reply!
  
   yes, the link you've sent me works when I open it. The server 
I 
 am
   running is NCServer, which is an ISV webserver specially made 
for
   our purposes. The network I am working is a very secure 
network, 
 I
   am negociating with them to let you connect to my test server. 
I
   will update here as soon as I can.
   I am not sure if you can connect here, but you can give it a 
try:
   http://192.0.2.128:8080/KeyPuncher/testSVG.svg
  
   username/password is: sp/sppass
  
   let me know if it works.
  
  
  no, im getting a timeout :-(
  
  
   Thank you very much again.
  
   D Dave
  
  
   *---*
   testSVG.svg
   ?xml version=1.0 encoding=iso-8859-1 standalone=no?
  
   svg onload=init(evt); viewBox=0 0 1000 1000
  
   script type=text/javascript
   function init(evt) {
 svgdoc = evt.target.ownerDocument;
  
 getURL(testXML.xml,callback_rect);

   } //end init()
  
   function callback_rect(obj) {
  

 if(obj.success) {
   alert(success!);
   var xmldoc = parseXML(obj.content,svgdoc);
   var nodes = xmldoc.childNodes;
   alert(ln: +nodes.length);
  
 }else{
   alert(Failed!);
 }
  
   } // end callback
   /script
  
  
   /svg
  
  
   *-*
   testXML.xml
  
   DOCUMENT
 TRADER
   NAME
 LAST_NAMELname/LAST_NAME
 FIRST_NAMEFName/FIRST_NAME
   /NAME
 /TRADER
   /DOCUMENT
  
   let me know if you can run it.
  
  
  yes, it works for me, running local and on an IIS webserver. see 
 the 
  running version online:
  http://blog.treebuilder.de/svg/getUrl.svg
  
  
  so i guess that its a server issue. are you using https by any 
 chance ? 
  there are known issues with https and getURL .
  
  cheers
  Holger
  
  
  
  
   --- In svg-developers@yahoogroups.com, Holger Will 
[EMAIL PROTECTED]
   wrote:
Hi Dave
   
iv uploaded a simple example,
http://blog.treebuilder.de/svg/getUrl.svg
   
this works for me in IE+ASV6. does it work for you ?
what server are you using ? can you put a simple example 
 online ?
   
cheers
Holger





 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hfl99ig/M=362335.6886445.7839731.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123689937/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/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/
 





[svg-developers] Re: getURL/parseXML does not work

2005-08-09 Thread deeti_dave
Dear Holger,

Thank you very much for your reply!

ohh :( I am trying to convince them, they are afraid of whole 
network being exposed to the outside world, I'm seeing what i can 
do...hopefully i should be able to.

D Dave

--- In svg-developers@yahoogroups.com, Holger Will [EMAIL PROTECTED] 
wrote:
 deeti_dave schrieb:
 
  Dear Holger,
 
  Thank you very much for your reply!
 
  yes, the link you've sent me works when I open it. The server I 
am
  running is NCServer, which is an ISV webserver specially made for
  our purposes. The network I am working is a very secure network, 
I
  am negociating with them to let you connect to my test server. I
  will update here as soon as I can.
  I am not sure if you can connect here, but you can give it a try:
  http://192.0.2.128:8080/KeyPuncher/testSVG.svg
 
  username/password is: sp/sppass
 
  let me know if it works.
 
 
 no, im getting a timeout :-(
 
 
  Thank you very much again.
 
  D Dave
 
 
  *---*
  testSVG.svg
  ?xml version=1.0 encoding=iso-8859-1 standalone=no?
 
  svg onload=init(evt); viewBox=0 0 1000 1000
 
  script type=text/javascript
  function init(evt) {
svgdoc = evt.target.ownerDocument;
 
getURL(testXML.xml,callback_rect);
   
  } //end init()
 
  function callback_rect(obj) {
 
   
if(obj.success) {
  alert(success!);
  var xmldoc = parseXML(obj.content,svgdoc);
  var nodes = xmldoc.childNodes;
  alert(ln: +nodes.length);
 
}else{
  alert(Failed!);
}
 
  } // end callback
  /script
 
 
  /svg
 
 
  *-*
  testXML.xml
 
  DOCUMENT
TRADER
  NAME
LAST_NAMELname/LAST_NAME
FIRST_NAMEFName/FIRST_NAME
  /NAME
/TRADER
  /DOCUMENT
 
  let me know if you can run it.
 
 
 yes, it works for me, running local and on an IIS webserver. see 
the 
 running version online:
 http://blog.treebuilder.de/svg/getUrl.svg
 
 
 so i guess that its a server issue. are you using https by any 
chance ? 
 there are known issues with https and getURL .
 
 cheers
 Holger
 
 
 
 
  --- In svg-developers@yahoogroups.com, Holger Will [EMAIL PROTECTED]
  wrote:
   Hi Dave
  
   iv uploaded a simple example,
   http://blog.treebuilder.de/svg/getUrl.svg
  
   this works for me in IE+ASV6. does it work for you ?
   what server are you using ? can you put a simple example 
online ?
  
   cheers
   Holger




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hv65ssl/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123618694/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/
 





[svg-developers] Re: getURL/parseXML does not work

2005-08-08 Thread deeti_dave
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 svg-developers@yahoogroups.com, 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(HIII);
  }
 
  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; inodes.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_NAMELname/LAST_NAME
FIRST_NAMEFname/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=-1a 
href=http://us.ard.yahoo.com/SIG=12hj2mga4/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123535656/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/
 




[svg-developers] Re: getURL/parseXML does not work

2005-08-08 Thread Heiko Niemann
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 svg-developers@yahoogroups.com, 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 svg-developers@yahoogroups.com, 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(HIII);
   }
  
   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; inodes.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_NAMELname/LAST_NAME
 FIRST_NAMEFname/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=-1a 
href=http://us.ard.yahoo.com/SIG=12h4o3uvm/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=112399/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/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/