Bug Tracker

Opened 11 years ago

Closed 11 years ago

#10890 closed bug (invalid)

IE8 click and trigger access denied

Reported by: [email protected] Owned by: [email protected]
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

The following code fails with an "access denied" javascript error, using click(), trigger(), or default javascript click().

$('#photo').change(function(e) {
    		setTimeout((function(){
				$('#submit').trigger('click'); 
				//document.getElementById("submit").click();
								setTimeout((function(){
					$('#filename').text("")
					$('#photoHolder').empty().delay(15000).html('<img id="currPhoto" border="none" height="100" width="80" src=""/>');
					$('#currPhoto').attr("src", "getImage.cfm?ssoid=0118999");
					//alert($('#currPhoto').attr("src"));
					}),3000);
			}), 2000);
		});

Change History (3)

comment:1 in reply to:  description Changed 11 years ago by anonymous

This is the line of code in 1.7.1 that IE8 points to in debugger:

c.type=h,c.isDefaultPrevented()||(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));

Replying to [email protected]:

comment:2 Changed 11 years ago by dmethvin

Owner: set to [email protected]
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

comment:3 Changed 11 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.