[jQuery] .attr issue in Chrome on Windows

2009-12-23 Thread Scott Wilcox
Hi folks, I'm using the Google CDN hosted JQuery file listed below: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js I have this function below which works fine in Firefox (all os's), Safari and Chrome on mac, but not Chrome on Windows. Very strange! function switchImage(t,filename)

[jQuery] attr doesn't work in IE6 and Chromium

2009-08-11 Thread Julijan Andjelic
$("#sitemap a:eq(1)").attr("onclick","$('#sitemap a:eq(2)').text(''); sch('brands', '").text(" / "); $("#sitemap a:eq(2)").attr("onclick", "$('#sitemap a:eq(1)').text(''); sch('categories', '").text(" /

[jQuery] attr() on crashing IE6

2009-07-20 Thread Hector Virgen
I am building a page that loads a css file through javascript. To help prevent "flash of unstyled content"[1], I am loading the CSS file as early as possible (before document.ready()). I am using jQuery 1.3.2. In Firefox 3.5.1 and Chrome 2.0.172.37 this is working properly, but in IE6 the browser c

[jQuery] jQuery - attr method - Error Object required - Only in IE8

2009-06-26 Thread annu
hi, hi, Could any one help me with this, i am using jquery version - jQuery 1.1.3.1, there is a module to set some values so when i click on the submit button i get the following error (only in ie8) [[Webpage error details]] User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Triden

[jQuery] attr("href") giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
I'm wanting to read in the exact string that's contained in an anchor's href attribute in order to use it as the POST variable list for an Ajax call to a PHP script, however in IE6 and 7 the string read from the href attribute ends up being the absolute path, not just the href attribute. Here's ex

[jQuery] attr feature

2009-02-09 Thread Tom Shafer
Does the attr feature let me capture my own attribute inside a element. I am trying and it doesnt seem to be working. I just wondering if there was a way to do this. Thanks -Tom

[jQuery] Attr(name)

2009-02-05 Thread obiwanknothe
I have created a form that has multiple input tags (6 to 8) and I am using the "alt" attribute of the of the input tag to to retrieve information with this method "var current = $("input").attr("alt");". While this works on the first index of the input tag it does not help if the input fields are

[jQuery] attr not return value

2009-01-19 Thread Antol
this linea working goo in jQuery 1.2 but in 1.3 return undefined $(opts.xmlConfig).find("#btnNew").attr("action")

[jQuery] attr('type') gives me checkbox instead of radio

2009-01-08 Thread bob
Female Male var type = #('inp...@name=gender]').attr('type'); alert(type); Why do I get checkbox instead of radio?

[jQuery] attr('title') giving odd renaults

2008-10-29 Thread Nathan
I'm using attr('title') to find the title of the first anchor in a list and then make that title the value of an alt tag for an image. $('#imageswap a:first').attr('href', function(){ var altName = $(this).attr('title'); $('#productimage').append('');

[jQuery] .attr('height')

2008-10-23 Thread diego
Hi all, I'm building a gallery, and so far it works in every browser except Internet Explorer, The problem is that IE (burns to hell) doesn't read these variables var height = $('#'+litebox+'>img.lite').attr('height'); var width = $('#'+litebox+'>img.lite').attr('width'); the alert (alert(liteb

[jQuery] attr('onclick','') problem on ie6

2008-08-24 Thread Sarbesh
Hi, i'm new to jquery and i'm having some problem. the code below works fine in FF3.0 but doesn't work with IE 6.0. i used it to show and hide table row when user click the show/hide icon id and a_id are dynamic ids. id will be something like #23, and a_id like #id_23 function show_hidden_row

[jQuery] attr(style: ) vs. css

2008-07-19 Thread Geir
Hi all! What's the difference between: 1. attr(style: "prop./val.") 2. css({prop./val.}) and 3. animate({prop.val.}, 0) Are all the changes set in the html inline-style? Thanks! Reference for my question: http://groups.google.com/group/jquery-en/browse_thread/thread/10ce43d5f882b642?hl=en

[jQuery] .attr does not work with read-only SVG IDLs

2008-06-30 Thread atrax
If I use the .attr method to set attributes on elements I run into the following problem when using it for SVG content. Most of the SVG IDLs define properties as read-only although they are writable as DOM attributes. In JQuery-1.2.6 the code for .attr has changed to use the property mechanism (el

[jQuery] attr() does not return undefined in IE8

2008-06-10 Thread jrabbit
I've just discovered a slight compatibility issue with the IE8 beta when running in the default standards mode. The following code should return undefined, but it actually returns an empty string: hello alert($("div").attr("doesnotexist")); It works correctly whe

[jQuery] attr difference in Firefox and IE7

2008-05-20 Thread Sid
Hi, I'm using the .attr() to set attributes of an img tag. This works in Firefox 2.0.0.14 but not in Internet Explorer 7. The offending piece of code is $('#preview').livequery(function() { $('#preview').attr('src',previewImage); $('#preview').attr('width','302px'); $('

[jQuery] attr('form') not work in firefox

2008-05-18 Thread [EMAIL PROTECTED]
This is my html: and javascript:

[jQuery] .attr on data returned by ajax loaded content (data)

2008-04-07 Thread Haris
Why won't the pie menu play button link update on AJAX loaded data? It works on normal static content. http://bin.cakephp.org/view/1613608944

[jQuery] attr() fails sometimes.... (using droppable and draggable)

2008-03-26 Thread sweetL
{ i tried to make this post once, but it didnt appear!! } I did initially post this over on the jquery UI group, but the concensus is that its not really a ui issue, its a jquery issue... so im posting here. Sorry to just join without introduction, this issue is doing my head in... First off, f

[jQuery] attr() fails sometimes.... (using droppable and draggable)

2008-03-26 Thread sweetL
I did initially post this over on the jquery UI group, but the concensus is that its not really a ui issue, its a jquery issue... so im posting here. Sorry to just join without introduction, this issue is doing my head in... First off, firefox + firebug is a must, some console.debug'ing going on

[jQuery] attr ie bug

2008-01-31 Thread hcvitto
hi i got this code working in firefox but not in IE. $("a[href]").each(function(){ if ($(this).hasClass("ppt") || $(this).hasClass("pdf") || $ (this).hasClass("allegato") || $(this).hasClass("doc") || $ (this).hasClass("jpg") || $(this).hasClass("xls") || $ (this).hasClass("extern

[jQuery] attr ie bug

2008-01-31 Thread hcvitto
hi i'm using this code to add the target=_blank attribute to links. $("a[href]").each(function(){ if ($(this).hasClass("ppt") || $(this).hasClass("pdf") || $ (this).hasClass("allegato") || $(this).hasClass("doc") || $ (this).hasClass("jpg") || $(this).hasClass("xls") || $ (this).h

[jQuery] attr - problem getting attributes in IE6 ... IE7 and FF are fine

2008-01-16 Thread skatta
in this issue First off ... i'm using ajax to pull elements into the DOM. So my code uses this (there are probably better ways to do this) ... $(document).ready(function() { $('body').click(function(event) { if ($(event.target).is('.touchRfq')) { var touchco = $(event.target.id).attr("name

[jQuery] .attr("type","hidden")

2007-10-29 Thread Robert O'Rourke
Hi, does $("some selector").attr("type","hidden") work for anyone? I'm getting this in firebug: [Exception... "'type property can't be changed' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no] Cheers, Rob

[jQuery] Attr calls on jQuery object with more than one element?

2007-09-27 Thread Andy Matthews
If I wanted to get the rel values for all elements which match a jQuery call, how would I do that? I thought that this: var $selected = $('.selected').attr('rel'); alert($selected); would give me this: 9/1/2007,9/30/2007 But it only returns the first value. Is this correct behaviour? I basi

[jQuery] attr({'type':'hidden'}) in IE6

2007-08-26 Thread Minh
Getting an error when I tried to set a input attribute to hidden in v1.1.2, v.1.1.3.1 and v1.1.4. Using $ ("#inputID").attr({'type':'hidden'}) and $ ("#inputID").attr("type","hidden").

[jQuery] .attr( "type" ) returns 'undefined' for element

2007-05-30 Thread soros
The following line returns 'select-one' in IE6 and 'undefined' in Firefox 2.0.0.3. $( "#Province" ).attr( "type" ) Ontario Alberta Nova Scotia I get the same results in jQuery 1.1.2 and 1.1.3a releases. Is this is a bug? If I use document.getElementById("Province").type I

[jQuery] attr("style" vs css(

2007-05-09 Thread Bil Corry
In IE7, this doesn't work on an element (and possibly others, didn't test it): $(".pics").attr("style","border-style: solid; border-width: 1px; border-color: white;"); But this does work for IE7: $(".pics").css("border-style","solid").css("border-width","1px").css("border-c

[jQuery] .attr()

2007-04-30 Thread Ariel Jakobovits
I am looking for an explanation as to why .attr('id') executed on an array of jQuery elements does not return an array of ids.

[jQuery] attr('defaultValue') does not exist.

2007-04-21 Thread [EMAIL PROTECTED]
While i can acces a default value of an input field by: field.defaultValue i can't access it by $(field).attr('defaultValue') All other attributes i can acces via the .attr() method but not this one. Can it be added?