jeffreyhi1 / jquery-timepicker

Automatically exported from code.google.com/p/jquery-timepicker
0 stars 0 forks source link

type property can't be changed #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Anyone else getting this error in Firefox?

What steps will reproduce the problem?
1. jQuery("#Time").timepicker(); 

What is the expected output? What do you see instead?
+ input#Time should be replaced with the timepicker selects
+ Instead, get error:

Error: [Exception... "'type property can't be changed' when calling method: 
[nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e 
(NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]

What version of the product are you using? On what operating system?
+ Firefox 3.0.10
+ Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.10) 
Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)

Please provide any additional information below.
+ The offending line is 96:

    $(this).attr('type', 'hidden').after(output);

Workaround:

    $(this)[0].style.display="none"; 
    $(this).after(output);

Original issue reported on code.google.com by DanielLa...@gmail.com on 11 Jun 2009 at 9:22

GoogleCodeExporter commented 9 years ago
I got the same error using jquery 1.3.2,  the proposed work around seems to 
resolve
the issue in Firefox,  have not tried anywhere else.

thanks.

Original comment by goclem...@gmail.com on 21 Jun 2009 at 1:26

GoogleCodeExporter commented 9 years ago
The same error with jquery 1.3.2 here. Workaround helped with Safari 4.0.3 (Mac)

Thanks Daniel!

Original comment by troex@fury.scancode.ru on 23 Sep 2009 at 1:36

GoogleCodeExporter commented 9 years ago
I had the same problem with :
- jQuery 1.3.2
- User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.3) Gecko/20090824
Firefox/3.5.3

and the workaround fixed the issue. Thanks !

Original comment by mbernard...@gmail.com on 5 Oct 2009 at 1:21

GoogleCodeExporter commented 9 years ago
Same error here with:
- jQuery 1.3.2
- Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.1.3) Gecko/20090824
Firefox/3.5.3 (.NET CLR 3.5.30729)

Workaround works also in:
- Opera/9.80 (Windows NT 6.0; U; nl) Presto/2.2.15 Version/10.00
- IE8 8.0.6001
- Chrome 3.0.195
- Safari 4.0.3

Thnx a lot!

Original comment by vpoulis...@gmail.com on 18 Oct 2009 at 3:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Try this:

$('#obj')[0].type = 'newtype';

Original comment by litemini...@gmail.com on 7 Jan 2011 at 7:08