Solved

Is there any way to do recordset .movenext in asp page  using javascript

Posted on 2004-04-02
7
425 Views
Last Modified: 2007-12-19
HI
 I have a recordset in ASp page.
 I want to build menu array  from the  recordset I want to do recordset.movenext from a javascript function
 
Is there any way to do recordset .movenext in asp page  using javascript??
0
Comment
Question by:ssdanu
7 Comments
 
LVL 6

Expert Comment

by:jarasa
ID: 10739450
Hi ASP as JSP are server based languages, what means that it got executed on the server before it is sent to the client, and the client gets the final result as HTML.

So the answer to your question is NO you can't do that but you can simulate it. If you load a Javascript Object with all the records of the recordset, you can so them one by one on the client, but is the recordet is too big, the cost of it will be huge.

You can save the recordset on the user session scope and just call the server to show the next record. I think is more reasonable than the other option.

Hope it helps you.

Javier
0
 
LVL 7

Expert Comment

by:gam3r_3xtr3m3
ID: 10739740
jarasa, he was not talking about JSP but rather JavaScript. =p
ssdanu, no you can't though. but you could make dynamic wherein you'd load everything on an array but display only a part of the record, then pressing a button would make it swap with another row. and you could use XMLHTTP. (sorry i still haven't grasped it much so i can't make a custom script. some experts here knows how to.)
0
 

Expert Comment

by:tavseth
ID: 10740394
I don't know from you question exactly what your application is, but here is an example of using an XML data island in your HTML document. This will work with IE. You would use ASP to create the data island on the server before the page is served to the client.

http://www.devx.com/gethelpon/10MinuteSolution/16482

It shows traversing the data island dataset using MoveNext and the like.


Rgds,
Tavseth
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ssdanu
ID: 10764422
I have got the solution please can you close the question?
0
 

Author Comment

by:ssdanu
ID: 10764440
HI All
 Thanks for your prompt support
I have got the solution for the problem. The script I got is on the site http://www.burmees.nl/menu/

It works across frameset
 BUt  a small problem I am facing is. the menus is gettinmg hidden behind the pivot table object

How to get that menu displayed over pivot table object
 O.w  rest themenu is working very fine.

Can anybody help me..
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 11021784
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't get page to reload 9 18
links not working 2 25
Html using "Or" in condition 3 24
JQuery - Default innerhtml text with keyup function (copy as you type) 3 14
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question