Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2004, 04:08 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I had one '=' sign missing :-)

Snib

<><
 
Old July 12th, 2004, 04:25 PM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry to keep on bothering you, Snib.

Please tell me what I'm doing wrong.

Can u plz tell me where should I put:

    document.onkeydown=function(){handle_key;};

I tried putting it between the script tags:

<html>
  <head>
    <title>test</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <SCRIPT SRC="jscripts/audit.js" TYPE="text/javascript"></SCRIPT>
    <SCRIPT>
    document.onkeydown=function(){handle_key;};
    </SCRIPT>
  </head>
  <body MS_POSITIONING="GridLayout" ONUNLOAD="UpdateAudit()">
    <ACONLINE:ACOGLOBALS ID="ACOGLOBALS" RUNAT=SERVER />

    <form id="Form1" method="post" runat="server">
  <ACONLINE:ACOHEADER ID="ACOHEADER" RUNAT=SERVER />

    </form>

  </body>
</html>


That didn't work, so I've also put it in the audit.js file:


/**********************************************/

document.onkeydown=function(){handle_key;};


function UpdateAudit()
 {
   window.open('aco_update_audit.aspx');
 }

function handle_key()
{
 if(event.keyCode==116)return false;
}

/**********************************************/

And that didn't work. Any ideas? Thanks again !
 
Old July 12th, 2004, 04:47 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

What happens? What are you expecting? This script simply (maybe) disables the use of the F5 button.

Snib

<><
 
Old July 12th, 2004, 04:56 PM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thought I had my jscript wrong ( didn't get any errors).

I guess it didn't disable the refresh.

Well, it's all good. Thanks for trying to help me.

If I'm lucky, one day I'll get to be as good as you.
 
Old July 12th, 2004, 05:24 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
quote:If I'm lucky, one day I'll get to be as good as you.
I started this year... I got most of my answers to you from a similar experience, with which Imar helped me. :-)

Anyway, glad what you've got is acceptable! :-)

Snib

<><





Similar Threads
Thread Thread Starter Forum Replies Last Post
stop current javascript function using javascript sakthi Javascript 3 June 2nd, 2008 03:30 PM
Response.Redirect + Javascript jfergy Classic ASP Basics 2 January 17th, 2006 09:17 PM
Simply Deleting Question - ThnX ! ank2go SQL Language 2 November 16th, 2004 04:55 PM
Anchor Problem - Plz Help - ThnX ! ank2go HTML Code Clinic 6 June 30th, 2004 03:18 PM
Date Format - Truncating - Plz Help - THNX ! ank2go VB.NET 2002/2003 Basics 2 March 30th, 2004 11:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.