[jQuery] Re: pausing a link and resuming its normal behavior

2008-06-05 Thread Shelane Enos

I actually found that in this case I'm using jqModal, it stops the click of
the a.  however, in order to make it go to where the link would be after
they have done their login through jqModal, I have a form on the page that
I'm submitting.  Not the most elegant, but it gets the job done.


On 6/4/08 9:13 PM, Karl Swedberg [EMAIL PROTECTED] wrote:

 
 Hi Shelane,
 
 Have you considered using a simple confirm message?
 
 For example:
 
 $('a').click(function() {
 var c = confirm('are you sure?');
 if (!c) return false;
 });
 
 --Karl
 
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com
 
 
 
 
 On Jun 4, 2008, at 6:25 PM, Shelane wrote:
 
 
 If I click a link, I want to trigger a modal, and based on a response
 from the modal, I either want to cancel the link click or make the
 link be followed.  Has anyone done this sort of thing or know how to
 accomplish it?
 
 
  




[jQuery] Re: pausing a link and resuming its normal behavior

2008-06-04 Thread Karl Swedberg


Hi Shelane,

Have you considered using a simple confirm message?

For example:

$('a').click(function() {
var c = confirm('are you sure?');
if (!c) return false;
});

--Karl

Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jun 4, 2008, at 6:25 PM, Shelane wrote:



If I click a link, I want to trigger a modal, and based on a response
from the modal, I either want to cancel the link click or make the
link be followed.  Has anyone done this sort of thing or know how to
accomplish it?