Reply
How to save files w/ XStandard
Old 11-12-2004, 03:47 PM How to save files w/ XStandard
zcorpan's Avatar
Average Talker

Posts: 15
For you who don't know what it is, the url is www.xstandard.com

Anyway, I cannot figure out how to save the files it generates. It's embedded in the browser, and on their website they say:
Quote:
Question: How do I save data from XStandard?
XStandard is a control just like a multi-line textbox or radio buttons or a list box. These controls don't have save buttons and neither does XStandard. It is up to the parent application to get data from the control and save it.
Still, I cannot figure out how to save the data, except for copying the code from "xml view" and paste it into notepad... however, then I loose the xml declaration and the doctype. Sure, they can be added afterwards but I think I should be able to save the file right away...

I'm using Firefox.

Except for me not figouring out how to save the files, XStandard seems really impressive.
__________________
Get Firefox
zcorpan is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-12-2004, 05:46 PM
winter100's Avatar
Junior Talker

Posts: 3
It's a cool editor. I've set it up for one of my customers a while back and going to do it for another one in a few weeks. Basically, you need to have a hidden field on a page and when the page is submitted, a JavaScript function copies the data from the editor into a hidden field. So your application can get the data from the hidden field. On their site, go to documentation and then select Web Integration / Examples.

Good luck.
winter100 is offline
Reply With Quote
View Public Profile
 
Old 11-12-2004, 07:21 PM
zcorpan's Avatar
Average Talker

Posts: 15
Thanks, i'll try it out.
__________________
Get Firefox
zcorpan is offline
Reply With Quote
View Public Profile
 
Old 11-13-2004, 04:39 PM
zcorpan's Avatar
Average Talker

Posts: 15
Yes... and then?

I read through the steps on web integration and got their php example, uploaded it to my server http://www.kjerstin.org/zcorpan/xstandard/index.php

The data is put in the hidden field. Still, I can't access the final output code or save a file... Am I missing something?

edit: I think I got it working...

edit2: Still, copying the code from XML-view gives me nicely indented code
__________________
Get Firefox

Last edited by zcorpan : 11-13-2004 at 04:48 PM.
zcorpan is offline
Reply With Quote
View Public Profile
 
Old 11-13-2004, 10:33 PM
zcorpan's Avatar
Average Talker

Posts: 15
I found out that what you really need is this:
Code:
<? header("Content-type:application/x-xstandard");?>
Then it works with Firefox

This means that the server sends 0 bytes of data to the client
__________________
Get Firefox
zcorpan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to save files w/ XStandard
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12240 seconds with 12 queries