Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 13th, 2008, 10:45 PM
memiller@westernsurety.com
Guest
 
Posts: n/a
Default how to load client-side xml file?

I know this generally not recommended, but I'm working in the confines
of the company's intranet.

Goal: permit managers to load an XML file from thier PC into an
intranet ASP.NET webpage where validation and data submit will take
place. I have the page written that allows the user to select a
file. I'm hitting a wall when, after selecting the file, trying to
open a new page and inserting the XML into the page. From there I can
start validating the data. I've been tried to using
Response.BinaryWrite but it appears that will only work with server-
side files. I also haven't had much luck in trying to open the file
with Javascript. Any suggestions?
  #2  
Old October 13th, 2008, 10:55 PM
David Mark
Guest
 
Posts: n/a
Default Re: how to load client-side xml file?

On Oct 13, 5:42*pm, "memil...@westernsurety.com"
<memil...@westernsurety.comwrote:
Quote:
I know this generally not recommended, but I'm working in the confines
of the company's intranet.
That would depend on the company and Intranet.
Quote:
>
Goal: permit managers to load an XML file from thier PC into an
intranet ASP.NET webpage where validation and data submit will take
ASP.NET is OT here.
Quote:
place. *I have the page written that allows the user to select a
file. *I'm hitting a wall when, after selecting the file, trying to
open a new page and inserting the XML into the page. *From there I can
start validating the data. *I've been tried to using
Response.BinaryWrite but it appears that will only work with server-
side files. *I also haven't had much luck in trying to open the file
with Javascript. *Any suggestions?
Post some (if not all) of the suspect (client side) code?
  #3  
Old October 14th, 2008, 03:25 PM
Laser Lips
Guest
 
Posts: n/a
Default Re: how to load client-side xml file?

On Oct 13, 10:50*pm, David Mark <dmark.cins...@gmail.comwrote:
Quote:
On Oct 13, 5:42*pm, "memil...@westernsurety.com"
>
<memil...@westernsurety.comwrote:
Quote:
I know this generally not recommended, but I'm working in the confines
of the company's intranet.
>
That would depend on the company and Intranet.
>
>
>
Quote:
Goal: permit managers to load an XML file from thier PC into an
intranet ASP.NET webpage where validation and data submit will take
>
ASP.NET is OT here.
>
Quote:
place. *I have the page written that allows the user to select a
file. *I'm hitting a wall when, after selecting the file, trying to
open a new page and inserting the XML into the page. *From there I can
start validating the data. *I've been tried to using
Response.BinaryWrite but it appears that will only work with server-
side files. *I also haven't had much luck in trying to open the file
with Javascript. *Any suggestions?
>
Post some (if not all) of the suspect (client side) code?
You don't / CANT open files with javascript...You use the browser to
do that. You can't let javascript handle an XML file until it's on a
server somewhere. Then you can easily play with the file in
JavaScript. But that's all you can do with it. You can't CHANGE the
file with JavaScript or save it to another file. JavaScript sits in a
browser and is limited to it's sandbox. Go and read what JavaScript
Is!
  #4  
Old October 14th, 2008, 09:15 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: how to load client-side xml file?

Laser Lips wrote on 14 okt 2008 in comp.lang.javascript:
Quote:
You don't / CANT open files with javascript...You use the browser to
do that. You can't let javascript handle an XML file until it's on a
server somewhere. Then you can easily play with the file in
JavaScript. But that's all you can do with it. You can't CHANGE the
file with JavaScript or save it to another file. JavaScript sits in a
browser and is limited to it's sandbox. Go and read what JavaScript
Is!
>
Javascript can be used by Wscript or Cscript and on the server under ASP.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
  #5  
Old October 15th, 2008, 03:25 AM
Tim Williams
Guest
 
Posts: n/a
Default Re: how to load client-side xml file?

"Evertjan." <exjxw.hannivoort@interxnl.netwrote in message
news:Xns9B37E0FA5543Ceejj99@194.109.133.242...
Quote:
Laser Lips wrote on 14 okt 2008 in comp.lang.javascript:
>
Quote:
>You don't / CANT open files with javascript...You use the browser to
>do that. You can't let javascript handle an XML file until it's on a
>server somewhere. Then you can easily play with the file in
>JavaScript. But that's all you can do with it. You can't CHANGE the
>file with JavaScript or save it to another file. JavaScript sits in a
>browser and is limited to it's sandbox. Go and read what JavaScript
>Is!
>>
>
Javascript can be used by Wscript or Cscript and on the server under ASP.
>
....or in an HTA (on Win)

Tim


  #6  
Old October 17th, 2008, 05:45 AM
dhtml
Guest
 
Posts: n/a
Default Re: how to load client-side xml file?

Tim Williams wrote:
Quote:
"Evertjan." <exjxw.hannivoort@interxnl.netwrote in message
news:Xns9B37E0FA5543Ceejj99@194.109.133.242...
Quote:
>Laser Lips wrote on 14 okt 2008 in comp.lang.javascript:
>>
Quote:
>>You don't / CANT open files with javascript...You use the browser to
Wrong answer.
Quote:
Quote:
Quote:
>>>
>Javascript can be used by Wscript or Cscript and on the server under ASP.
>>
>
...or in an HTA (on Win)
>
Or in a web browser, which might actually be able to read the file.

Garrett
Quote:
Tim
>
>

--
comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >
 

Bookmarks

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

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

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles