Skip to main content

Search and Top Navigation

#6081 closed bug (worksforme)

Opened September 20, 2010 04:09PM UTC

Closed September 20, 2010 04:14PM UTC

Last modified October 11, 2012 09:15PM UTC

Datepicker submits page when embedded in a dialog in IE 8

Reported by: yeksa Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.8.2
Keywords: datepicker, dialog, submits Cc:
Blocked by: Blocking:
Description

had a page with date pickers workign fine on it when I opened a dialogue box and activated a datepicker in it changing the date by selecting a entry from the month table would submit the page in IE

I used the following to fix on my site.

Thanks



$("#eventDate").datepicker({ 
	dateFormat: 'd-M-yy', 
	onClose: function(dateText, inst) {
		agent = jQuery.browser;
		if(agent.msie) {
			event.cancelBubble = true;
		} else {
			event.stopPropagation();
		}
		return false;
	} 
});

Attachments (0)
Change History (3)

Changed September 20, 2010 04:12PM UTC by yeksa comment:1

dam on testing with FF4.06beta the code needs to be the following as it works correctly in firefox and not in IE

$("#eventDate").datepicker({ 
	dateFormat: 'd-M-yy', 
	onClose: function(dateText, inst) {
		agent = jQuery.browser;
		if(agent.msie) {
			event.cancelBubble = true;
		}
		return false;
	} 
});

Changed September 20, 2010 04:14PM UTC by scottgonzalez comment:2

resolution: → worksforme
status: newclosed

This is working fine for me. Please include a full test page showing the problem.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted