One thing to bear in mind when using Ext with the jQuery engine is that you
don't have to use Ext all the time!
I have built a backend application using Ext's brilliant border layouts,
message boxes, dialogs, trees, etc, but for all form processing (and a lot
of the ajax calls, as well) I simply
I have a problem with IE and the fix method of jquery.event, whereby it (IE)
sometimes objects to the variable b (=document.body) not being an object.
This usually happens on a page refresh, but cannot reliably be re-produced.
The solution I have put in place is a very small modification to the
New ticket added.
Brandon Aaron wrote:
Would you mind filing a new ticket so that this doesn't get lost in
the archives? http://dev.jquery.com/newticket/
--
Brandon Aaron
--
View this message in context:
Actually I thought I grasped the problem fairly well.
The bit I might have misunderstood was the relative importance of the
Failing that ... part, as I thought you wanted to solve the problem rather
than sidestep it. Ah well ...
--
View this message in context:
The description of the usage of the scroll option is that it controls whether
or not the scroll offsets of the parent elements should be included in the
calculation of an element's offset.
With reference to the
http://dev.jquery.com/~brandon/plugins/dimensions/test/offset.html visual
test
You're right about more demos. On your current demo, click one checkbox and
both get set/unset. But even more interesting is that in Firefox, if you
click to the left or right of the checkboxes, they get triggered - even if
you're right across the other side of the page! Seems to be triggering
the class of the anchor is actually .dp-choose-date, not .date-picker as the
example page states. Check his css and you'll find an entry for
a.dp-choose-date{}.
Chris W. Parker wrote:
Hello,
Why doesn't $('#date').datePicker(); cause the calendar icon to appear
anymore? Only thing I'm
PPS The link mentioned below has been removed due to total lack of interest.
Wizzud wrote:
..
PS. I have put up a modified version of the Brandon's visual test that
uses the YUI position calculator, just so that interested parties (if
there are any) can see the difference between YUI
Brandon, just an update in case you are interested.
I've made a few changes to the YUI visual test page to try and find out
where YUI was going wrong in Firefox.
My test page can now switch between dimensions and the YUI adapter, but more
interestingly it can disable the borders on the target
parents(expr) is equivalent to parents().filter(expr)
SamCKayak wrote:
I could do a test, but discussion seemed like it might turn up
something else...
.parents(expr) supports an expression to filter parent elements,
e.g.,
.parents('.getme') // returns all parents with class getme
preventing the user clicking more checkboxes until the
previous click has done all the processing it needs to.
This may or may not help!
John W wrote:
Weird I posted a reply about this earlier this morning and it never
went through. Anyway, Wizzud thanks for the tip this worked. One other
Use $.getJSON() and get the php program to return JSON-formatted data.
eg
Javascript...
var _mySelects = false;
$.getJSON('options.php', {}, function(json){ _mySelects = json.ok ?
json.data : false; });
...
if(_mySelects _mySelects.select1){
var _s1 = $('select name='select1'/select');
The problem is caused by the browser detection method being used to determine
IE6. The test used is:
ie6=$.browser.msie typeof XMLHttpRequest == 'function'
which worked up to 1.1.2 where there was code along the lines of
if ( !window.XMLHttpRequest )
XMLHttpRequest = function(){...}
to be different and I'm not
sure
what to change.
On 7/27/07 7:30 AM, Wizzud [EMAIL PROTECTED] wrote:
The problem is caused by the browser detection method being used to
determine
IE6. The test used is:
ie6=$.browser.msie typeof XMLHttpRequest == 'function'
which worked up
Neat examples.
If I might make a couple of suggestions...?
Your page subtitle includes the word 'tutorial'. Personally, if I see that
word I expect to be guided through the process of achieving each of the
results in the examples. I would therefore suggest that, instead of having
to go find the
1. the load()
Klaus is trying to make the point that if you do not want any data loaded
why are you running a load()?
You are running the load() into an element that you have clearly stated does
not exist, so in my opinion it is actually a bug in jQuery that is even
allowing the ajax call to be
Your code below is incomplete, but also wrong. The way you have it set out,
after a POST the page begins with javascript, then the DOCTYPE!
Basically, you should have this sort of structure...
?php
//define your php functions, eg
function GetSQLValueString(...){ ... }
//set up some variables,
$('table') ... gets all tables
$('table').eq(1) ... gets the second table
$('#formelement').parent().parent().parent() ... gets the 'great-grandad' of
#formelement
or, to look back up the DOM for a table ...
var _find = $('#formelement');
while(!_find.is('table')){ _find = _find.parent(); }
For some reason (and don't ask me why) IE does not like the checked attribute
being set in the html.
Add
$('#Menu input:radio').get(0).checked = true;
to your ready function, and set your radios to
input type=radio name=selection value=on /
input type=radio name=selection value=off /
(oh,
Klaus Hartl wrote:
$('#formelement').parents('table:eq(0)');
Even simpler.
NOTE: In documentation of parents(), first example is misleading/incorrect
in that shows the returned items in reverse order.
--
View this message in context:
There is a possible problem using siblings() - if Basics:Location is the
current selection, and you then browse through the other accordion panels
then presumably while you are opening/closing panels the RH panel does not
change, ie still showing Locations; if you decide to click on Belly in the
link.
With three links (currently) it's manageable... with 50 it would be a
needlessly verbose and bloated beast.
2) that there's no need to introduce additional class names or other hooks
for information that's already accessible to jQuery (like :visible)
Brian.
On 8/3/07, Wizzud [EMAIL
Brandon,
There is actually a slight problem in this particular scenario, because
$(document).height() is returning 0.
Ext's jquery adaptor IS maxing out window and document, but because document
is returning 0, window height is being used as the greater.
The only property I can find (using
The problem you have is due to the slideDown. Because that takes time
(whereas the hide() is instantaneous), clicking Hide TOC while the toc is
still sliding won't stop the actions that take place (within jQuery) during
and at the end of the slide.
One possible alternative (of many) is ...
Surround inline script with commented out ![CDATA[ .. ]], eg:
script type='text/javascript'//![CDATA[
jQuery(function($){
.
$(this).hide().parent()
.prepend( ajax-loader.gif );
.
});
//]]/script
Kyle-47 wrote:
Code should read:
$(this).hide().parent().prepend(
What does some.html look like?
You imply that it can be run in its own right, ie that it is a full
document. IF you are trying to inject a full document into the DOM under the
'somediv' DIV then it would not be surprising if some functionality failed.
Michael Lo wrote:
Dear all:
can some
Correct your HTML (remove the /ul id=nav for a start).
Set your script to (for example) ...
script type='text/javascript'
$(document).ready(function() {
$('#nav li ul').hide();
$('#nav a.folditem').click(function() {
var _me = $(this);
Can you supply a bit more information?
Just saying I can't get it to work leaves the field of possibilities wide
open!
[EMAIL PROTECTED] wrote:
Hi There, Ive downloaded the source by can't get it to work, i am
using jquery-1.1.3.1.pack.js i couldn't find the jquery min js file
you used.
First off, you need to read this
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax
tutorial by Jorn Zaefferer, particularly the bit the starts 'A very common
problem encountered...'
When you just pass a selector string as the target, the Form plugin literally
uses that selector (with no additional context) to assign the returned
value, eg.
214$(options.target).attr(innerHTML,
data).evalScripts().each(oldSuccess, [data, status]);
target will take a selector
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
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();
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
$('#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
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
://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
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
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 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.
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 */
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
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
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,
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)
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')
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
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
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
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
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
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
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
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
#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..
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,
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
1 - 100 of 330 matches
Mail list logo