> I found JQuery very easy to use and start to add it to my
> page, however, it does not work when browser's javascript is
> disabled, how can we detect if a user turns it off so that we
> can take care of that in another non script way? Thanks.
1) Write your page in such a way that it works O
You can delete properties of an object while you're running a for loop over
that object. No special tricks are required.
If you delete a property that's already been iterated (including the current
iteration), nothing special happens - the iteration continues on its merry
way. If you delete a pro
Ad4m, did you ever find out what was giving you issues?
I just added thickbox to a project, and i too am getting this error.
Doing a search on google led me here and no where else. Just curious
if you or someone else knows how to remedy this issue.
On Sep 5, 7:20 am, ad4m <[EMAIL PROTECTED]>
And indeed, I tested this in FF, worked well... then (surprisingly?)
tested it in IE, and it worked oddly.
this was the code:
var o = {
b:1,
c:2,
d:3
};
delete o.b;
o.e = 4;
o.b = 2;
o.a = 5;
for(i in o)alert(i);
IE would put o.b back into it's place (1st).. so yes, if th
Hi,
I found JQuery very easy to use and start to add it to my page,
however, it does not work when browser's javascript is disabled, how
can we detect if a user turns it off so that we can take care of that
in another non script way? Thanks.
A.C.
I ran into both the select-in-IE6 issue and z-index stacking issue
(described very well here: http://www.aplus.co.yu/lab/z-pos/index.php).
But now I'm running into another issue with IE that it won't seem to
apply the z-index when it's done inside of a hover function. This
isn't a problem in FF,
Hi Benjamin, thank you so much for your response to my issues. I ended up not
using the jqModal plugin at all and using just the latest version of jQuery
(1.2) and adding/modifying your suggestion. Below is the code I implemented
to get it to work the way I wanted it to. (If anyone else would lik
You can just test it in every browser you are interested and see
what's the result, that is always done when trying to overcome browser
incompatibilities, no magic solution for everything when dealing with
browsers.
On 11 oct, 20:18, Pops <[EMAIL PROTECTED]> wrote:
> Thanks Danny.
>
> If associat
Hello!
Got a question that I havn't been able to answer. This is my last resort. :)
So, I have a list of dynamically created divs, with a link next to
them to show or hide text inside of it. I know how to do it when its
only a single box, but I dont know how to do it with a dynamic list.
The wh
That's perfect! Thanks so much
On Oct 11, 12:53 am, George <[EMAIL PROTECTED]> wrote:
> I've not tried this but what if you use .text($codetext) instead of
> append($codetext) ?
> (Or is this not what you want?!)
>
> George
Hi,
I have a table with 500 rows (7 tds each, and with lots of classes).
They are all part of html document.
The menu has 10 categories, and clicking on the category is supposed
to show only those rows where row's className==menu's categoryName.
Now, whether I do that by changing the displa
Ran across this while digging through jQuery plugins...
http://malsup.com/jquery/cycle/begin.html
I just wanted to take a moment to say that is some excellent
documentation! I wish more plugins were documented like this (tutorial
format)!
Oh hey.. and the plugin is quite nice too :).
Wow. Thanks very much for the lightning fast response! I had heard of
superfish, never honestly never played with it (or many other jQuery
plugins that I'd really like to) since work keeps me pretty busy. Will
check out your plugin immediately! Again, thank you!
On Oct 11, 8:25 pm, "Joel Birch" <
Hi Mike,
The Superfish plugin creates menus like this. It also has a few of
important features that the Squirrelcart menu does not:
- It degrades gracefully when JS is not available, in which case it
falls back to a pure CSS dropdown menu ala suckerfish. This means
search-engines can index the pa
Jörn,
>Majid schrieb:
>> Last word, I know this looks like a tall order, and I do not hope
>> someone will make a complete working mod for me, but rather would very
>> much appreciate helpful advise and directions.
>>
>I've added your usecase to my autocomplete todo list. Its definitely
>possibl
I think what you are wanting to do is described here:
http://users.tpg.com.au/j_birch/plugins/superfish/all-horizontal-example/
Basically, you can use the pathClass option to tell Superfish what
class name you are using to indicate the active menu item, and
Superfish will keep the path to that it
http://www.squirrelcart.com/demo2/squirrelcart/
The very top of the page is their navigational menu... with the drop-
downs.. almost like a real "Menu Bar".
Is anybody aware of any sort of jQuery plugin that does this? Thanks!
That is an outstanding explanation, thanks!
Michael Geary wrote:
From: Leandro Vieira Pinho
(function(){
...
})();
I would like to know, what´s the name of that sintax.
From: Josh Nathanson
Is that a closure?
Not exactly. One common use of the "anonymous function called in place" is
to cr
Hi;
In the meantime, how is the zebra widget supposed to work? :-)
On 10/3/07, Christian Bach <[EMAIL PROTECTED]> wrote:
> HI Shawn,
>
> Yeah your right, will add it to the docs as soon as i have the time.
>
> Thanks for the feedback!
>
> /christian
>
> 2007/10/3, sgrover < [EMAIL PROTECTED]>:
If you go to the jQuery home page, under the "Developer Resources"
heading there is a link to "Submit a New Bug Report". You'll need to
register.
Karl Rudd
On 10/11/07, Skilip <[EMAIL PROTECTED]> wrote:
>
> Hi, I found a bug with jQuery version 1.2. It concerns the following
> error generated by
Thanks Danny.
If associated arrays in javascript is using memory map in the RTE,
e.g., C/C++ string list map, then the key is a hash and there is no
order to it. Traversal is unpredictable and FIFO (queues), LIFO
(stacks) does not apply here.
--
HLS
On Oct 11, 6:58 pm, [EMAIL PROTECTED] wrote
I would be very wary of assuming that the for loop goes Last In First
Out. To quote the Mozilla docs (http://developer.mozilla.org/en/docs/
Core_JavaScript_1.5_Reference:Statements:for...in):
A for...in loop iterates over the properties of an object in an
arbitrary order.
It may work correctly in
So I just tried upgrading from 1.1.4 to 1.2 and everything breaks. I
have gotten ajax calls working with the json data type. However
anything with the type of script is seen by rails as a html request
and it work accept the data as well. I am manually setting the
headers, which I have had to do so
The for iteration goes from the older ones to newer ones, so if you
want to keep newer ones (FIFO):
function pruneCache(amt) {
for (var i in cache) {
if (cache.length <= amt) return;//pruned
delete cache[i];
cache.length--;
}
}
that asumes you are keeping the length u
Thx a bill mike :) it works and i understand your explanation
yes i was aware of the var...i had actually included it in my code
just forgot to include it in my sample code...didnt work with var
either :)
Thanx again
On 11 Oct, 17:48, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> > From: brassic
Hello,
I am using jquery.form.js v1.1.2 to submit a form behind the scenes
when a link on that form is clicked taking the user away from the form
and to another page.
The code works as intended in certain browsers and platforms but not
in others. It is also possible for the code to be run on tw
Thanks Jörn, I hope you get to do that eventually, and meanwhile, I
thought the wrapper code may be of use to someone out there. So here
it is:
$(document).ready(function() {
$(".ac_input").attr({ disabled: "disabled" });
$.getScript("http://127.0.0.1/kg/js/jquery.autocomplete.js";,
function()
Thanks Mike and Wizzud.
Question:
What I wanted to use this for was my cache and to "truncate" old
data. I see that using a real array will allow me to use the
inherited .length property to set a new size and it will do
truncation. But since I am using an associated array, the length
property
Thanks for the great explanation Mike.
-- Josh
- Original Message -
From: "Michael Geary" <[EMAIL PROTECTED]>
To:
Sent: Thursday, October 11, 2007 12:21 PM
Subject: [jQuery] Re: What´s the name of this sintax
> From: Leandro Vieira Pinho
> (function(){
> ...
> })();
>
> I would l
> > From: Leandro Vieira Pinho
> > (function(){
> > ...
> > })();
> >
> > I would like to know, what´s the name of that sintax.
> From: Josh Nathanson
> Is that a closure?
Not exactly. One common use of the "anonymous function called in place" is
to create a closure, but this itself isn't a clo
Thanks Mike for the explanation.
Now it´s more clear to me.
Do you know some referente about it?
Regards
On Oct 11, 3:19 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> > From: Leandro Vieira Pinho
>
> > Since jQuery 1.1.4 the code library begins with that:
>
> > (function(){
> > ...
> > })()
I'm working on a game in my (spare) time. It works in firefox, but
not in ie. In my code, I assign a variable:
board = $('#board');
board.hide();
This works in the latest firefox. In IE 6 and 7, I get Error: Object
doesn't support this property or method
Any ideas?
Thanks!
hydra12
Hi
this seems due the IE z-index bug
see
http://verens.com/archives/2005/07/15/ie-z-index-bug/
olivier
jon randahl wrote:
First, let me say thank you to Joel for making the new CSS for
Superfish so easy to configure now! All those comments make such the
difference!
and Second, here's my dilem
I have a fisheye menu with the following code:
//
$('#fisheye').Fisheye(
{
maxWidth: 20,
items: 'a',
itemsText: 'span',
container: '.fisheyeContainter',
itemWidth: 20,
proximity: 20,
}
//
.fisheye{
tex
thank you very much Wizzud!
you saved my day and I finally understand the logic arround the
index :)
1.1
release may have a problem with those, until 1.2, please give the latest
revision a try: http://dev.jquery.com/view/trunk/plugins/validate/
Regards
Jörn
__ NOD32 2586 (20071011) Information __
This message was checked by NOD32 antivirus system.
http://www.eset.com
yes you should check out the Attibute Filters in the docs:
http://docs.jquery.com/Selectors
You can do this:
$("img[src*='thumb']")
which will return all images with "thumb" somewhere in the src
string.
Carter
On Oct 11, 4:00 am, Serge <[EMAIL PROTECTED]> wrote:
> Is it possible to select all
Smashing plugin, very thorough work!
We highly consider using it on the major pages of a large (500 PI/
second) site! It adds both functionality and coolness.
If I could make a few suggestions:
1) Make the text "Image" and "of" configurable. That way we won't have
to edit your plugin if ut's up
Ah! Also good to know! I see what you mean about the anonymous
functions. I reorganized the script with sequential functions, and it
works exactly how I want, thanks!
--
function sequence1() {
$('#box1').animate({opacity: 0.1}, 5000, sequence2);
}
function sequence2() {
$('#
Roman,
The fact that you can call any JavaScript function from within Flash
implies that it is indeed possible. Assuming for the sake of this
example that your links are identified with id attributes:
(flash)==>triggerFromFlash(linkID);
function triggerFromFlash(id) {
$('#' + id).click();
Hello All,
Rey Bango suggested I post this question. I am using the tablesorter
plugin. On the page there is the ability to click on a row that opens
a new page, essentially an edit details page. This page then goes to
an update page to handle the input to the db. Once the update is
complete, I w
On Oct 11, 2007, at 12:05 PM, RichUncleSkeleton wrote:
OK I see it now. But when you post a link to a 'demo' which doesn't
actually have a demo (you have to click another link to get to it),
can be a little confusing...
duly noted. I'm going to revamp the demo page as soon as I get a chance.
Is that a closure?
-- Josh
- Original Message -
From: "Leandro Vieira Pinho" <[EMAIL PROTECTED]>
To: "jQuery (English)"
Sent: Thursday, October 11, 2007 11:04 AM
Subject: [jQuery] What´s the name of this sintax
Since jQuery 1.1.4 the code library begins with that:
(function(){
..
> From: Leandro Vieira Pinho
>
> Since jQuery 1.1.4 the code library begins with that:
>
> (function(){
> ...
> })();
>
> I would like to kwon, what´s the name of that sintax.
>
> I have found some information in Plugins/Authoring in Custom
> Alias sections. But, I would like to read more abo
Since jQuery 1.1.4 the code library begins with that:
(function(){
...
})();
I would like to kwon, what´s the name of that sintax.
I have found some information in Plugins/Authoring in Custom Alias
sections. But, I would like to read more about it. But what´s the name?
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
Every animation can have an 'on completion' callback ...
eg.
$('#box1')
.animate(
{ opacity: 0.1} // what
, 5000 // speed
, function(){ // callback
$('#box2').animate( {left: '200px' }, 2000);
} // end of callback
); // end of animate
Just be careful not
Flash should only be able to steal the event while your cursor is inside the
plugin area.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pixelwizzard
Sent: Thursday, October 11, 2007 10:27 AM
To: jQuery (English)
Subject: [jQuery] Flash is stea
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
>
hi folks,
i have a 3 level nested list for a menu with superfish.
No i want to ask if there is a solution to show the 3rd level as an
active menu-poinit when the 3rd is choosed. Or the 2nd when i am in
the 2nd level.
With acitve i mean, it should be oben from the 1st down to the 3rd
just right a
Hi Guys,
Did you figure this out?
I have a problem with links that were converted using sIFR and then I
need
to use them to do a show/hide using jQuery and it looks like Flash is
stealing my click event, so the click event never gets called by
jquery.
Is there any way to get Flash to trigger th
Ah!
Michael: thanks! Now I know how that works.
Wizzud: thanks! It works perfectly! Here's the code for anyone else
interested:
$('#box1').animate({opacity: 0.1}, 5000);
setTimeout(function() { $('#box2').animate({left: '200px'}, 2000); },
5000 );
I was also wondering if there is a way for
Hello Giovanni,
To be able to send a file via AJAX with jQuery you need a plugin
because jQuery doesn't know how to post a file via AJAX. There is one
that works quite well, you can see the demo for it here:
http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ - I think it's
not compatible with
Are there any known issues or workarounds that affect performance of
the n2menu in IE6?
IE7 and FFox (using a 0 delay) are almost immediately responsive to
mouse movement. IE6 is taking about 4 seconds just to recognize mouse
movement.
OK I see it now. But when you post a link to a 'demo' which doesn't
actually have a demo (you have to click another link to get to it),
can be a little confusing...
--
Scott.
On Oct 10, 7:23 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Oct 10, 2007, at 10:48 AM, RichUncleSkeleton wrote:
>
Hi,
I really hope someone can help. I am using sIFR on my site that
creates flash text to replace my links.
So when I try to add a click event to a link with jQuery it doesn't
work because flash is stealing the event.
Any idea how to get a click on a link to still execute the jQuery
function?
hello all,
I'm new to jQuery, and have the following need:
01. I have some divs with the same class, and inside of each, I have
two , from which one will have a class "bt" and the other no class
(this is done via the user interaction)
02. the issue here is that I need to get the index of which
Hello:
I would like to build a stackable filters/rules interface ( field, operator,
value ) like the one that Thunderbird uses to create message filters.
I.e.
( ) Match all of the following (x) Match any of the following:
[ Drop down list of fields ] [ operator ] [ value ] + -
You can
Dear Joel, Thanks for your answer. I got it working! It rocks!! Now
some css-ing, I'll send you the result when it's done! Thanks!!
On 1 okt, 07:21, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> I replied to your initial duplicate post but maybe you are tracking
> this one instead? Here is my post ag
> From: brassica
>
> var lastNum = 5; //say
> for (i = 49; i <= (49+lastNum); i++)
> {
> $.hotkeys.add(String.fromCharCode(i), function ()
> {levelClicked(i)}); }
>
> function levelClicked(i)
> {
> alert (i);
> }
>
> now it always alerts as whichever value lastNum was assigned to :
> ( irresp
> From: Adrian Lynch
>
> Am I right in thinking that you can't test for equality of
> jQuery objects?
>
> alert($("#saveForm") == $("#saveForm")); // false
> alert($("#saveForm") === $("#saveForm")); // false
> alert($("#saveForm").get(0) == $("#saveForm").get(0)); // true
> alert($("#saveForm"
Alexander Graef schrieb:
Hi,
For the multi select:
one
two
three
four
five
This allows you to pass the selected items via a form post and receive them
as an array.
Same applies for the checkboxes:
Steak:
Pizza:
Chicken:
If your serverside prefers
As a reformed corporate drone, I can tell you sites that greet you
with music are not work safe. Your cube mates are immediately informed
you're surfing and not solving the shareholder's problems. I hate 'em.
(the noisy sites, not the cube mates :-) )
On 10/11/07, Rick Faircloth <[EMAIL PROTECTE
Hi all.
What's wrong with this?
$(function(){
var timing = 5000;
var stripWidth;
var $strip;
$strip = $("#mask p");
stripWidth = $strip.width();
containerWidth = $("#mask").width();
var totalTravel = stripWidth+containerWidth;
function scrollnews(param){
$strip.animate({left: '-='
Hi, I have a page with a input file, and I'm wondering if it is
possible to send the file to server using ajax, without submit.
Thank you
I spent a little time on it last night and, IMO, inelegantly, heres
the beginning of a solution...
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
n2menu - example
function removeExpanded(q){
va
Can someone explain me how I can use JavaScript compactor in Rhino
like in http://jqueryjs.googlecode.com/svn/trunk/jquery/build/build/
On 10 out, 17:59, Estevão Lucas <[EMAIL PROTECTED]> wrote:
> Hi
>
> I would like to know how I can use JavaScript Compressor in Rhino like
> jQuery' snv.
>
> Reg
I realize this is possible. But, like the title of this message
suggests, I don't to put the logic to replace the image for each
event. I will end up with more than 100 events on this page.
If I could have the elements being replaced by ajax, first replaced
with the wait image automatically when
ok, after that speech on DRY. I noticed your code said $('.control')
lol. Call me stupid.
I am going to stick with my solution I posted previously so I can use
it for things that don't have a class of control
But If I were to implement your solution I would do it like this: (if
you had something
I found a better solution that solves my problemo. You see the whole
idea of programming well is doing every thing once. DRY is the
principal that describes this. If I were to do it the way you
suggested Wizzud, it would mean having $(this).replaceWith('');
I used jQuery.fn.extend() to solve this
without 'return false' href executed after alert
On 10/11/07, Sharique <[EMAIL PROTECTED]> wrote:
>
> @ziz
> alert($(this).text()); works, thanks.
> Why return false?
> --
> Sharique
>
>
> On Oct 10, 2:30 pm, zizi <[EMAIL PROTECTED]> wrote:
> > Try this way:
> >
> >$("a").click( function( )
{Jon hangs his head in shame for not thinking this through!}
OMG, I tried setting the parent and the grandparents z-index to bring
it over the lower container without "going over" the nav!
It never occurred to me to do the great-grandparent too!
Thank you, thank you, thank you Joel!
Now back to
Hi all,
i'm tryin to use the tooltip plugin
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
within a multiple select.
My code:
### the select #
First option
Second option
### the jquery code #
$("#myselect option").each(function(i
Working on that atm!
On Oct 11, 3:27 am, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> Hi Jon,
>
> Thanks for your feedback on the commented CSS file! To help solve your
> problem though, with so many factors at work we really need a working
> page that demonstrates the issue you are trying to solve.
I suppose that maybe you could do a .each() over the jQuery object and test
it that way.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adrian Lynch
Sent: Thursday, October 11, 2007 7:15 AM
To: jQuery (English)
Subject: [jQuery] jQuery object e
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
attribute value, only it's part, and want select all elements which has
this substring in their attribute.
Am I right in thinking that you can't test for equality of jQuery
objects?
alert($("#saveForm") == $("#saveForm")); // false
alert($("#saveForm") === $("#saveForm")); // false
alert($("#saveForm").get(0) == $("#saveForm").get(0)); // true
alert($("#saveForm").get(0) === $("#saveForm").get(0)); //
hi guys
i cant seem to get my head round a problem here. I am sure someone can
help.
I have included the hotkeys plugin. It all works fine. One adds a
hotkey by simply calling the function $.hotkeys.add(key, function); so
for example if $.hotkeys.add('1', levelClicked), the function
levelClicked
Hi all,
i'm tryin to use the tooltip plugin
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
within a multiple select.
My code:
### the select #
First option
Second option
### the jquery code #
$("#myselect option").each(function(i
Hi,
When I include the two js file together using
I found that I can't use jQuery.get() function to get a web page. The
jQuery Ajax doesn't work;
If I do not change any js code except delete the line,
all my code works good.
Anybody has ideas?
Thanks.
When i combine JScrollPane and Jquery UI tabs , i have a exception
thrown saying Exception thrown but not caught.
when i see the Problem i found the JQuery versions are different UI
Tabs is using 1.2.1 , but JscrollPane is using 1.1.3.1
(incompatibility) . Does Jscrollpane coming out with the
Hi all,
I use Autocomplete plugin (1.0 Alpha) mostly for form inputs bound to
foreign key columns. For instance I have a user_position table with two
columns: user_id and position_id. On new appointment form I have two
autocomplete text inputs with the following code:
As you can see the
One thing that also helps is to put an alert message just inside the
document.ready call and comment everything else out.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joel Birch
Sent: Wednesday, October 10, 2007 10:29 PM
To: jquery-en@googlegr
Majid,
>I use Autocomplete plugin (1.0 Alpha) mostly for form inputs bound to
>foreign key columns. For instance I have a user_position table with
>two columns: user_id and position_id. On new appointment form I have
>two autocomplete text inputs with the following code:
>
>
> >
>
>As you ca
I've had quite a few clients trying to put music on their
homepage, but none of mine would be served well by having
music. I have a site that's in development that uses a
splash page. Except for a few new announcement titles, it's
only for visual effect... music would work there.
I think the on
Hi, I'm heavily using jquery in a page that loads a lot of things,
and sometimes (apparentily without a sense) firebug shows this error:
cyclic __proto__ value
[Break on this error] eval(function(p,a,c,k,e,r){e=function(c)
{return(c
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(){
// sh
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 h
Jon replied to me offlist with a secret link. I thought I would reply
with a solution here for completion's sake incase it helps anyone
else.
Long story short, IE has a thing about great-great-etc-grandparents
having z-index set. This should fix the issue for you Jon:
#header { z-index: 99; }
G
@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 fo
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 'ch
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 t
> 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 internally - see the source code for $.each().
> and how can you remove an field i
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, "Micha
To stop the link from executing.
-- David Duymelinck
Sharique schreef:
@Juan
$("a").html() is always returning text of first , here "tata"
@ziz
alert($(this).text()); works, thanks.
Why return false?
--
Sharique
On Oct 10, 2:30 pm, zizi <[EMAIL PROTECTED]> wrote:
Try this way:
$("a"
@Juan
$("a").html() is always returning text of first , here "tata"
@ziz
alert($(this).text()); works, thanks.
Why return false?
--
Sharique
On Oct 10, 2:30 pm, zizi <[EMAIL PROTECTED]> wrote:
> Try this way:
>
>$("a").click( function( )
>{
>alert($(this).text());
>
Is this the only way to iterate through an object?
for ( x in myObject) {
}
and how can you remove an field in an object?
For example:
var obj = {
x1: 1123,
x2: 212,
x3: 123131
};
I want to remove obj.x2 the obj object to end up with:
{ x1: 1123, x3: 1
I've not tried this but what if you use .text($codetext) instead of
append($codetext) ?
(Or is this not what you want?!)
George
Hi, I found a bug with jQuery version 1.2. It concerns the following
error generated by Firebug in Firefox when a iframe is present in a
page.
document.defaultView.getComputedStyle(elem, null) has no properties
I solved it by replacing the following code with the code pasted
underneath.
old: (l
99 matches
Mail list logo