WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 xTree and ASP..., Guillermo, March 4, 2004
     Re:xTree and ASP... , globule, March 13, 2004
     Re:xTree and ASP... , Andy, March 10, 2004
     Re:xTree and ASP..., chsw1984, March 5, 2004

Subject: Re:xTree and ASP... From: Andy Date: March 10, 2004

Hi,

Why not just generate the required XML from ASP?  I'm doing it that way and it works fine.  This is what I mean (sorry if its obvious):

response.ContentType="text/xml"
response.Expires=-1
 
response.Write("<?xml version='1.0'?>")
response.Write("<tree>")
   
sql = "SELECT yoursql"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn, 3, 3
  
if not rs.eof then
    rs.MoveFirst
    do while not rs.eof
    %>
    <tree text="<%=rs(0%>" />
    <% 
       rs.movenext
    loop
end if
 
response.write("</tree>")

--andy


From: Guillermo
Sent: March 4, 2004
Subject: Re:xTree and ASP...

I was wondering if I could create a dynamic xTree using ASP within the .js file... is this possible? I want the tree to load items from a database.

My question is, will the server process the ASP within the .js file? I believe it would not, so how can I resolve this? I guess I *could* use xmlLoadTree, but then I would have to update the xml file everytime a new record is added to the database...





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX