Try this:
.toggle(
function() {
myFunction(this, parameters...);
}
)
And you should define myFunction somewhere else.
On 1 сент, 14:28, Andy Matthews [EMAIL PROTECTED] wrote:
Is there a way to pass arguments from one anonymous function, (in
either Toggle, or Hover) to the second? Ideally I'd
ok. I modified tr id=3 = tr id=3 class=xxx
it's ok?
but using .slice() is possible?
On Aug 30, 5:41 pm, Glen Lipka [EMAIL PROTECTED] wrote:
Seems they are all children of their individual TR tag right?
What is the event you are listening for?
If its an ajax table you will need to bind the
Here is a example JSON:
var json = {
fields:
[
{prompt1: Login Name},
{prompt2: Real Name},
{prompt3: Location},
{prompt4: Password},
{prompt5: Security Group},
{prompt6: File Area}
]
};
That's not valid JSON. You need double
On Aug 31, 6:38 pm, [EMAIL PROTECTED] wrote:
as you suggested and while it does run the alert message, it
still fails out on the document.getElementByID in the destination
page with the same error: TypeError: document.getElementById(blah1)
has no properties
Would you be able to paste in
Hi Jorn,
this code works perfectly but I can manage the ajax response, a simple
json d,ata like in your example, firebug show me the response but I
can't manage why? My code is like your code ... but mine don't work.
Any suggest will be appreciated.
I've found the problem, I use the latest
Hi, I don't know how to solve this problem then I ask you, my
gurus :-)
I created 2 divs, one with the content, and one with a mask to put
over the content to hide the content I don't want to see on the load
of the page (with z-index greater then the first one) .
You can see an example here:
Andy Matthews wrote:
Is there a way to pass arguments from one anonymous function, (in
either Toggle, or Hover) to the second? Ideally I'd like to be able to
pass in whatever variables I choose, but I'd settle for being able to
pass in $(this), the item that triggered the event.
Here's the
Well, in the interest of full disclosure, for those that don't know,
Olmo is part of the MooTools development team.
Now, back to the topic. If there's nothing to glean and there's no
benefit in sending list members to what ended up as a very unproductive
discussion, why would it be the
Hi,
I am altering the top property of a floating label in a webpage. The top
adjustement is fired at page scroll, so that the label would always stay in
its place.
Now I would like to animate the label between its oldPosition and
newPosition. So I use animate() to set the top property, but the
Hi,
i'm using the fantastic jCarousel script on my page.
I copied the full code for one carousel twice, changing
That gives me :
var mycarousel_itemList = [ my vars];
function mycarousel_initCallback(carousel)
{
Klaus...
A few questions.
1) I'm assuming from your reply that there's no way to do this with
plain ole hover/toggle then?
2) What is a closure?
3) Is there any performance hit when doing .each (then toggle) versus
just doing .toggle?
4) Can you explain this line please?
var $this =
Hang on...now that I look at it, I think I understand #4. Is this
line:
var $this = $(this), size = $this.attr('href'), toggle = $('.' +
size);
the same as these lines:
var $this = $(this)
var size = $this.attr('href')
var toggle = $('.' + size);
?
On Sep 1, 9:41 am, Andy Matthews [EMAIL
Hi,
Another way I think I have it working is if I include the idrag.js,
idrop.js and iutil.js files individually, instead of the packed
interface.js. I have not fully tested if it works but it appears to.
I only need the drag and drop features of interface so far so I am not
sure if I will have
Can you please post the code part where you experiencing the problems
you described? Are you talking about the Tipo, Marca and Modelo drop-
downs?
On Aug 31, 9:05 pm, vitormv [EMAIL PROTECTED] wrote:
Hello,
ive been trying to set up some effects with jquery, but unfortunately
it only woks
On Aug 31, 5:26 pm, Michael Geary [EMAIL PROTECTED] wrote:
Mark Gibson wrote a lightweight jQuery plugin with $.toJSON() and
$.parseJSON():
http://jollytoad.googlepages.com/json.js
Actually, Douglas JSON Crockford wrote the original code, so it's been
well tested and proven:
Hi,
http://docs.jquery.com is not accessible. I am in India.
It's like the lifeline is down :(
g
--
Gurpreet Singh
hi ,
i am new to jquery and this group. i am learning to use jquery as i am
finding it very cool and easy.
i have question how can i show the loading indicator with load
function
i am using this simple code
$(#field).load(test.php)
div id=field/div
Thanks
Hello Friends,
i am new to jquery and this group as this is my first post and just
started to work with jquery.
My question is how can we use and loading indicator while we are
extracting some data from other file with load function. The code i am
using is as follow :-
script
Hi,
I see the fix - you are using the latest version of jquery (1.1.4). I was using
1.1.3.1 . When I started using the latest version your code suggestions
started working! I appreciate the help with loader code too, that worked
great! I tested on FF (pc/mac), ie
Thanks again for all
Hey,
this works fine:
# html
div id=hover-demo2 style=background-color: white;
be nice and don't fade the text!!!
/div
# javascript
$('#hover-demo2').hover(function() {
$(this).css({background: red, color: black});
}, function() {
$(this).css({background: white, color: black});
});
But
What i would do is add a class with addClass() to the div that has the
background-image of the animated loading gif and then on the load() function
, set the callback function to remove that so that when it is dome loading
it will remove the image.
[EMAIL PROTECTED] wrote:
Hello Friends,
On 9/1/07, Andy Matthews [EMAIL PROTECTED] wrote:
Hang on...now that I look at it, I think I understand #4. Is this
line:
var $this = $(this), size = $this.attr('href'), toggle = $('.' +
size);
the same as these lines:
var $this = $(this)
var size = $this.attr('href')
var toggle =
Thanks for the confirm Richard...and I assume that all 3 of those
would be var'd because they're on the same line?
On Sep 1, 10:32 am, Richard D. Worth [EMAIL PROTECTED] wrote:
On 9/1/07, Andy Matthews [EMAIL PROTECTED] wrote:
Hang on...now that I look at it, I think I understand #4. Is
Is there a way to pass arguments from one anonymous function, (in
either Toggle, or Hover) to the second?
Closures are your friend:
$('a.display').each(function() {
var $this = $(this), size = $this.attr('href'), toggle = $('.' +
size);
$this.toggle(function() {
Beautiful Mike...that's exactly what I was wanting to know. Thanks a
lot!
On Sep 1, 11:20 am, Michael Geary [EMAIL PROTECTED] wrote:
Is there a way to pass arguments from one anonymous function, (in
either Toggle, or Hover) to the second?
Closures are your friend:
Thanks for this solution John, it saved me all the trouble figuring it
out by myself, worked like a charm.
Did anyone try to use the new Livequery plugin to accomplish
reataching the ImageBox event listeners? That would be even better
(though removing the forementioned div's is still a pain)
Kevin,
Thats interesting. I just switched it to 1.1.3 and I now see what you
were talking about. Oh gosh, you weren't making things up. :-)
I have to keep this mind for future stuff when we begin to embed
current html with native DOM reference statements.
--
HLS
On Sep 1, 10:44 am, [EMAIL
On Aug 30, 1:31 am, Renaud [EMAIL PROTECTED] wrote:
I'm not sure how to trace that problem since it's happening under IE 6
and 7, but here is what is happening to me since I switched to 1.1.4:
The handler registered for the $(document).ready() event is triggered
only after all the embedded
henry wrote:
Hi,
Do I just do a search and replace? Can you maybe share your modified
interface.js that's compatible with the latest jQuery with us?
Thanks.
Henry
Yes, I did a simple search and replace.
I can't access the files right now. But in my case that were only two or
three files
This is one of the most significant institution in Serbia. They use tabs and
thickbox
Dragan,
I have to tell you that when I first looked at the url, I could swear
this was a spam message. :)
Thanks for the site submission. Could you provide some details about the
site?
Rey...
Dragan Krstic wrote:
This is one of the most significant institution in Serbia. They use tabs
2007/9/1, Rey Bango [EMAIL PROTECTED]:
Dragan,
I have to tell you that when I first looked at the url, I could swear
this was a spam message. :)
From me? No way.
Any way, it is museum dedicated to preserve memories to former Yugoslavia.
It is biggest museum in Serbia (by square meters of
Someone should tell Muzej Istorije Jugoslavije that
mujez.[com|org|everything] is available...
From: Rey Bango
I have to tell you that when I first looked at the url, I
could swear this was a spam message. :)
Thanks for the site submission. Could you provide some
details about the
This is done very nicely, the UI is cool and shows what you can do
with jQuery.
...althought I don't see myself using it due to the non-semantic
nature of the code it produces ;-)
Eric
On Aug 31, 5:39 am, Armand Datema [EMAIL PROTECTED] wrote:
Just ran into this one, nice idea but whats
Dallas:
IE doesn't allow elements created in one document to be appended to
another document. Firefox 2 allows it, but apparently Firefox 3 will
not.
There's an open ticket for this, hopefully it gets fixed soon:
http://dev.jquery.com/ticket/1419
On Aug 31, 4:16 pm, Dallas [EMAIL PROTECTED]
Hello,
I'm trying to delay the appearance of $.ajaxStart() using setTimeout()
but I've been unable to get it to work.
I've used it once before in something else and I'm basically just
trying to copy that for $.ajaxStart().
http://www.pastebin.ca/678318
When I run that code I get t has no
From: barophobia
I'm trying to delay the appearance of $.ajaxStart() using
setTimeout() but I've been unable to get it to work.
I've used it once before in something else and I'm basically
just trying to copy that for $.ajaxStart().
http://www.pastebin.ca/678318
When I run that
You used to have to manually tell jQuery to evaluate javascript like
that using evalScripts, but this is done by default now in 1.1.4.
Search for evalScripts on this page:
http://jquery.com/blog/2007/08/24/jquery-114-faster-more-tests-ready-for-12/
--Erik
On 9/1/07, Pops [EMAIL PROTECTED]
no luck heh? :(
On 9/1/07, emi polak [EMAIL PROTECTED] wrote:
Hi,
I am altering the top property of a floating label in a webpage. The
top adjustement is fired at page scroll, so that the label would always
stay in its place.
Now I would like to animate the label between its oldPosition and
Approaching the problem a different way, how about only firing the
animation if scrolling has paused for a moment? Maybe something like
(untested):
$(document).ready(function() {
var scrollTimeoutID;
var topOffset = 100;
$(#label).css('top', topOffset + px);
$(window).bind('scroll',
In fact, if you find yourself wanting to do a lot of stuff when scrolling
has stopped, you could add an event for it (again, untested):
(function($) {
var scrollTimeoutID;
$(window).bind('scroll', function() {
clearTimeout(scrollTimeoutID);
scrollTimeoutID =
Yes, I was aware of this. There is a recent thread where we discovered
this as well in regards to injecting stylesheet node elements.
What I don't quite understand why it was a problem because it was
indeed evaluated, but it failed to see the id in dom. It sounds it
more about where jQuery
I'll add a signature from now on it seems.
I don't need to waste my time in trying to lecture you. Should have
known better.
-Olmo M.
http://mootools.net/developers
On Sep 1, 8:35 am, Rey Bango [EMAIL PROTECTED] wrote:
Well, in the interest of full disclosure, for those that don't know,
Olmo
Is there a way to do this? I thought just placing the response in a
div with html() would work, but it ignored the br /'s.
44 matches
Mail list logo