Ok, I think the problem is related to using XMLHttpRequest in a cross-
site situation (which I was, since my API is a different domain than
my HTML). I will resolve this using jsonp, or some other method.
Sorry for the trouble. Hope this helps others.
Hammering this home, I also tried to point my form to your test.php
page, but still no change. I do see your response, but it moves the
browser forward to a new page to display it. I also have the exact
same versions of jquery and jquery form plugin. Is there some other
setting somewhere on our
Well I just tried putting all the javascript into the but that
didn't help. It's still the same. It is calling the beforeSubmit
callback, because I see the showOverlay. But then it doesn't call the
success callback, but instead just posts the form normally.
What is your test.php file returning
Weird. Could it be that you are have the $(document).ready call in
the ? I currently don't have it set up this way. But I thought
from looking at other examples that it didn't matter.
On Feb 19, 12:29 pm, Mike Alsup wrote:
> > I am also seeing this same behavior. I'm using FF 3.0.6.
> > I ha
Nevermind my second point in my last post. I see why it was calling
those callbacks immediately. duh. I had parentheses after their
names in the options hash!
Anyways, I do still have the main problem of not submitting via AJAX.
llback, it will oddly enough trigger the "beforeSubmit" and
"success" callbacks of the options immediately upon loading the page.
Here's my code (with the options param variation):
http://pastie.org/393825
-Glenn
a-property. Is this by design or is it a bug?
$(document).bind("hepp", function(e, data) {
alert(data.test + " -- " + (!e.data ? "" : e.data.test));
});
$(function() {
$(document).trigger("hepp", { test: "hopp" });
});
This always alerts "hopp -- ".
Thanks,
Glenn
Sorry, wrong line number, 24, not 28.
*
On Mon, Apr 28, 2008 at 12:42 PM, Glenn Nilsson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> just upgraded the jCarousel plugin to the newly released version
> 0.2.3, and my styling broke. This due to the structural modification
> wher
incorrect. At least on line 28 is the non-packed/minified
version.
This was just a heads up =)
/Glenn
--
http://wailqill.com/
t
http://sorgalla.com/projects/jcarousel/examples/static_simple.html
so it only had 2 items. I got the same error there.
v1.2.1
Thank you,
Glenn
, but I'm determined to
get to the 'penny drops' moment.
Thanks again.
Glenn
Nate Cavanaugh wrote:
> Hi Glenn,
> Closures are a pretty tough concept to fully explain. In this case, I should
> have just said to use an "anonymous function", as it would proba
27;d be grateful.
You mention the phrase "you can use a closure", is this a common term in
Javascript? What does it mean?
Once again, thank you.
Regards,
Glenn
Nate Cavanaugh wrote:
> Hi Glenn,
> Keeping scope is definitely one of the more frustrating aspects of
> Javascript
12 matches
Mail list logo