Solved

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

Posted on 2004-04-02
7
421 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now