[jQuery] applying effect to certain div.

2009-10-17 Thread Martijn
Hi, Im trying to get a sliding down div, that pushes another div further down as it slides. I created the following code. However, the 2nd div doesnt appear at all. What is the proper way to say only the div with class "x" should be affected? The basic tutorial doesnt really cover this. http://

[jQuery] Re: GET PARAM FROM URL WITH JQUERY

2009-04-29 Thread Martijn Houtman
On Apr 29, 2009, at 2:45 PM, gozigo_milis gozigo_milis wrote: example : http://www.matrix.com/index.php?p=gallery#page=1 how can I get page=1 (parameter after sign #) window.location.hash

[jQuery] Re: Ajax timeout doesn't call error function?

2009-04-20 Thread Martijn Houtman
r calls an anonymous function which aborts the ajax request (and in my case, calls the request again). This works fine for me. Regards, -- Martijn.

[jQuery] Re: Are pigs flying? because IE8.1 + Firebug is coming

2009-03-31 Thread Martijn Houtman
one. That's why one should always put private data _outside_ of the webroot :-) Regards, -- Martijn.

[jQuery] Re: Are pigs flying? because IE8.1 + Firebug is coming

2009-03-31 Thread Martijn Houtman
On Mar 31, 2009, at 3:47 PM, brian wrote: Isn't that tomorrow? Early preparements, I'd assume :-)

[jQuery] Re: Are pigs flying? because IE8.1 + Firebug is coming

2009-03-31 Thread Martijn Houtman
You nearly fooled me there! :-) On Mar 31, 2009, at 3:24 PM, MorningZ wrote: Friend of mine shot me this link this morning http://www.smashingmagazine.com/2009/03/31/breaking-internet- explorer-81-eagle-eyes-leaked/ -- Ea

[jQuery] Re: jQuery and !important

2009-03-30 Thread Martijn Houtman
to define lots of classes in order to support many elements (i.e. it will be limited to the amount of classes I pre-define. In this case it will not really help. Thanks for the suggestion anyways! Regards, -- Martijn.

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Martijn Houtman
On Mar 30, 2009, at 4:44 PM, Thierry wrote: jQuery("#click_me:button").attr("disabled", "false"); jQuery("#click_me:button").removeAttr("disabled"); Regards, -- Martijn.

[jQuery] Re: How to access variable outside function

2009-03-30 Thread Martijn Houtman
because it locks the browser). It's because the function validate() returns right after the getJSON function, because the latter is asynchronous. But you already figured that out. These sort of things are best done passing callbacks to the getJSON function, as the previous examples show. Regards, -- Martijn.

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread Martijn Houtman
and $.getJSON(url, function(json) { ... }); have the same effect (the first is a named function while the latter is an anonymous function). Note what Joseph says about the curly braces: they need to be removed. Regards, -- Martijn.

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread Martijn Houtman
On Mar 30, 2009, at 3:53 PM, ryan.j wrote: could you assign the data object to a global variable with the callback event? And how would you synchronize that? I'd go for Joseph's suggestion. Regards, -- Martijn.

[jQuery] Re: jQuery and !important

2009-03-27 Thread Martijn Houtman
On Mar 27, 2009, at 1:49 PM, weidc wrote: as far as i know it doesn't work with .css(). Thanks, but after some googling (I was unable to find it before), I found: http://dev.jquery.com/ticket/2066 It shows a solution as well. Regards, -- Martijn.

[jQuery] jQuery and !important

2009-03-27 Thread Martijn Houtman
Hello, I know I should actually avoid using !important, but nonetheless I'd like to set it using jQuery's css(), but it seems to ignore setting this property completely. Anyone knows if this is supposed to work or why it does not? Regards, -- Martijn.

[jQuery] Re: html to text

2009-03-26 Thread Martijn Houtman
the browser from rewriting it? Regards, -- Martijn.

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

2009-03-25 Thread Martijn Houtman
to move the contents of href to rel instead. Well, you could, but I wouldn't; this is not what the rel attribute is meant for. Besides, it would break the anchor when JavaScript is turned off. Regards, -- Martijn.

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

