473,383 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

jquery return false problem

pradeepjain
563 512MB
Expand|Select|Wrap|Line Numbers
  1. <script LANGUAGE="JavaScript">
  2. function confirmSubmit()
  3. {
  4. jConfirm('Is the Appointment Confirmed?', 'Confirmation Dialog', function(r) {
  5. if(r){return true;}
  6. else {return false;}
  7. });
  8.  
  9. }
  10. </script>
  11.  
whjen i submit the foem i call this function and use jConfirm from jquery. i print r .its printing properly like true and false.but return false or return true has no effects.it just shows ths pop up and submits the form,does not wait for confirmation. how to solve this?
Apr 7 '10 #1
3 4325
acoder
16,027 Expert Mod 8TB
Can you not just use:
Expand|Select|Wrap|Line Numbers
  1. return confirm('Is the Appointment Confirmed?');
Apr 29 '10 #2
pradeepjain
563 512MB
Yeah i was using it. but jconfirm provided a styled pop up window..
Apr 29 '10 #3
acoder
16,027 Expert Mod 8TB
You'll have to submit the form manually because you're in the inner function, e.g.
Expand|Select|Wrap|Line Numbers
  1. if (r) document.getElementById("formID").submit();
Apr 29 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Colin Hale | last post by:
I have a problem (amongst others)... I have the following code which sends 2 emails. I only want to send one! <A ONCLICK="OnActionClick('E-Mail')" ID="EMailNowAnchor" NAME="EMailNowAnchor"...
1
by: philjhanna | last post by:
Hi I'm having a problem applying return false to a div via addEventListener. I'm adding this so that I can drag (click-hold-move) over an image. (Its so that I can add zooming to the image)...
2
by: philjhanna | last post by:
Hi, Does anyone know why I can't add return false with addEventListener in firefox (1.0.6). This demonstrates the problem If return false is added to onmousedown then you can drag over the...
13
by: alvin.yk | last post by:
Hi, Normally, a piece of code such as <a href="http://www.yahoo.com" onclick="alert('hello');return false;">link</a> will stop the browser from actually going to href's destination....
3
by: leos1981 | last post by:
I am currently working on the asp.net web project. I using the return false method to stop the submit action when the user choose to cancel the action. It is working fine before I am installing the...
8
by: Peter Afonin | last post by:
Hello, I'm using Javascript in ASP.NET application to check whether at least one checkbox in datagrid has been checked. If validation fails, the user gets a warning. If he clicks OK, the form is...
2
by: FunkHouse9 | last post by:
I have 2 functions, the first one, "GetSelectedItem" is determining which radio button was selected and running the "formvalidation" function if needed. This is working fine. My problem is getting...
5
by: dangt85 | last post by:
Hello, I have the following page: ... <style type="text/css"> body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
1
by: Brian Jacob | last post by:
I am constructing a simple FAQ page, where the page loads with all of the available questions displayed and all answers are initially hidden. When the user clicks on a particular question, I am...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.