473,395 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to pass serverside xml to client to traverse with javascript

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

Dec 17 '06 #1
1 1583
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" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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

Dec 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rationalman | last post by:
I'm new to ASP, and need to do something that should be straightforward. I want to access the database in my vbscript function on the serverside, when someone clicks a button on the cient side....
3
by: john woo | last post by:
Hi in JSP, it's easy to pass value from java-variable to javascript-variable, like js_function(a) { a=<%java-class.A%> } I'm wondering how is the other way around? I tried
8
by: Murali Inguva | last post by:
Hi Guys, Couple Questions 1. Is there any way that i can pass client Side Objects to Server Side. 2. Can i validate the data of serverside text boxes / combo box in client side? If you know...
2
by: Chris Tillotson | last post by:
Hello, I just wanted to suggest this as an idea and get feedback if it is a lame. I had a simple challenge. In my app a client can upload a file and it took a while and I wanted to indicate to the...
2
by: john | last post by:
I posted this question to comp.lang.javascript but didn't get a response, so I'll try here. I am using ASP.NET and I have a datagrid. One of the columns in my grid is all checkboxes. When the...
8
by: Ben | last post by:
Hi there I am writing a C# application that is making multiple POST requests to an ASP.NET page. I would like to take advantage of ASP.NET sessions to store some data on the server side. Where do...
5
by: csgraham74 | last post by:
Basically i have a piece of javascript that calls a function to call a confirm box on screen. onclick= if(sub_ProceedMsg()){} basically what i want to do is to stop the serverside event from...
3
by: Jay | last post by:
I have javascript that accepts 2 parameters like so... function showmsgbox(chkB, somestring) { xState=chkB.checked; if(xState) {...
1
by: Rob | last post by:
I have values like <span id = "URL">URL</span> where the id "URL" is generated by javascript automatically. I know in JSP, one can pass the value directly like <a href = <%=URL>> but how do I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.