Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 14th, 2003, 08:47 AM
Registered User
 
Join Date: Jun 2003
Location: Jeddah, , Saudi Arabia.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mudar
Default Default Button for ASP page

Hi, I have two questions please:

1) How can I set a default button in a web page?

2) How can confirm deleting records by displaying a message before processing?

Thank you in Advance

Mudar
Reply With Quote
  #2 (permalink)  
Old June 21st, 2003, 07:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Moharo
Default

i don't know what you mean by a default button...
you can use confirm message box as follows:

<script language="JavaScript">

var myconfirm = confirm("Do you really want to delete records");

if(myconfirm) { //user agreed to delete the records
    //code for deleteing
}

</script>



the genuine genius
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing page refresh from asp.net button hericles ASP.NET 1.0 and 1.1 Professional 2 October 8th, 2008 04:29 PM
Adding a button to an asp page snufse ASP.NET 2.0 Basics 1 January 8th, 2008 11:46 AM
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
Default to Visual InterDev Opening ASP Page ritag Classic ASP Basics 3 August 16th, 2004 03:13 PM



All times are GMT -4. The time now is 10:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.