齐永恒 schrieb:
> Hi
> in jQuery bug list, i find in IE, ajaxStart return the error NULL,
> please tell me the bug was closed?
> and i use 1.0.3, the ajaxStart is not Work.
Bug reports are closed as soon as they are fixed. It takes a while to
get the change into a new release. You have to check out ei
Hi
in jQuery bug list, i find in IE, ajaxStart return the error NULL, please
tell me the bug was closed?
and i use 1.0.3, the ajaxStart is not Work.
yours 齐永恒
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Could you show us the code that's causing your problems (a demo link would
do nicely)? Then we could get a better idea of what's going on.
On 12/12/06, dmoshal <[EMAIL PROTECTED]> wrote:
That's what I tried initially - though for some reason didn't seem to
work!
Out of interest - what techni
That's what I tried initially - though for some reason didn't seem to work!
Out of interest - what technique are folks using to create the dom
elements?
raw HTML?
domBuilder?
Dave
Klaus Hartl wrote:
>
> dmoshal schrieb:
>> Karl, using object literals seems to work:
>>
>> var a =
>> {
>>
dmoshal schrieb:
> Karl, using object literals seems to work:
>
> var a =
> {
> foo: function()
> {
> }
> }
>
> function bar (a)
> {
> $(elem).click (a.foo)
> }
>
> bar (a)
>
>
> Dave
And that of course is exactly the same as this:
function foo() {
}
function bar(a) {
> I had to do something similar today, and I did something like
>
> function myfunction(f){
> $(element).click(function(){eval(f+"();");});
> }
> that was off the cuff, but that should work.
That would be the ticket if f is a string containing the name of a function.
But why not just pass a
If you don't mind my asking, what exactly are you trying to do? You
shouldn't need all this hackery just to pass function references around.
On 12/11/06, dmoshal <[EMAIL PROTECTED]> wrote:
Excellent, didn't think of that one
thx
Dave
bmsterling wrote:
>
> I had to do something similar tod
Excellent, didn't think of that one
thx
Dave
bmsterling wrote:
>
> I had to do something similar today, and I did something like
>
> function myfunction(f){
> $(element).click(function(){eval(f+"();");});
> }
> that was off the cuff, but that should work.
>
--
View this message in c
I had to do something similar today, and I did something like
function myfunction(f){
$(element).click(function(){eval(f+"();");});
}
that was off the cuff, but that should work.
--
View this message in context:
http://www.nabble.com/passing-functions-tf2805241.html#a7827322
Sent from the
On 12/11/06, dmoshal <[EMAIL PROTECTED]> wrote:
function bar(f)
{
$(elem).click (f)
}
bar (new foo())
You're passing an object into bar, not a function
--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery ma
I assume foo is a function? Remember that fn != foo() != new foo().
Instead of
bar (new foo())
try
bar (foo)
Blair
On 12/12/06, dmoshal <[EMAIL PROTECTED]> wrote:
thanks for the prompt responses.
the problem in more detail:
function bar(f)
{
$(elem).click (f)
}
bar (new foo())
result
Karl, using object literals seems to work:
var a =
{
foo: function()
{
}
}
function bar (a)
{
$(elem).click (a.foo)
}
bar (a)
Dave
Karl Rudd wrote:
>
> That should work. You'll need to show us code that is a little more
> specific.
>
> Karl Rudd
>
> On 12/12/06, dmo
thanks for the prompt responses.
the problem in more detail:
function bar(f)
{
$(elem).click (f)
}
bar (new foo())
results in this error in Firebug:
-
c[j].apply is not a function
handle(click clientX=0, clientY=0)
[Break on this error] if ( c[j].apply( this, args ) === fal
That should work. You'll need to show us code that is a little more specific.
Karl Rudd
On 12/12/06, dmoshal <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Firstly - wow, what an amazing piece of work - Kudos!
> I've been more productive with jQuery in a day than I've been with YUI, and
> GWT in weeks.
>
>
On 12/11/06, dmoshal <[EMAIL PROTECTED]> wrote:
given: function foo(){}
I want to assign it to the element's onclick handler:
$(elem).click (foo)
which doesn't seem to work?
Well, that *should* work. Are you sure that there aren't any scope issues at
play here? What kind of error messages
Hi,
Firstly - wow, what an amazing piece of work - Kudos!
I've been more productive with jQuery in a day than I've been with YUI, and
GWT in weeks.
Question:
how does one pass a function into jQuery, ie
given: function foo(){}
I want to assign it to the element's onclick handler:
$(elem).clic
16 matches
Mail list logo