Solved

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

Posted on 2004-04-02
7
427 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

707 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