caching recordset to client w/ ASP and Javascript

Results 1 to 4 of 4

Thread: caching recordset to client w/ ASP and Javascript

  1. #1
    JCharbneau Guest

    Default caching recordset to client w/ ASP and Javascript

    Hi,<BR> I&#039m making a message board for my website and I want to cache my ASP recordset into Javascript arrays. Basically I will only be caching date, time, subject, user_who_posted, user_email, isParent values. What i&#039m hoping to achieve is a tree structure that is collapsable(?) using javascript but the data is still there and no need to go to the server every time a user clicks. Does anyone know of how to do this or maybe a website to get me off rolling. Thanks in advance.

  2. #2
    JCharbneau Guest

    Default Would XML be better to use?

    Hi again, reading some of the previous threads I notcied a lot of talk about XML, would this be better to use than Javascript array&#039s? Thanks for the help.

  3. #3
    GH Guest

    Default RE: probably not

    It won&#039t be supported by all client browsers -- they have to have a parser. The XML data islands would only be supported by IE.

  4. #4
    Join Date
    Dec 1969

    Default RE: Would XML be better to use?

    not sure im ENTIRELY right about what you are trying to do, but your best bet would be to generate the javascript to declare the array with ASP...<BR><BR>&#060;SCRIPT TYPE="text/javascript"&#062;<BR>var stuff = new Array();<BR><BR>&#060;%<BR>dim i<BR>i=0<BR>while Not rs.eof<BR>%&#062;<BR>stuff[&#060;%=i&#062;] = "&#060;%=rs(0)%&#062;";<BR>&#060;%<BR>rs.movenext< BR>i=i+1<BR>next%&#062;<BR><BR>or something to that extent

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts