SAVE XML file to PPC device (client) using javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jaikant
    New Member
    • Jan 2008
    • 3

    SAVE XML file to PPC device (client) using javascript

    Hi,
    I am loading a xml file using javascript in Pocket Internet Explorer for local HTML file. I am not able to save the xml file back to the PPC device.

    foodXML = new ActiveXObject(" Msxml2.DOMDocum ent");
    newElement = foodXML.createE lement(textstr) ;
    foodXML.appendC hild(newElement );
    foodXML.save("t est.xml");

    Please help me to save xml file to local folder using javascript.
    Thanks
    Jaikant
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Generally javascript does not allow you to save files, due to security reasons. Is it possible for you to use something else?

    Comment

    • jaikant
      New Member
      • Jan 2008
      • 3

      #3
      Originally posted by jkmyoung
      Generally javascript does not allow you to save files, due to security reasons. Is it possible for you to use something else?
      Pls suggest some alternate to achieve the same.

      Comment

      • Dököll
        Recognized Expert Top Contributor
        • Nov 2006
        • 2379

        #4
        Originally posted by jaikant
        Hi,
        I am loading a xml file using javascript in Pocket Internet Explorer for local HTML file. I am not able to save the xml file back to the PPC device.

        foodXML = new ActiveXObject(" Msxml2.DOMDocum ent");
        newElement = foodXML.createE lement(textstr) ;
        foodXML.appendC hild(newElement );
        foodXML.save("t est.xml");

        Please help me to save xml file to local folder using javascript.
        Thanks
        Jaikant
        Hello, jaikant!

        Are you able to save data on your pocket pc otherwise?

        This may not be what you want, just mentioning it. If you use ASP.NET with SQL Server 2005, you will be able to load data to your pocket pc, provided of course, the pc is allowed to load ASP.NET driven websites and is capable to load SQL Server 2005 Express.

        Not sure how it can be handled otherwise, just adding this just in case. And if you are interested, go on Microsoft's site, type in SQL Express 2005 video, there's a 65 minute video that'll guide you through a simple web site connection to SQL Server, it's stupendous, hope this is what you need, or that it can work on your pocket pc.

        Good luck nonetheless, jaikant, hope it turns out alright:-)

        Comment

        Working...