Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2003, 08:36 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default manipulate data returned using client script

do any one know a ways to manipulate returned data in recordset using client script i mean i needn't to return to server while these operations is happening..
i have a solution but i haave not test it yet is to store theses data in hidden objects but any one know an array object to use???

need help

Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old December 7th, 2003, 01:16 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

another idea
instead of hidden object i could also use session object to be storage for returned data from the server ,do any one face my situation.!!!

Ahmed Ali
Software Developer
 
Old December 8th, 2003, 01:40 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You cannot access the server's session object from the client without doing a post to the server.

What do you mean by "manipulate returned data"? You can do whatever you please on the client side with the data if the data is in something that you can manipulate. But it won't have any affect on the data that stored if that is what you are intending.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old December 8th, 2003, 08:41 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

sorry for "session" idea , but refearing to
Quote:
quote:What do you mean by "manipulate returned data"?
i mean,
i need to calculate and show to client some statistics based on some calculations from returned Stored Hidden data.

this is a kind of storing to client side:
response.write "<script> var ar(RScount);"
for i=0 to RScount-1
response.write "ar(" $i & ")" & rs("name")
next
response.write "</script>"


do any have acomment on that simple sol.

Ahmed Ali
Software Developer
 
Old December 9th, 2003, 10:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I do not quite get it! Why do you want to use client script!? Isn't it possible to do the calculations/manipulations serverside?

And if is a question about looping through some recordset, then this might help...
Code:
    Dim db
    Set db = Server.CreateObject ("ADODB.Connection")
    db.Open ("[some connection string]")

    Dim rs
    Set rs = Server.CreateObject ("ADODB.Recordset")

    rs.Open "SELECT someColumn FROM someTable", db

    While Not rs.EOF

        Response.Write "value: " & rs("someColumn") & "<BR>"
        rs.MoveNext
          
    Wend

    rs.Close
    Set rs = Nothing

    db.Close
    Set db = Nothing


Hope it helps!

Jacob.
 
Old December 9th, 2003, 01:39 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

hi jacob,
all I need from Client Calculations is to decrease no of hits to the server for multi user system so decrease load on the server

Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
Manipulate numeric data in binary files pkipe Pro VB 6 7 March 12th, 2008 03:35 PM
how to pass data from Client to server script pushpa Classic ASP Basics 8 March 11th, 2007 04:30 AM
database to excel manipulate data weazy Excel VBA 1 June 9th, 2006 12:07 PM
manipulate multiple returned values from oracle st herlenrosa Pro VB Databases 1 November 12th, 2003 03:24 AM
manipulate multiple values returned by stored proc herlenrosa Beginning VB 6 3 November 11th, 2003 06:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.