Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-26-2009, 04:01 AM   PM User | #1
girlzz
New to the CF scene

 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
girlzz is an unknown quantity at this point
Unhappy need help, urgent!

hello... just need help..... i had made one confirmation box... work successfully but the problem is when i clicked cancel, the data also had been deleted... i need when the cancel button, the data will be remain... so anyone can help me???
Code:
<script type="text/javascript">
<!--
function confirmation() {
	var answer = confirm("Are you sure?")
	if (answer){
		alert("One record sucessfully deleted!")
		window.location = "q_group1.php";//my page if click button yes and the data will be deleted
	}
	else
  {
 window.location = "query_grp1.php";// the page remain and data remain if click cancel button
  }

}
//-->
</script>
girlzz is offline   Reply With Quote
Old 05-26-2009, 08:20 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Please provide much more info (and more code). Are you trying to validate your form?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:18 AM.


Advertisement
Log in to turn off these ads.