2009-03-25 Thread Martijn Houtman
ttributehrefbug.htm describes the issue and gives a solution. $("a")[0].href will probably work consistently. Regards, -- Martijn.

[jQuery] Re: ajax timeout question

2009-03-25 Thread Martijn Houtman
is finished, and I get to print some nice messages to the user when things take too long. I'd recommend using some sort of AJAX manager for sites with lots of AJAX queries. Regards, -- Martijn.

[jQuery] Re: With IE8 out, how do you test for IE6?

2009-03-23 Thread Martijn Houtman
beta- software, so what can you expect. Multiple IE works fine for me right now. Regards, -- Martijn.

[jQuery] Re: With IE8 out, how do you test for IE6?

2009-03-23 Thread Martijn Houtman
ce it renders it more like IE6. P.S.: My company no longer supports IE6, unless the customer is OK with paying 30% extra development time. It's the easiest solution for us ;-) Regards, -- Martijn.

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Martijn Houtman
ng seems unsupported. Try either "outline- style: none" or "0px" as width. Regards, -- Martijn.

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Martijn Houtman
On Mar 20, 2009, at 4:02 PM, Adam Drew wrote: Thanks For your input Martijn, You're welcome. I just now remember when I got this error. It was when I was (accidentally) trying to set the CSS property "backgroundColor" to "none", rather than "transparent&qu

[jQuery] Re: how to load("text with the + sign in it")

2009-03-20 Thread Martijn Houtman
e do note that this escapes _all_ HTML code, so it will not be interpreted as HTML (if it contains any). Regards, -- Martijn.

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Martijn Houtman
value; // BREAKS HERE - return elem[ name ]; }, Ah, this seems like an invalid or non-existent CSS property. What CSS options are you passing? Regards, -- Martijn.

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-03-20 Thread Martijn Houtman
On Mar 20, 2009, at 3:07 PM, Adam wrote: Message: Invalid argument. Line: 12 Char: 12949 Code: 0 URI: http://domain/shared/jquery/jquery-1.3.2.min.js Half of the time I get this error, it is because I have one comma too much in an array, such as: var foo { foo: "bar", bar

[jQuery] Re: namespaces XML parsing

2009-03-18 Thread Martijn Houtman
ne. Please note that I have not tried this, it's based on the things I have read about it. Regards, -- Martijn.

[jQuery] Re: embedded elements and document.ready

2009-03-18 Thread Martijn Houtman
I don't think there are any other events generated from the embed/object you can listen to. Regards, -- Martijn.

[jQuery] Re: Qty * price

2009-03-16 Thread Martijn Houtman
_table > tr.object").each(function() { price += parseFloat(this.find("div.object_price").html()) * parseInt (this.find("div.object_quantity").html()); }); $("#total_price").html(price); You get the general idea: use structured HTML, which makes it easy to traverse/parse it. Regards, -- Martijn.

[jQuery] Re: Altering external links

2009-03-09 Thread Martijn Houtman
On Mar 9, 3:48 pm, Ed Lerner wrote: > How would I modify the following to only target anchors with an href > beginning with "http"? $("a[href^='http']").attr("target", "_blank"); or something.

[jQuery] Re: How to remove li inside UL

2009-03-09 Thread Martijn Houtman
On Mar 9, 11:53 am, niraj wrote: > var li = $('.items'); > li[0].remove(); $(".items:first").remove();

[jQuery] Re: Problems with

2009-03-06 Thread Martijn Houtman
On Mar 6, 2:24 pm, Renato Bezerra wrote: > $('#button').click(funtion(){ >         $('#fileName').val(''); > > }); > > In the Firefox it works, but in the IE7 don't works. I believe this is a security issue, where the browser does not allow you to set the value for a file input, because some mal

[jQuery] Re: IE7 removes whitespace from HTML

2009-03-06 Thread Martijn Houtman
really need a fix for this. Luckily, IE7 does not remove whitespace if you wrap it with a element, so: alert($("foo\nbar").html()); actually produces the correct behavior. Thanks to Yereth for the hint :-) -- Martijn.

[jQuery] Re: An animated gif in the middle

2009-03-06 Thread Martijn Houtman
a to create an overlay. Works fine in all browsers except IE6 (IE6 does not stretch elements). -- Martijn.