codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Page Auto refresh - loosing parameters  eldred at 12:12 on Wednesday, October 04, 2006
 

Hi,

I am trying to auto refresh a jsp page, however I loose my parameters ie

http://localhost:8080/Custom/proper...p?Propkey=18488,

when the page refreshes

http://localhost:8080/Custom/proper...ty.jsp?Propkey=

What I want to do is load the next parameter after 18488, next being 18489.

I have created a stored proc that takes the current parameter and finds the next parameter ie:

CREATE proc CustomPropertyiGetNextKey
@PreviousPropertyKey int,
@ThisPropertyKey int output
as
select
@ThisPropertyKey = min(PropertyKey)
from
propertyi..tblProperties with (nolock)
where
propertykey > @PreviousPropertyKey
and deleted = 0

select @ThisPropertyKey

I want to exec this proc each time my page refreshes, taking the previous parameter and finding the next

Currently using this Javascript code:

<script language="Javascript">
var URL = "/forum/property_Propkey_PropertyKey.html"
var speed = 5000
function reload()
{
location = URL
}
setTimeout("reload()", speed);
</script>

I am still new at JSP, Servlets and Javascript, can anyone advise me, but of a steep challange for me.

Thank you









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Select index`s and HTML Forms
•  Re: How to change the location?
•  Re: How can I read ASCII data file in C++
•  Display new link everyday for whole year in a sequence
•  sending soap requests
•  New to Data Access Classes
•  format date/time to return to database - second attempt
•  format date/time to return to database
•  Trying to create a C++ Object Oriented game


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006