Thanks for your help. Now it works fine.
I have also added your idea for checking if it is the same string and I also
make the AJAX request only if there are more than 2 chars.
The content requested by AJAX prints a combo box and I want to load a
certain URL when an element from that combo bo
I did some testing and didn't experience your problems... give us your
code or put a demo online
Another thing... you should also check if the input value has changed
since the last keyup event, so you don't send the same data if for
example the ENTER or SHIFT keys are pressed you can st
I fixed this using the setting in the ajax request
cache: false
On Oct 13, 3:09 pm, rasensio wrote:
> XP IE6 virtual PC for test, latest version of jquery
>
> the browser hangs after an ajax request.
>
> $.get("/myurl", {random: $.random()}, mycallback);
>
> I read that IE6 hangs for some c
I think that you could probably do something like this:
//first get
$.ajax({
type: "GET",
url: "some.php",
data: "name=John&location=Boston",
success: function(){
//another get on success
$.ajax({
type: "GET",
url: "somepage2.php",
data:"what=whatever"
jQuery (and most Javascript AJAX libraries) automatically sends the
request header:
X-Requested-With: XMLHttpRequest
You don't have to do anything for that.
If you use something like Firebug for Firefox you can see these
headers being sent and returned.
On the PHP side, you can use the follow cod
I understand that ive to use - X-Requested-With then I did search a
bit about that and I found this code,
$.ajaxSetup({
headers: {"X-Requested-With":"Ajax"}
});
but I still don't understand how should I send the parameters to the
same file and get them in the server side (PHP)
I hot t
Perfect!
On Apr 15, 1:57 pm, Eric Garside wrote:
> $.ajax({
> type: "GET",
> dataType: "json",
> url: tUrl,
> success: function(data){ GotNewData(data, 'custom string'); },
> error: GetDataError,
> complete: AjaxRequestComplete
> });
>
> On Apr
$.ajax({
type: "GET",
dataType: "json",
url: tUrl,
success: function(data){ GotNewData(data, 'custom string'); },
error: GetDataError,
complete: AjaxRequestComplete
});
On Apr 15, 4:53 pm, Nic Hubbard wrote:
> I am interested in this as well.
I am interested in this as well. How could I send a string to the
success GotNewData function?
On Feb 26, 9:50 am, P Burrows wrote:
> Is anyone aware of a way to pass some additional context information to the
> "success" function of an ajax request?
> For instance, here is my code which works
You can read more about the "Access to restricted URI denied" code:
"1012" error here:
http://jquery-howto.blogspot.com/2008/12/access-to-restricted-uri-denied-code.html
On Sat, Jan 17, 2009 at 5:31 AM, jquertil wrote:
>
> except its not a bug - its a feature request...
>
> On Jan 16, 2:39 pm,
Nevermind... I can do it with lambdas.
--
Patrick Burrows
http://www.CleverHumans.com
On Thu, Feb 26, 2009 at 11:50 AM, P Burrows wrote:
> Is anyone aware of a way to pass some additional context information to the
> "success" function of an ajax request?
> For instance, here is my code which
except its not a bug - its a feature request...
On Jan 16, 2:39 pm, donb wrote:
> By the way, you are 'someone' so you can file a bug report. ;-) <-
> note smily
>
> On Jan 16, 5:15 pm, jquertil wrote:
>
>
>
> > I downgraded both FF 2 and FB 1.2 so now things work again - but this
> > sucks!
By the way, you are 'someone' so you can file a bug report. ;-) <-
note smily
On Jan 16, 5:15 pm, jquertil wrote:
> I downgraded both FF 2 and FB 1.2 so now things work again - but this
> sucks! Someone tell those nice folks at Mozilla they should at least
> allow a user setting to not get so
I ran into this error today, but it was because my URL (filename) had
spaces in it. For what that's worth.
On Jan 16, 5:15 pm, jquertil wrote:
> I downgraded both FF 2 and FB 1.2 so now things work again - but this
> sucks! Someone tell those nice folks at Mozilla they should at least
> allow a
I downgraded both FF 2 and FB 1.2 so now things work again - but this
sucks! Someone tell those nice folks at Mozilla they should at least
allow a user setting to not get so uptight about script loading
security - I was very surprised to see no ability to adjust that
manually.
I should add that I'm calling just by file name "myJsonSource.js" -
everything is very local, so I'm not even using any sort of "domain"
at all, and feel that this should be just fine for running stuff
locally.
Looked at settings to see if there is anything I can turn off...
Well ok, I try to explain what I want to do.
At first I forgot to tell, that I have setup all ajax requests in
synchronous mode ( $.ajaxSetup({async: false}) ) so after call my
get_results() function browser should wait for response.
Inside while loop is not only function call, but additionally
di
Hi vorp, your English is fine, don't worry about that. :-)
I'm trying to understand the purpose of your code, though. Why do you want
to fire off 50 Ajax requests all at once like that?
Also, these Ajax requests are *asynchronous*. That is, $.ajax() returns
immediately without waiting for the re
On Oct 20, 11:42 pm, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > I was reading the jQuery help docs (in the Ajax Events section), and I
> > came across this statement:
>
> > "you can never have both an error and a success callback with a
> > request"
>
> > Does anyone know why you can't do this? I
> I was reading the jQuery help docs (in the Ajax Events section), and I
> came across this statement:
>
> "you can never have both an error and a success callback with a
> request"
>
> Does anyone know why you can't do this? I can think of a number of
> situations where you would need to cater fo
I have some new information,
if I change the ajax request's type from POST to GET,
it works perfectly ...
When I use POST type, in firebug's console the url is red and next to it I
can see the number 411,
by looking on the net, the error must be related to Content-Length ...
Anyway I am fine wi
the second parameter is "success", still need to eval(data) to create
those vars
On Sep 23, 11:23 am, david <[EMAIL PROTECTED]> wrote:
> the success function takes a second parameter, the status of the
> response evaluation. Can you please check it ?
>
> On Sep 23, 2:08 am, "seo++" <[EMAIL PROTEC
the success function takes a second parameter, the status of the
response evaluation. Can you please check it ?
On Sep 23, 2:08 am, "seo++" <[EMAIL PROTECTED]> wrote:
> I am not getting an array, I am getting ids.js contents
>
> On Sep 22, 8:12 pm, FrenchiINLA <[EMAIL PROTECTED]> wrote:
>
> > ins
I am not getting an array, I am getting ids.js contents
On Sep 22, 8:12 pm, FrenchiINLA <[EMAIL PROTECTED]> wrote:
> inside of your success function success: function(data){} you should
> refer to 'data' if you're getting back an array, you can refer to as
> data[0][0]
>
> On Sep 21, 9:04 pm, "se
inside of your success function success: function(data){} you should
refer to 'data' if you're getting back an array, you can refer to as
data[0][0]
On Sep 21, 9:04 pm, "seo++" <[EMAIL PROTECTED]> wrote:
> I am trying to insert array elements through ajax request, these
> elements are also arrays
the server side sends ids.js
it's a JavaScript Array
On Sep 22, 2:33 pm, david <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What do you get from the server side ?
> I think you are getting a json structure. But this is text for
> javascript till you make eval;
> instead of the ajax function try getjson.
server side sends ids.js mentioned in first post
it's a JavaScript array
On Sep 22, 2:33 pm, david <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What do you get from the server side ?
> I think you are getting a json structure. But this is text for
> javascript till you make eval;
> instead of theajaxfunc
Hi,
What do you get from the server side ?
I think you are getting a json structure. But this is text for
javascript till you make eval;
instead of the ajax function try getjson.
Best regards,
David
On Sep 22, 7:04 am, "seo++" <[EMAIL PROTECTED]> wrote:
> I am trying to insert array elements thr
I have your same problem here
http://groups.google.com/group/jquery-en/browse_thread/thread/ea1a416e94c66164
On Jun 6, 1:22 pm, Greg <[EMAIL PROTECTED]> wrote:
> Hi everybody!
> I use jQuery 1.2.6 and I encounter a little issue.
>
> I try to do some COMET (server push), here is an overview of m
So if your php page (called "submitVote.php") takes form vars
(integer) "couponID" and (bit) "vote" and it returns the new
percentage (eg "15%"), and the percentage value lives in a div called
"votePercentage", and you have two buttons called 'voteYes' and
'voteNo':
$('document').ready(function()
YOu have Firefox. But are you using Firebug? If not, then may I
suggest you do? The reason being that with Firebug you can see exactly
what is sent to the server, and what response is received. Perhaps
there's something odd going on with the response? Are you getting an
error code back?
Alex,
What are you returning? Do you have a link that I can look at?
Rey
[EMAIL PROTECTED] wrote:
Is there anyone who can help with this please?
On Dec 29, 3:11 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
Hi.
I have just setup a basic site where you click the link and jQuery
retriev
Is there anyone who can help with this please?
On Dec 29, 3:11 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi.
>
> I have just setup a basic site where you click the link and jQuery
> retrieves the link via ajax. Code as follows:
>
>
> function fetchURL(obj){
>
> var page_address =
Actually, you don't need var html at all so:
$.ajax({
url: "ATBAjaxHandler.do",
data:
"service-name=nb_places_available&date="+date+"&flight="+flight,
success: function(html) {
alert("HTML = "+html);
$('#nbPlacesAller').html(html);
} });
Will wor
You need to set the callback, not just access the XHR object, because it may
not (definitely won't) be ready immediately after you call $.ajax, try:
var html = $.ajax({
url: "ATBAjaxHandler.do",
data:
"service-name=nb_places_available&date="+date+"&flight="+flight,
success: func
35 matches
Mail list logo