Click here to Skip to main content
15,891,864 members
Home / Discussions / Web Development
   

Web Development

 
Generalregex Pin
alex.barylski22-Mar-04 20:55
alex.barylski22-Mar-04 20:55 
GeneralRe: regex Pin
henningbenk22-Mar-04 21:14
professionalhenningbenk22-Mar-04 21:14 
GeneralRe: regex Pin
Ian Darling22-Mar-04 21:34
Ian Darling22-Mar-04 21:34 
GeneralWeird POST problem Pin
alex.barylski22-Mar-04 18:38
alex.barylski22-Mar-04 18:38 
Generalemail java script validation Pin
harinath22-Mar-04 18:08
professionalharinath22-Mar-04 18:08 
GeneralRe: email java script validation Pin
John Kuhn22-Mar-04 20:17
John Kuhn22-Mar-04 20:17 
GeneralJavascript getElementById Pin
Spiros22-Mar-04 12:02
Spiros22-Mar-04 12:02 
GeneralJavascript confirm() not working Pin
chubbysilk22-Mar-04 10:35
chubbysilk22-Mar-04 10:35 
Hello,
When the user pushes a button, I would like to pop up a dialog box which asks them if they would like to continue or not. It the user chooses to continue, then the code on the server will run. I attempted to do this using the Javascript confirm() method. Here is my script:
<br />
function ConfirmDelete()<br />
{<br />
	var msg = "Are you sure you want to delete the account?";<br />
	if(confirm(msg))<br />
	{<br />
		<%DeleteAccount();%><br />
	}<br />
}<br />


Here is the html:
<br />
<INPUT id="DelAcc" onclick="ConfirmDelete();" type="button" value="Delete Account" name="DelAcc"><br />


For some reason, the code in the ConfirmDelete function is being called immediately when the page loads (this includes the DeleteAccount server code), instead of just when the button is pushed. Is there something wrong with my code? Or, is there a different way to do this?

Thanks,
RC
GeneralRe: Javascript confirm() not working Pin
John Kuhn22-Mar-04 13:53
John Kuhn22-Mar-04 13:53 
GeneralRe: Javascript confirm() not working Pin
John Kuhn22-Mar-04 16:06
John Kuhn22-Mar-04 16:06 
GeneralRe: Javascript confirm() not working Pin
chubbysilk23-Mar-04 7:30
chubbysilk23-Mar-04 7:30 
GeneralImage on image Pin
HobieHero21-Mar-04 19:48
HobieHero21-Mar-04 19:48 
GeneralRe: Image on image Pin
Paul Watson21-Mar-04 22:29
sitebuilderPaul Watson21-Mar-04 22:29 
GeneralSetting the height of a DIV... Pin
theJazzyBrain21-Mar-04 13:21
theJazzyBrain21-Mar-04 13:21 
GeneralRe: Setting the height of a DIV... Pin
alex.barylski21-Mar-04 15:54
alex.barylski21-Mar-04 15:54 
GeneralRe: Setting the height of a DIV... Pin
theJazzyBrain22-Mar-04 11:01
theJazzyBrain22-Mar-04 11:01 
GeneralRe: Setting the height of a DIV... Pin
John Kuhn22-Mar-04 13:45
John Kuhn22-Mar-04 13:45 
GeneralRe: Setting the height of a DIV... Pin
theJazzyBrain22-Mar-04 21:33
theJazzyBrain22-Mar-04 21:33 
GeneralRe: Setting the height of a DIV... Pin
John Kuhn23-Mar-04 10:38
John Kuhn23-Mar-04 10:38 
GeneralRe: Setting the height of a DIV... Pin
theJazzyBrain23-Mar-04 21:16
theJazzyBrain23-Mar-04 21:16 
GeneralRe: Setting the height of a DIV... Pin
John Kuhn24-Mar-04 7:11
John Kuhn24-Mar-04 7:11 
GeneralRe: Setting the height of a DIV... Pin
theJazzyBrain25-Mar-04 20:56
theJazzyBrain25-Mar-04 20:56 
GeneralRe: Setting the height of a DIV... Pin
John Kuhn26-Mar-04 9:20
John Kuhn26-Mar-04 9:20 
GeneralTab Navigation Help Pin
caheo21-Mar-04 2:35
caheo21-Mar-04 2:35 
GeneralRe: Tab Navigation Help Pin
Paul Watson21-Mar-04 22:34
sitebuilderPaul Watson21-Mar-04 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.