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://
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
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.
one. That's why one should always put
private data _outside_ of the webroot :-)
Regards,
--
Martijn.
On Mar 31, 2009, at 3:47 PM, brian wrote:
Isn't that tomorrow?
Early preparements, I'd assume :-)
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
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.
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.
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.
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.
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.
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.
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.
the browser from rewriting it?
Regards,
--
Martijn.
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.
ttributehrefbug.htm describes
the issue and gives a solution.
$("a")[0].href will probably work consistently.
Regards,
--
Martijn.
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.
beta-
software, so what can you expect. Multiple IE works fine for me right
now.
Regards,
--
Martijn.
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.
ng seems unsupported. Try either "outline-
style: none" or "0px" as width.
Regards,
--
Martijn.
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
e do note that this escapes
_all_ HTML code, so it will not be interpreted as HTML (if it
contains any).
Regards,
--
Martijn.
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.
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
ne.
Please note that I have not tried this, it's based on the things I
have read about it.
Regards,
--
Martijn.
I don't think there are any other events generated from
the embed/object you can listen to.
Regards,
--
Martijn.
_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.
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.
On Mar 9, 11:53 am, niraj wrote:
> var li = $('.items');
> li[0].remove();
$(".items:first").remove();
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
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.
a to create an overlay. Works fine in all browsers
except IE6 (IE6 does not stretch elements).
--
Martijn.
32 matches
Mail list logo