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)
$("#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(" /
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
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
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
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
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
this linea working goo in jQuery 1.2 but in 1.3 return undefined
$(opts.xmlConfig).find("#btnNew").attr("action")
Female
Male
var type = #('inp...@name=gender]').attr('type');
alert(type);
Why do I get checkbox instead of radio?
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('');
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
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
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
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
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
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');
$('
This is my html:
and javascript:
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
{ 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
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
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
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
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
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
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
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").
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
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
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.
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?
30 matches
Mail list logo