User Profile

Collapse

Profile Sidebar

Collapse
dtbrown
dtbrown
Last Activity: Nov 9 '07, 10:04 PM
Joined: Oct 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dtbrown
    replied to Using JavaScript(?) to save an XML file
    Oh, I completely understand the issue with automatically saving something; I intended to require the users to use the Save Page As menu option. The problem I am having is when I write XML to the child window the XML tags do not display. Here are two methods that I have tried in JS:

    Code:
    function test(){
        mywin = window.open('text/xml','', 'menubar=1,scrollbars=2,resizeable=1');
        mywin.document.open;
    ...
    See more | Go to post

    Leave a comment:


  • dtbrown
    replied to Using JavaScript(?) to save an XML file
    That is just one of the requirements that I have been given. As of right now the all of the HTML, JS, XSL, etc. files will be distributed to the users instead of being hosted on a site. Sounds kinda odd, but that's what they want.

    I just don't understand why I can open an XML document in a browser, but I can't write XML tags to a child window and save the contents of that window as an XML file. That just doesn't make any sense....
    See more | Go to post

    Leave a comment:


  • dtbrown
    replied to Using JavaScript(?) to save an XML file
    Not really. The idea behind the project was that it would be cross-platform/cross-browser compatible, which rules out Active-x and FF extensions....
    See more | Go to post

    Leave a comment:


  • dtbrown
    replied to Using JavaScript(?) to save an XML file
    in XML
    Actually I want the file to be saved to the client's computer. The idea with this XML generator tool is that someone would have this HTML (and JS, XSL, etc) file locally, view it in a browser, and save the XML file locally. Since it will not reside on a server all of the code must be able to run on a client's machine. And since the clients will be using PCs and Macs, it must work in both IE and FF. So basically, no, the constraints can't be rela...
    See more | Go to post

    Leave a comment:


  • dtbrown
    started a topic Using JavaScript(?) to save an XML file
    in XML

    Using JavaScript(?) to save an XML file

    I am working on a project that will locally create XML files. I have an HTML form that uses the Dojo Toolkit and XSLT to create the XML object. Currently I put the XML into a textarea. The used must then copy the XML and paste it into an XML file. I would like for this step to be skipped (i.e. have the XML file created/saved without copying and pasting.)

    My idea was to use JavaScript to open a new window, write the XML to that...
    See more | Go to post

  • dtbrown
    started a topic Using JavaScript(?) to save an XML file

    Using JavaScript(?) to save an XML file

    I am working on a project that will locally create XML files. I have an HTML form that uses the Dojo Toolkit and XSLT to create the XML object. Currently I put the XML into a textarea. The used must then copy the XML and paste it into an XML file. I would like for this step to be skipped (i.e. have the XML file created/saved without copying and pasting.)

    My idea was to use JavaScript to open a new window, write the XML to that...
    See more | Go to post
No activity results to display
Show More
Working...