...
success : function(html){
$(html).find('#mydiv').appendTo('#content');
}
...
On Oct 20, 11:43 pm, brobro [EMAIL PROTECTED] wrote:
Hi,
if I use $.ajax() to fetch a file. Would it be possible to search throught
that file for a certain element and use that?
like
Jack, he actually says all links in a paragraph with id 'para', so
using $('#para a') is perfectly correct.
On Oct 21, 8:43 pm, Jack Killpatrick [EMAIL PROTECTED] wrote:
I see via other replies that the .text() instead of .text issue has been
resolved, but maybe worth pointing out, too (though
Remove 'position:relative;' from your #headerphoto css.
On Oct 21, 10:05 pm, MichaelEvangelista [EMAIL PROTECTED] wrote:
just a thought, probably better ways -
but could you use the same css() to set 'background:none' at the same time
you trigger the slideup?
--
--
Michael Evangelista,
nothing to me beyond sticking 2 ice cubes
together by pressure alone!
On Oct 20, 12:29 am, Rick Faircloth [EMAIL PROTECTED]
wrote:
You're actually correct, Wizzud...
In experimenting with opening and closing a details section
I started with trying to manipulate table rows, but the animation
jQuery('#idOfImageToBeClicked').bind('click', function()
{ jQuery('#newDiv').show(); });
On Oct 19, 10:03 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
I have a 16x16 image that will be dragged around the screen as part of
a larger DIV. When someone clicks on the image, I'd like
The code you have seems to imply that you're opening/closing tables,
not rows.
Some html would help, otherwise one has to guess as to the structure.
Possibility ...
$(this).siblings(':visible:not(.clickable)').slideUp();
On Oct 19, 7:16 pm, Rick Faircloth [EMAIL PROTECTED] wrote:
.close an
The simplest way is to reduce it's opacity ...
jQuery('img').css({opacity:0.5});
On Oct 19, 10:31 am, Alessandro Feijó [EMAIL PROTECTED] wrote:
Its possible to turn any image to gray simulating a disabled effect??
I'm trying to find it out but don't know what are the keywords to search for
And the code/html would be ? Or a test page maybe?
On Oct 19, 10:51 am, chrisandy [EMAIL PROTECTED] wrote:
Very new to this but really puzzled by an error in IE6 and IE7.
I'm using the fx slideDown effect and it is giving me an 'Invalid
Argument' error - Fine in FF and Safari.
I've
Maybe I have misunderstood but if you really need to keep constant
track of these 'selected' divs what's wrong with ...
jQuery(function){
var selectedDivs = $('div.selected');
$( selector for unselected divs ).click(function(){
$(this).addClass('selected');
The change was deliberate, because most people use remove() to
(literally) remove the element(s) in question, and any bound events
were getting left behind in the jQuery data cache (along with any
other element-assigned data held there) and possibly causing memory
leakage.
If you want to keep an
If you're still not sure what it does I'm just expanding on what Karl
wrote above
Given your code of...
for (var i = 0; i 10; ++i)
{
var n = $($(virtual-sensor,data).get(i)).attr(name);
if (n!=null) gsn.vsbox.add(n); // add the selection to a box
}
...the line ...
I'm not sure how much this is going to help, given that my knowledge
of ASP.NET is zilch but...
As an aside, from jQuery v1.2, your initial page load code could be
simplified to ...
$('ul.errors li:has(span:hidden)').hide();
But ... I get the impression that the errors are the only things
hidden.
Any idea how I can loop through the page to continuously monitor spans
and detect if they've been shown/hidden, then show/hide my LI's in
response?
On Oct 17, 5:20 am, Wizzud [EMAIL PROTECTED] wrote:
I'm not sure how much this is going to help, given that my knowledge
of ASP.NET
Using a filter is the only thing I could think of...
$('*').filter(function(){ return /\.png/.test($
(this).css('backgroundImage')); }).ifix.png();
Refining the initial selector it would help.
On Oct 16, 7:29 pm, tpneumat [EMAIL PROTECTED] wrote:
Was thinking something like this...which of
], [userData] )
Then I can achieve my goal with this way:
for(var i=0; i2; i++){
$.get(url+i, function(html, userData){
doit(html, userData['tag']); // userData was bound to ajax
callback
}, {'tag': i});
}
Wizzud wrote:
var url='http://foo.bar/?param=';
for(var i=0; i2; i
An alternative ...
$(['table border=1trtdContent/td/tr'
,'trtd/td/tr'
,'trtdMore Content/td/tr'
,'/table'].join(''))
.insertAfter('#target').find('td:eq(1)').append($('#target'));
On Oct 15, 10:17 pm, Glen Lipka [EMAIL PROTECTED] wrote:
Tricky problem. I found one way, but there
With no indication of what either the 'parent' HTML structure or the
JSON structure is like, is it possible to switch from ...
var $component = $(state.html);
$component.appendTo(parent);
...to...
$(parent).html(state.html);
(You wouldn't need to empty parent first - html() does that
Apart from the fact that it's a manual action, what doesn't work with
the example code?
On Oct 13, 3:23 pm, Mark [EMAIL PROTECTED] wrote:
It seems this post was deleted... Why?
If I have a main page and a section of it generated by Ajax, how do I
access an element in the main page from the
var url='http://foo.bar/?param=';
for(var i=0; i2; i++){
submitAjax(i);
}
function submitAjax(i){
$.get(url+i, function(html){
doit(html, i);
});
}
function doit(html, tag){
alert(tag);
}
On Oct 13, 11:04 am, arphenlin [EMAIL PROTECTED] wrote:
Below is an example to use
Reset from what to what?
On Oct 14, 1:36 pm, wattaka [EMAIL PROTECTED] wrote:
I need them for buttons, I have a set of buttons that all have hover
colors, when one clicks on one, all the others should be reset
On Oct 14, 2:43 am, Glen Lipka [EMAIL PROTECTED] wrote:
Why do you need jQuery
OK.
You can't.
Use your own class for active, not the pseudo, and just toggle it on/
off.
On Oct 14, 3:53 pm, wattaka [EMAIL PROTECTED] wrote:
from hover to active for the active button and the others to hthe
normal status, which would be :link
On Oct 14, 3:45 pm, Wizzud [EMAIL PROTECTED
Can you make a test page available that demontrates this problem?
And what version of IE has the problem?
On Oct 13, 6:47 am, Pops [EMAIL PROTECTED] wrote:
I am not sure how I missed this early in my plugin development, but I
see it now.
For my new hover plugin, I noticed jQuery was
You're making an assumption that in IE there are newline characters in
the retrieved html - there aren't.
Try this ...
// $codetext.pop();
// $codetext.shift();
if(!$codetext[$codetext.length-1]) delete
$codetext[$codetext.length-1];
if(!$codetext[0]) delete
Try...
var forAttr = '#last_name';
$('a[href=' + forAttr + ']').text('ciao');
On Oct 13, 10:03 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi,
I have this small issue that I cannot solve.
I look for an element checking the attribute href:
$('a[href='#last_name']').text('ciao');
Not me.
On Oct 13, 3:43 pm, Jiming [EMAIL PROTECTED] wrote:
I found the enhancement of prototype and motool is very helpful to
coding.
Anyone agree with me?
Thanks!
Jiming
$('a').filter(function(){ return ($
(this).parents('#xy').length==0); }).MyFunction();
On Oct 13, 9:28 am, ksuess [EMAIL PROTECTED] wrote:
Hi. I want to apply a function to all links, but not these in a div
with id #xy. There could be nested elements in #xy with links in it.
How can I modify
If you don't have control over the php then ...
$('a[id^=showtxt]').click(function() {
var divID = this.id.replace(/^showtxt(\[)(\d+)(\])$/, '#textbox
\\$1$2\\$3');
$(divID).slideToggle(400);
return false;
});
If you DO have control over the php then I would recommend
Try...
v.parents(.vtiproot).css( { zIndex : 101 } );
ie. if using key/value pairs, don't quote the key, and try using
camelBack notation instead of hyphens.
Also, since zIndex is a number you probably don't need to quote the
value either (not sure if this makes any difference though)...
Sorry about that, I was writing from memory and got the 'what' and the
'when' the wrong way round!
Correct format for setTimeout is ...
var timeout = setTimeout ( script-to-execute, time-in-milliseconds );
... so just swap the 2000 and the function around.
Apologies.
On Oct 11, 1:55 am,
It's the only sensible way.
jQuery provides jQuery.each( obj/arr, function() ) to iterate over
arrays/objects, which boils down to using the for...in construct.
To remove properties from an object ...
eg.
delete obj.x2;
On Oct 11, 8:57 am, Pops [EMAIL PROTECTED] wrote:
Is this the only way to
var myRows = $('table#id tr').click(function(){ alert('Row #' +
myRows.index(this) + ' clicked'); });
(index is 0-based, ie clicking on the 7th row returns 'Row #6 clicked'
in the example above.)
On Oct 10, 3:28 pm, RichUncleSkeleton [EMAIL PROTECTED] wrote:
Is it possible to detect the
@Michael
Snap!
On Oct 11, 9:26 am, Michael Geary [EMAIL PROTECTED] wrote:
From: Pops
Is this the only way to iterate through an object?
for ( x in myObject) {
}
Ultimately, yes. You can use something like $.each() on an object, but it
just runs that same for loop
ajaxSend is a global event that *every* bound listener will pick up.
You're binding listeners to all the elements that you *could* click on
to initiate the ajax call, but the ajax call does not know (or care)
what was clicked on, it just knows it has something to send.
You must have click event
The problem lies with .parent().parent().parent() attempting to find
the TABLE - it doesn't, it finds the table's TBODY.
try this instead...
//hide the calendar tables, then show first
$(#calendar table).hide();
$(#calendar #month-oct).show();
$(#calendar th a).click(function(){
// show
Is this what you're after ...
http://docs.jquery.com/Selectors/attributeContains#attributevalue
?
On Oct 11, 12:00 pm, Serge [EMAIL PROTECTED] wrote:
Is it possible to select all elements by part of its attribute? May be
there is some simple regular expressions allowed? I don't know full
not to use too many anonymous functions or your code
will get very difficult to follow!
On Oct 11, 5:50 pm, marc0047 [EMAIL PROTECTED] wrote:
Ah!
Michael: thanks! Now I know how that works.
Wizzud: thanks! It works perfectly! Here's the code for anyone else
interested:
$('#box1').animate
You need to give the class .bt some context other than the whole
document ...
$('.botoes').each(function(){
alert( $('a', this ).index( $( '.bt', this )[0] ) );
});
On Oct 11, 4:34 pm, ecopantoche [EMAIL PROTECTED] wrote:
hello all,
I'm new to jQuery, and have the following need:
Do you have anything we can look at?
On Oct 10, 8:56 pm, Jangla [EMAIL PROTECTED] wrote:
I've got a 3 level vertical menu working...ish.
For some reason, when the animation happens, the menu fades in to the
width of the link in the menu, and then pops out to the full
required width.
load ...
success callback starts function(){
$('#yellowDiv').fadeOut('normal', function(){
var offset = $('#blueDiv').offset(); // using dimensions
plugin, or
var offset = {left:$('#blueDiv').css('left')}; // if css has
left set, or whatever
setTimeout(2000,
#id should really be unique. It's never a good idea to rely on $(#id)
retrieving multiple elements with that id.
If your radios have a name of 'Gender' (which seems likely) then you
could try...
$('input[name=Gender]').each(function(){ this.checked = (this.value ==
jsonData.feedback.Gender); });
and
there is no addId method in jQuery.
On Oct 5, 5:59 pm, Wizzud [EMAIL PROTECTED] wrote:
With...
select name='foo'option value='bar1'bar1/option/select
select name='foo'option value='bar2'bar2/option/select
try...
var selects = $('select[name=foo]');
See the Attribute Filters, under Selectors
For example ... ?
On Oct 6, 10:39 pm, tramblie [EMAIL PROTECTED] wrote:
The jQuery's Ajax Requests (and some other) API won't work with
Firefox (2.0.0.7) has someone noticed the same problem? Is it an
incompatibility, a bug or what?
Why?
What are doing with the url?
When are doing something with the url?
dOS-2 wrote:
Hi to all, hope you can help..
I need to add and remove href values as you click in a list, ex:
div id=brand
ul
li 1 Yahoo /li
li 2 Yahoo /li
/ul
/div
And need to pass values to form a url..
Purely as an example ...
$(document).ready(function(){
// close the offDiv content sections (no javascript = content is all
visible)
$('.offDiv .show-hide').hide();
// showLink/hideLink shows/hides the content; showAll/hideAll shows/hides
all the content
$.each(['.show', '.hide'],
As Brandon has pointed out in your other post, you don't have a conflict at
all, you have bad code. And it's nothing to do with jQuery!
It looks like someone has run some sort of compressor on the code in
javascript.js, and the scripting isn't up to scratch and won't stand
compressing (at least,
function delete_photo (photo_id) {
if(confirm('Are you sure you want to delete this photo?')){
$.post(http://www.domain.com/delphoto/+ photo_id);
$(#+ photo_id).fadeOut(500);
}
return false;
};
Codex wrote:
Maybe I'm going about
With...
select name='foo'option value='bar1'bar1/option/select
select name='foo'option value='bar2'bar2/option/select
try...
var selects = $('select[name=foo]');
See the Attribute Filters, under Selectors in the API Reference.
(If you have non-unique ids for elements on your page, do not
Some ideas...
Firstly, if you return false from any event handler it will prevent default
action and, more importantly, event bubbling. For example, if you had
element Aelement B.../element B/elment A and you put mouseouts on
both A and B, if the mouseout on B did NOT return false (or take some
On a quick visual inspection, on suggestion is to make sure nothing
(jQuery-wise) is being called before the document is ready. You have the
following inline script...
script type=text/javascript
$('#date-pick').calendar();
/script
...and should probably wrap it
Bruce, you need to include the css required for lightbox to work -
jquery.lightbox-0.1.css.
Bruce MacKay wrote:
Hello,
I'm having difficulty getting this plugin to work - a test page is here:
http://www.thomasbaine.com/gallery.asp
I'm sure I've followed the example, but obviously
No problem, Matt.
BTW I'm sure you're aware that you can shorten...
if (o.parents().filter('div.unwantedclass').size()==0) { ... }
...to just
if (o.parents('div.unwantedclass').size()==0) { ... }
Matt Kruse-2 wrote:
On Oct 2, 6:09 pm, Wizzud [EMAIL PROTECTED] wrote:
No, you can't
The definition of the append() method is: Append content to the inside of
every matched element.
So what your script ...
$([EMAIL PROTECTED]'testinput']).append(ptest/p);
...is trying to do is insert the paragraph within the input field eg.
something like
input name='testinput ptest/p/input
and
I'm not entirely clear what you're asking here.
You have a style defined for div#Explanation and you have a div with the id
of Explanation - so the style will be applied to the div. I don't see where
jQuery comes into it all.
However, *if* what you really want is to apply all the properties of
No, you can't check for parent conditions with is(). You can test descendants
to a certain extent, but not parents.
The same goes for filter() - unless you use filter(function), in which case
you do more or less what you like!
Also, using hierarchical selectors as filters won't work - they're
well for my
using jQuery...is it prone to not playing nice with others? Just
wondering out loud...
On Sep 28, 2:40 pm, Wizzud [EMAIL PROTECTED] wrote:
@cmbtrx
I have just lifted the code directly from your second post, tagged
/body/html after the anchor, and it worked first time (Firefox
if(!$.browser.msie){
.//bug out
}
FrankTudor wrote:
I have a tool that only operates under IE
So all other browser users get an alert here is my code...but it
doesn't work...
Can someone get me straightened out?
script
$(document).ready(function()
{
Google for 'javascript reference Math object'.
FrankTudor wrote:
Is there a place that I can see the math functions available?
Frank
--
View this message in context:
http://www.nabble.com/jquery-math-functions--tf4551431s27240.html#a12989165
Sent from the jQuery General
Break it down into what is happening when.
1. You assign a click function to #windowOpen
2. You assign a click function to all elements currently in the DOM that
have a class of 'in_dom'
3. You click the button to add the new list item - item is added
4. You click the button on the newly added
Without a bit more information it is nigh on impossible to determine what
might - or might not - be happening.
Just saying it doesn't work is not particularly enlightening.
Do you have a test page that is web-accessible?
Some basics:
Does *anything* happen when the clickable element is
The first thing you should do is use valid html - the doctype you are using
does not allow a UL to be in a DL, and this could cause unforeseen problems
in any browser. That it works (ish) in some browsers could be considered
fortuitous rather than by design.
Once you've got your page to
@cmbtrx
I have just lifted the code directly from your second post, tagged
/body/html after the anchor, and it worked first time (Firefox and IE7).
I can only suggest that you check that the path to the jquery.js source file
is correct for wherever you are running it, as that is the *only* thing
I can't tell what you're doing wrong - if anything - but the following works
perfectly for me (using v1.2.1)
select id='app.id' name='fred'
option value='11'one/option
option value='22' selected='selected'two/option
/select
var t = $('#app\\.id').val(); // t is 22
syg6-2 wrote:
In
You probably need to look at this ...
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
Tom Burns wrote:
Hi,
Using the $ in jQuery causes problems for my setup. Our template engine
uses $ as its token to start paying
You could try...
$(document).ready(function() {
$('div.showHide div').hide();
$('div.showHide h2').click(function() {
$(this).siblings('.selected').andSelf().toggleClass('selected').end().end()
.next('div').slideToggle('fast')
Or, using v1.2...
var ids = $('*').map(function(i,v){return
(this.id?this.id:null);}).get().join(',');
spinnach wrote:
no, but it's easy to build a simple plugin that does that:
jQuery.fn.allIDs = function(){
var IDs = [];
this.each(function(){
if (this.id)
Name a browser that will take the submission of...
form method='get' action='prog.php'
input type='text' name='foo' /
input type='text' name='foo' /
/form
... and transmit it as : prog.php?foo[]=bar1foo[]=bar2
(and I suggest you test it first)
Christoph Roeder-2 wrote:
Ok,
This will put all selects (just selected values, no names) into textarea...
var s = $('select').serializeArray(), t = [];
$.each(s,function(n,v){ t[t.length]=v.value; });
$('textarea').val(t.join('\n'));
FrankTudor wrote:
Hi all,
I am creating a little tool that has two multiple
wrote:
Thanks Klaus and Wizzud
I really don't know what the problem is. Here is the latest thing I
tried.
// $
(#app_content_2356318).children('div').children('table').filter(function(index)
{ return false; }) ; // does not works with or without the index as
parameter. Nothing
using
String techniques, or ignored completely, or whatever you wish to do with
it.
If you want to return JSON data from AjaxHandler.php simply echo it (this is
over-simplified but still...) ...
echo {ok: true, data{sessionId: '$phpSessionId', progName:
'AjaxHandler.php', from: 'Wizzud'}};
Then tell
'
, progName: 'AjaxHandler.php'
, from: 'Wizzud'
}
}
Where does this above block go? And is that complete or would I need to
add more to it?
Just to elaborate a little more, I have a file called test.php, and
another file called ajaxhandler.php
As an example:
CSS
img.showhide {width:12px; height:12px; background:#ff
url('hide.jpg') no-repeat;} // if DIV is currently NOT hidden
img.showhideShow {background-image:url('show.jpg');} // if DIV is
currently hidden
or you can put both the show and hide images in the same graphic jpg
The treeview plugin (that you are running) uses XPath Contains Predicate
Selectors, such as li[ul] and [ul:hidden] (x2).
These simply need replacing with li:has(ul), :has(ul:hidden).
Alex-337 wrote:
I've got a page that is a massive treeview, and when loading jQuery
1.2 mingzipped, the
I think I might be missing the point here, but ... if you have one js file
with all your commonly used 'jquery stuff' in it, why do you need to load
anything else, except on special occasions?
My idea of one js file of common code means something like...
start of js file
/*jquery v1.2 PACK */
The code ...
// If a +/- token was provided, we're doing a relative animation
if ( parts[1] )
end = ((parts[1] == - ? -1 : 1) * end) + start;
... is based on the assumption that any value with a leading +/- indicator
is a relative animation.
Unfortunately this
I don't know if it's just a typo on this post, but you're missing a starting
double-quote in the first statement of your click handler function...
$(a.comment_toggle).click(function(){$(div.comment).toggle();
return false;});
should be
You could try something like this...
$('#myTrigger').click(function(){
$('#myDiv').show();
$(document).one('click', function(){ $('#myDiv').hide(); return false; });
return false;
});
james_027-2 wrote:
Hi,
I am trying to make a simple div that will pop which will be close
by
Ticket #1600 already raised.
Pyrolupus wrote:
In testing Chistoph's code, I encountered a separate but possibly
related issue: serialize() and serializeArray() are returning things
I did not expect for multiple selects. For the following form:
form id=mydForm
select id=myd
Your path to jquery-1.2.pack.js is returning a 404.
Alex-337 wrote:
I've got a page that is a massive treeview, and when loading jQuery
1.2 mingzipped, the Treeview plugin seems to stop working. No errors
reported in Firebug, and I can't see deprecated functionality in the
plugin.
tlphipps wrote:
Hopefully this will help someone...
I noticed that Joern's autocomplete plugin uses the .eq() function
which was deprecated and removed in jQuery 1.2. I was able to replace
the .eq() calls with .slice() calls and get things running. Hope this
helps somebody else.
$('tr[customID=123]'); // all TRs with customID set to '123'
$('tr[aID=1][bID=2]'); // all TRs with aID set to '1' AND bID set to '2'
Will B. wrote:
(I posted this yesterday, but it never showed up... But since
today's
update on XPath being removed (and I don't need *another* .js or
You can remove the leading double slash? ...
$(tr[aID='1'][bID='2']).remove(); //v1.2+ only
Will B. wrote:
Doesn't that still make it XPath style?
On Sep 11, 10:54 am, Karl Swedberg [EMAIL PROTECTED] wrote:
In version 1.2, you should be able to do the same thing by removing
the @
The filter(function) works fine for me (jQuery v1.1.4) - return TRUE and the
filter is applied (ie. the element is kept); return FALSE and the element is
removed - so taking the documented example it would return How are you?.
The same effect (using the documented example again) can be achieved
Your load statment should be
$('#thesView').load('database.html', '', oThis.afterLoad);
ie. just oThis.afterLoad as the name of the callback function, instead of
oThis.afterLoad() as you have it.
BUT then when afterLoad gets run its context is div#thesView so this
refers to that element, not
You have superfluous commas in your settings and effect objects, indicating
another member is going to be added but there isn't one.
Try ...
var settings = {
effect: {
duration: 100
}
};
Thasmo wrote:
This gives me
What does histars() do?
Joey T wrote:
Hello All,
This is my first round with jQuery, which I think is absolutely
fantastic, btw.
At any rate, I have encountered a funky bug which seems to be IE /
Internet Explorer specific.
after completing a .getJSON request, whenever a
Yes, I must admit I did not test the actual documented example - I was
heading more at the root of the problem, ie what wasn't working with
Pluthos' script that caused him to try the example in the first place!
Klaus Hartl wrote:
Pluthos wrote:
Hi everyone,
I am new to this group. I
... and this within afterLoad (see
http://www.nabble.com/prob-with-tf4411558s15494.html
http://www.nabble.com/prob-with-tf4411558s15494.html )
Richard D. Worth-2 wrote:
Here's where I think the problem is:
$('#thesView').load('database.html', '', oThis.afterLoad());
should be
1. tabContent2 : holds the collection of DIVs that are immediate children of
#tabcontent
2. filter(':visible') : reduces the collection from (1) to just those DIVs
that are visible (ie probably the one that had previously had show() run on
it) because it is not necessary to hide those that
://dev.jquery.com/ticket/1571
(Demonstration removed!)
Wizzud wrote:
Has anyone come across this before, coz it's been driving me nuts!
IE7 and IE6 are both reporting the cursor position as 2px greater - both X
and Y - than the actual position, say, of a div on the screen.
For example, given an absolutely
a problem - but I'm
not, and it is.
Klaus Hartl wrote:
Wizzud wrote:
Found the solution here -
http://ajaxian.com/archives/javascript-tip-cross-browser-cursor-positioning
http://ajaxian.com/archives/javascript-tip-cross-browser-cursor-positioning
- not that anyone seems to give
You can try ...
1. changing $('p.sc1').css('top','60px'); to $('p.sc1').css({top:60}); and
2. going up to jQuery v1.1.4
Dragondz wrote:
Hi everyone
I made a recent website and add it some very simple javascript
features using Jquery (I am glad to tells you that Jquery had been
chosen
$('[EMAIL PROTECTED]').val(10);
Muhammad Mohsin wrote:
is there any thing like doucment.formname.hiddenvaible.value=10 in
jquery
--
View this message in context:
http://www.nabble.com/hidden-varible-tf4391244s15494.html#a12526177
Sent from the JQuery mailing list archive at
Has anyone come across this before, coz it's been driving me nuts!
IE7 and IE6 are both reporting the cursor position as 2px greater - both X
and Y - than the actual position, say, of a div on the screen.
For example, given an absolutely positioned div at 100(top), 200(left), with
a mousemove
$('#theClickableButton').click(function(){
var _from = $('#theFromSelect')
, _opt = '[EMAIL PROTECTED]' + _from.val() + ']'
;
_from.find(_opt).appendTo('#theToSelect')
});
codecowboy wrote:
I am trying to implement a widget that works as follows. I want to be
able to
Use...
$.extend( parms, {this.id : this.value } ); // extends parms with the
subsequent objects
The merge() method is for arrays, whereas parms and {this.id : this.value}
are both objects, which is why you are getting the error.
bweaverusenet wrote:
Hi. What is the voodoo to build an
I suspect it's because you are using max-width and max-height to compress
your images into the available space. When the width of an oversize image is
computed the values are coming out to 3 or more decimal places, and
depending on how the rounding/truncation works out, the returned width value
1. Your ids should be unique
2. I'm not entirely clear on what it is that you are trying to achieve, but
IF all you want to do is retrieve the values of the appropriate hidden input
field and select field when the relevant Salvez button is clicked then, with
your current HTML, ...
That's fine. It's along the lines of where my (not very comprehensive)
suggestion was leading!
b0bd0gz wrote:
Thanks for the reply Wizzud, I think your probably right about why the
width is out by a pixel. Wrapping the image and paragraph in a div did't
work but it did lead to me
...
var txt = $(this).parents('div:first').find('p').text();
...
or
...
var txt = $(this).parents('div:first').children('p').text();
...
or
...
var txt = $(this).parents('span:first').siblings('p').text();
...
or
...
var txt = $(this).parent().parent().siblings('p').text();
Using new v1.1.4 :has() syntax ...
$('#rank-products table.product-table
tr:has(table):first-child').addClass();
Brandon-38 wrote:
Ugh. LOL. I think I'll just change the DOM, it may be easier that
way. Thanks, Karl.
Brandon
On Aug 24, 10:13 pm, Karl Swedberg [EMAIL
201 - 300 of 330 matches
Mail list logo