Well, I have set a number of sessions in fact, the one to store logged in details is the one I've been testing the global.asa with.
When you say you don't use global.asa, do you include the Sub Session_OnEnd within the actual asp file or is it all manually handled by checking session content...
Is there a way to catch session timeouts, or to redirect users to another page on timeout?
I've googled a bit, and I hope I'm not mistaken, the Global.asa file seems to offer something like this, but it doesn't work for me.
I've got:
<script language="vbscript" runat="server">
Sub...
Oops, sorry, that was a one off typo in my javascript, not meant to be a 3rd parameter in there.
Been experimenting with different combinations so far, moving between the onClicks and hrefs but still no success.
Sorry, I guess I was unclear in the first post.
I've got this placed in an external js file, held in a function. So an example is like this:
function ProdWin(str) {
window.open(str,'Prod',,'left=200,top=100,width=700,height=350,resizable=yes');
}
And from my asp pages, I'm calling these...
Hi,
Just stumbled upon this problem and really have no idea how to overcome it.
I'm using javascript to open new windows via the window.open technique. I've been testing with Mozilla Firefox all the time along and the new windows open perfectly in it.
However, once I tried testing in IE, no...
Hi,
Thanks for the reply.
I notice the way you've encapsulated the string with quotes. Is this for the body onLoad statement?
I'm not sure if this would work in my instance, as I'm posting back to the same page and processing on it, then deciding to redirect if correct.
Thanks again.
Maldini
Hi,
I've been trying to get a simple javascript redirection fucntion to work, after this form in ASP has been posted back. Once checked to be valid, I'm showing some hidden divs to the user and want to redirection in say 10 seconds.
I can do the redirection part using:
window.location
in...
Hi,
I remember having done something similar with MS SQL Server where if no parameter was provided, SQL Server's stored procedure could substitute some "match all" wildcard type of value in.
Is this possible using the Access version of stored queries? basically, I have a number of drop down...
Hi,
Is this possible?
What I'm trying to do is a simple:
If Rst1("ID") = Request.Querystring("PassedID") Then
// Run some code
Else
// Run something else
End If
However, I've tried replacing the querystring with a variable, wrapping the recordset with quotes, but nothing seems to work.
Any...
Thanks for the quick reply.
My divs already had names, but it still didn't work.
This is what I've got:
<SCRIPT language="JavaScript">
function hide_div() {
alert('In function');
document.getElementById('breadcrumb').style.display = 'none'...
Hi,
Been trying to use javascript to hide a div in a page after its been processed.
I've searched around and seen a number of methods, none of which seem to work for me including:
document.all["DIVNAME"].style.visibility = 'hidden';
document.all["DIVNAME"].style.display = 'none'...
Hi,
I'm trying to do a regex to match email accounts from a specific domain.
So say, I'm trying to match all people that use my registration form using a Hotmail account.
This is the regex expression I have right now. Doesn't seem to match any hotmail accounts as valid though.
var...
Hi,
I've some ASP code that processes data with the database. As I'm catching any errors that are found, I'm hoping to use JavaScript to show the error caused to the user.
Does anyone have a tutorial on how I can pass a string in ASP to javascript or how to run some javascript from ASP?
PS...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.