Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how to pass serverside xml to client to traverse with javascript

Reply
Thread Tools

how to pass serverside xml to client to traverse with javascript

 
 
Rotsey
Guest
Posts: n/a
 
      12-17-2006
Hi,

As the subject says I have an application that uses xml at the client to
render custom tables to get a drill down effect.

So I query my database and create a xml document of it.
I then want to pass the xml to the client and have javascript
manipulate it.

So far I have it working by calling a XMLHttp request by passing the URL
of the document. Which works fine.

The problem is that the xml document is now publicly accessible on the
internet. The xml data is sensitive.

So can I deny access to the xml document?? I have tried setting
NTFS permissions on the folder but it is still accessible.

Is there a better way to do this?

One other thing I tried was to serialize my data in memory to a string.
then add the string to a input type=hidden control.
Then use XMLDOM object in javascript to load the xml. But for some reason
it would not load the xml from the hidden control.

Please assist
rotsey



 
Reply With Quote
 
 
 
 
Rotsey
Guest
Posts: n/a
 
      12-20-2006
Hi,

to anyone that has similar issues.

I went back to pasing the xml to the client in a hidden control.

I found out that in the process of serialising the data and it being sent to
the
client that some of the xml like < and ' were coded to &lt; and &quot;

So after replacing these it works great. In IE 6 that is

In Firefox for some reason looking at the source I can see the xml in hidden
control but in javascript the value property is blank

Any ideas
rotsey




"Rotsey" <> wrote in message
news:%...
> Hi,
>
> As the subject says I have an application that uses xml at the client to
> render custom tables to get a drill down effect.
>
> So I query my database and create a xml document of it.
> I then want to pass the xml to the client and have javascript
> manipulate it.
>
> So far I have it working by calling a XMLHttp request by passing the URL
> of the document. Which works fine.
>
> The problem is that the xml document is now publicly accessible on the
> internet. The xml data is sensitive.
>
> So can I deny access to the xml document?? I have tried setting
> NTFS permissions on the folder but it is still accessible.
>
> Is there a better way to do this?
>
> One other thing I tried was to serialize my data in memory to a string.
> then add the string to a input type=hidden control.
> Then use XMLDOM object in javascript to load the xml. But for some reason
> it would not load the xml from the hidden control.
>
> Please assist
> rotsey
>
>
>



 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
GridView & ObjectDataSource (functionality is client side or serverside?) Angel Of Death ASP .Net 2 10-02-2006 01:01 PM
Cancel serverside event using client side event csgraham74 ASP .Net 5 06-14-2005 10:17 PM
have xml traverse code in vbscript, need javascript alternative mr_burns Javascript 0 12-22-2004 10:28 PM
Displaying Progress info to client while ServerSide code executes. Chris Tillotson ASP .Net 2 11-04-2003 09:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57