[jQuery] Re: $.ajax call doesn't complete on 400 bad request response

2010-01-18 Thread anton
success function is not called at all when I receiver error code 400: success: function() { alert(success); }, error: function() { alert(error); }, complete: function() {

[jQuery] Re: $.ajax call doesn't complete on 400 bad request response

2010-01-18 Thread anton
A type, sorry, everything works fine without javascript warnings or errors, can seem to get any function to be called after a request which return 400. Just fixed the server so that it returns correct MIME-type application/javascript instead of just text for errors, this wasn't the problem

[jQuery] Re: $.ajax call doesn't complete on 400 bad request response

2010-01-18 Thread anton
I see now I misunderstood the complete functionality of JSONP, no XMLHttpRequest is made at all, and as a result it's not possible to control HTTP headers. In my case a script like: script type=text/javascript src=http://localhost:9998/search/jonas? callback=jsonp1263842210822 /script is injected

[jQuery] Re: Ajax forms help

2010-01-11 Thread Ibatex
The beauty of json is that you can transfer alot of different data in an organized way. You can very easily send back success/failure status along with the html. success: function(response) { // Response was a success if (response.status) {

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
slahsed // // / / / like that. -Original Message- From: Ibatex [mailto:mjgris...@gmail.com] Sent: January-11-10 4:35 AM To: jQuery (English) Subject: [jQuery] Re: Ajax forms help The beauty of json is that you can transfer alot of different data in an organized way. You can very easily

[jQuery] Re: Ajax forms help

2010-01-11 Thread MorningZ
the array it was all slahsed // // / / / like that. -Original Message- From: Ibatex [mailto:mjgris...@gmail.com] Sent: January-11-10 4:35 AM To: jQuery (English) Subject: [jQuery] Re: Ajax forms help The beauty of json is that you can transfer alot of different data in an organized

Re: [jQuery] Re: Ajax forms help

2010-01-11 Thread Michael Geary
: MorningZ [mailto:morni...@gmail.com] Sent: January-11-10 11:44 AM To: jQuery (English) Subject: [jQuery] Re: Ajax forms help But if I am returning json I cant return my normal html I don't understand why... I pretty much exclusively use JSON back and forth in my jQuery AJAX calls and have

Re: [jQuery] Re: Ajax forms help

2010-01-11 Thread John Arrowwood
-Original Message- From: MorningZ [mailto:morni...@gmail.com] Sent: January-11-10 11:44 AM To: jQuery (English) Subject: [jQuery] Re: Ajax forms help But if I am returning json I cant return my normal html I don't understand why... I pretty much exclusively use JSON back and forth in my

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
-Original Message- From: Michael Geary [mailto:m...@mg.to] Sent: January-11-10 4:36 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Re: Ajax forms help The JSON part of your server response looks fine if you take out the two line breaks - I assume those are just an artifact of posting

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
after the code Dave -Original Message- From: Michael Geary [mailto:m...@mg.to] Sent: January-11-10 4:36 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Re: Ajax forms help The JSON part of your server response looks fine if you take out the two line breaks - I assume those

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
($response); return; } From: John Arrowwood [mailto:jarro...@gmail.com] Sent: January-11-10 4:45 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Re: Ajax forms help Your problem looks like it may be on the back-end. Send the code that generates the JSON

RE: [jQuery] Re: Ajax forms help

2010-01-11 Thread Dave Maharaj :: WidePixels.com
} Now to display the HTML but without all the \/p\r\n Dave From: John Arrowwood [mailto:jarro...@gmail.com] Sent: January-11-10 4:45 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Re: Ajax forms help Your problem looks like it may be on the back-end. Send

[jQuery] Re: Ajax forms help

2010-01-11 Thread MorningZ
[mailto:jarro...@gmail.com] Sent: January-11-10 4:45 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Re: Ajax forms help Your problem looks like it may be on the back-end.  Send the code that generates the JSON. On Mon, Jan 11, 2010 at 11:41 AM, Dave Maharaj :: WidePixels.com d

[jQuery] Re: ajax image

2010-01-06 Thread MorningZ
I want all my ajax calls to run through the same ajax function What same ajax function? On Jan 6, 10:29 am, Mean Mike mcgra...@gmail.com wrote: ok so I figured out that you can put in image in your page using .load (imageloader.php) but is there a way to load an image using regular ajax

[jQuery] Re: ajax image

2010-01-06 Thread Mean Mike
basically all ajax calls go through $.ajax({.}); I made a function that gets passed all the parameters that I want in the ajax call oddly enough i can't get load to work right either i just get Array returned On Jan 6, 10:33 am, MorningZ morni...@gmail.com wrote: I want all my ajax

[jQuery] Re: ajax image

2010-01-06 Thread MorningZ
So you are trying to use jQuery's .load() functionality with an actual image (i assume that your php sets the content type to image/ jpeg, image/gif, etc and writes out the actual binary image data) ? that's not going to work, as the .load() loads the result of the Ajax call into the innerHtml of

[jQuery] Re: ajax image

2010-01-06 Thread Mean Mike
So you are trying to use jQuery's .load() functionality with an actual image (i assume that your php sets the content type to image/ jpeg, image/gif, etc and writes out the actual binary image data) ? YES ! that is correct. that's not going to work, as the .load() loads the result

Re: [jQuery] Re: ajax image

2010-01-06 Thread John Arrowwood
So, why can't you just create a new img node with a src attribute? It will automatically download the image in the background, much like with AJAX. Is the problem that you want to ensure that the image is fully downloaded before you try to display it? Have you tried $(imgTag).ready(...)?

[jQuery] Re: Ajax error handling textStatus

2009-12-29 Thread anatoly techtonik
What about $.load() callback? Seems like its called in all possible cases. The only disadvantage is error checking - is there any helper in jQuery to check textStatus for error? This one is not particularly beautiful. if (textStatus == 'error' || textStatus == 'timeout' || textStatus ==

[jQuery] Re: ajax

2009-12-28 Thread idcoder
Hey thanks for a reply... I corrected the selector as pointed by you..But is still cannot make anything inside success work.. On Dec 17, 5:18 am, Michael Lawson mjlaw...@us.ibm.com wrote: Is your selector correct for your success function? perhaps you meant $(#loading) instead of $(loading)  

[jQuery] Re: ajax success event does not work

2009-12-28 Thread MorningZ
try also catching the error event and see what the problem is (which make no doubt about it, something is wrong with the response for jQuery to not go into success $.ajax({ type: POST, url: submit1.php, data: $(#regist).serialize(),

[jQuery] Re: Ajax values are lost between 2 operations

2009-12-27 Thread Tristan
thx for the reply 1) yeah, the values are correct i checked that with firebug 2) i tried putting the getScript in callback (i don't know if i did this right) but it's the same no data loaded 3) the php part is doing well i've got the right values in notes.php according to what users select in the

[jQuery] Re: Ajax values are lost between 2 operations

2009-12-27 Thread Tristan
if it can help, here's the link : http://www.gamer-certified.fr/statistiques/par-hebergeur.php 1) yeap they are correct 2) i tryed that but it still not works 3) php is doing his part, datas are correctly updated with the help of the POST value $(#nomGSP).change(function () { //get

Re: [jQuery] Re: Ajax values are lost between 2 operations

2009-12-27 Thread Charlie
I don't do much with flash but this param looks strange to me and is what is being written into DOM by your getScript param name="flashvars" value="data-file=../graphiques/notes.phploading=Gamer Certified, chargement des donn?es..."/ Tristan wrote: if it can help, here's the link :

[jQuery] Re: Ajax values are lost between 2 operations

2009-12-27 Thread Tristan
it's not the problem, it's working without ajax :D any other guess ? :o i'm stuck with that and i cannot move foward until the problem is fixed ='( On 27 déc, 23:46, Charlie charlie...@gmail.com wrote: I don't do much with flash but this param looks strange to me and is what is being written

[jQuery] Re: AJAX request

2009-12-24 Thread Šime Vidas
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

Re: [jQuery] Re: AJAX request

2009-12-24 Thread Octavian Râsnita
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

[jQuery] Re: AJAX and the Content-Type response header

2009-12-18 Thread MrM
Thanks for your reply, David. i am afraid you have no way to parse the Content-Type in your javascript. because it the the header of the response, and you can only get the body (the content) of the response. This is not true. The XMLHttpRequest object has a getResponseHeader function, which

[jQuery] Re: $.ajax POST on ff3.5 and Chrome

2009-12-18 Thread Anton Koval'
So, i've figured out why that happens: in case of ff and chrome that is just some security policy, which forbids to do post on remote host. Solution is quite simple - place controller and hmtl page with your scripts on same host, and after that parameter url in $.ajax post will transformed to

[jQuery] Re: AJAX POST listener

2009-12-16 Thread Justin
Thanks Charlie Unfortunately, while the code managed to trigger on the first load of the page. Subsequent AJAX/POST calls from within the same page wouldn't be triggered. Any way to combine this with a 'live' function? On Dec 11, 9:53 pm, Charlie charlie...@gmail.com wrote: when in doubt the

[jQuery] Re: ajax

2009-12-11 Thread Jojje
Thanks, getScript worked :D, appreciate it!!! Now i got another problem :s i´m using special characters åäö cause its a swedish site, iso 8859-1, and when the script loads it doesnt get properly encoded so i cant see those characers.( Im setting textfields with example text ) Is there a way to

Re: [jQuery] Re: Ajax , Json, and error firing instead of success

2009-12-09 Thread Michael Geary
It's probably 'parsererror', not 'parseerror', right? If you search the jQuery source for 'parsererror', you will find the two places where that error can be thrown. That may shed a little light on it. Actually what I would do would be to start stripping down the JSON response until the error

[jQuery] Re: Ajax , Json, and error firing instead of success

2009-12-09 Thread elpatator
Dear Mike, I think i'm on something... To be precise, my json is generated through a jsp parsing. So its dynamic, and imports taglibs in first place. These imports generate 'natural' whitespace. So I started hardcoding this jsp/json anwser, stripping away taglib imports. Wich gave me a clean,

[jQuery] Re: Ajax error handling textStatus

2009-12-09 Thread T.J. Simmons
Are you using $.ajax or one of the other AJAX functions? $.get and the rest only execute a callback upon success; you'll need to use $.ajax if you want a callback for an error. http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype has some more information on that. -T.J. On Dec 9, 6:30 am,

[jQuery] Re: Ajax error handling textStatus

2009-12-09 Thread Cameron van den Bergh
Thank you for this information, indeed, i was using $.get. On 9 déc, 18:13, T.J. Simmons theimmortal...@gmail.com wrote: Are you using $.ajax or one of the other AJAX functions? $.get and the rest only execute a callback upon success; you'll need to use $.ajax if you want a callback for an

[jQuery] Re: Ajax error handling textStatus

2009-12-09 Thread T.J. Simmons
No problem, glad to help. -T.J. On Dec 9, 1:12 pm, Cameron van den Bergh cameron.vandenbe...@gmail.com wrote: Thank you for this information, indeed, i was using $.get. On 9 déc, 18:13, T.J. Simmons theimmortal...@gmail.com wrote: Are you using $.ajax or one of the other AJAX functions?

[jQuery] Re: Ajax , Json, and error firing instead of success

2009-12-08 Thread MorningZ
Is there a reason why you have eval() ? jQuery will do that by itself if you are telling it to retrieve JSON On Dec 8, 1:44 pm, elpatator romain.simi...@gmail.com wrote: Hi people, I'm trying to make an ajax request, hoping for a clean json response to come up. Firefox, as usual, behaves

Re: [jQuery] Re: Ajax , Json, and error firing instead of success

2009-12-08 Thread Michael Geary
Yeah, the eval() is undoubtedly wrong, but that wouldn't be the issue here if it's never getting to the success callback. Is there any clue about the error in the arguments passed to the error callback? You have the wrong parameter list in that function. It takes three arguments as shown here:

[jQuery] Re: Ajax , Json, and error firing instead of success

2009-12-08 Thread elpatator
Dear all, as suggested above, I just made a quick test using error: function(XMLHttpRequest, textStatus, errorThrown) { alert(XMLHttpRequest: + XMLHttpRequest); alert(textStatus: + textStatus);

[jQuery] Re: $.ajax and $.get

2009-11-27 Thread Scott Sauyet
On Nov 27, 12:44 pm, Wayne Tong wei.tong.n...@gmail.com wrote: It is one of our internal server here, and don't think you will have access to it, see the message it returns when I use $.ajax What Michael is trying to point out is that it's pretty difficult to debug something when we can't see

[jQuery] Re: AJAX w/dataType='json', doesn't correctly handle boolean response?

2009-11-20 Thread livefree75
I'm not explicitly setting a content-type, but Firebug tells me it's text/html . I'll try changing it to application/json. Erm... I must be doing something else wrong in my script. Just now I just set up a very simple test using both regular $.ajax() and using jquery.form.js's $.ajaxForm()

[jQuery] Re: Ajax download file.

2009-11-16 Thread PiotrJaniak
Hi, i don't know how can you attach any other file but xml to HTTPresponse. I rather do sth like that: - load php file which return link to pdf - open new window with pdf file code: $.ajax({ type: POST, url: /Portfolio09/scripts/setLang.php, data: param, success:

[jQuery] Re: Ajax download file.

2009-11-16 Thread PiotrJaniak
Hi, i don't know how can you attach any other file but xml to HTTPresponse. I rather do sth like that: - load php file which return link to pdf - open new window with pdf file code: $.ajax({ type: POST, url: phpfile.php, data: param, success: function(html){

[jQuery] Re: AJAX is not invoked for dynamically added input fields

2009-11-11 Thread palgo
Thanks man! So I changed this line to this to get it to work: //old $(.A, .B).keyup(function(event){ /new $(.A, .B).live (keyup, function(event){... Thanks again for your quick answer! -Palgo On 11 Nov, 14:27, Giovanni Battista Lenoci gian...@gmail.com wrote: palgo ha scritto: My

[jQuery] Re: AJAX requests in progress

2009-11-10 Thread alunharford
I found the answer in the source. $.active tells you how many requests are pending (just like Ajax.activeRequestCount in prototype). Thanks all, Alun Harford

[jQuery] Re: Ajax Load, CSS Insert on Loading Gif and Fade Out

2009-11-10 Thread artesianwells
Thankyou Nathan, I am sure this plugin and the filement group loading plugin are great, but I wanted a really lightweight solution that uses the css. If anyone knows how to set it up properly the chaining the etc (if possible using .empty()). Please post. I am sure there are others who would like

[jQuery] Re: $.ajax and responsed value...

2009-11-07 Thread Josip Lazic
You could try return json encoded data from PHP, here's tutorial http://www.prodevtips.com/2008/08/15/jquery-json-with-php-json_encode-and-json_decode/

Re: [jQuery] Re: $.ajax and responsed value...

2009-11-07 Thread Lord Gustavo Miguel Angel
thank´s -- From: Josip Lazic jlaz...@gmail.com Sent: Saturday, November 07, 2009 4:02 PM To: jQuery (English) jquery-en@googlegroups.com Subject: [jQuery] Re: $.ajax and responsed value... You could try return json encoded data from PHP, here's

[jQuery] Re: AJAX POST causing 500 unimplemented method

2009-11-03 Thread James
What is the URL of the serviceUrl? Make sure that whatever resource it's going to it supports the POST verb. For example, if you POST to a .html resource, some servers will not accept it by default. You'd have to configure your server to allow it. On Nov 3, 1:53 pm, some_random_kid

[jQuery] Re: AJAX POST causing 500 unimplemented method

2009-11-03 Thread Dave Methvin
Any idea what that OPTIONS and 500 unimplemented method mean It sounds like somehow type got set to OPTIONS and when sent to the server it justifiably returned a 500 unimplemented HTTP error code because it didn't know what to do with that method type. Take a look at the more code here stuff and

[jQuery] Re: ajax not sending back details

2009-11-02 Thread MorningZ
There's something wrong in your server code: Parse error: syntax error, unexpected '[' in /home/lastings/ public_html/play/app/controllers/usersessions_controller.php on line 15 As for trapping the error in jQuery... this always works for me as an error catch: error: function(x, y, z) { //

[jQuery] Re: AJAX and JSON

2009-10-27 Thread Mark Volkmann
On Mon, Oct 26, 2009 at 9:58 PM, MorningZ morni...@gmail.com wrote: if this is your *exact* code $.getJSON(url + ?callback?, function (json) { then you're missing an equal sign $.getJSON(url + ?callback=?, function (json) { Good catch! Fortunately I had the = in my real code. I just

[jQuery] Re: AJAX and JSON

2009-10-27 Thread MorningZ
yeah, if you are not using cross domain calls, dump the callback parameter there, it's totally no needed... and if you are not using cross domain, then you aren't/don't-need-to use or think about jsonp at all as for mime type of normal json: application/json or text/plain also works for fine (in

[jQuery] Re: Ajax enabled Links/Forms and AutoRefresh

2009-10-27 Thread Michel Belleville
http://lmgtfy.com/?q=jquery+ajax Michel Belleville

[jQuery] Re: AJAX and JSON

2009-10-26 Thread MorningZ
if this is your *exact* code $.getJSON(url + ?callback?, function (json) { then you're missing an equal sign $.getJSON(url + ?callback=?, function (json) { As for the rest of your issue of what to do, this post should help:

[jQuery] Re: AJAX API without XML?

2009-10-19 Thread Bi Jing
Sure, jquery supports several popular response data types, not only xml, also HTML, text, jason even script. For more information, I suggest you check jquery official docs. Becoder. On Sun, Oct 18, 2009 at 1:21 AM, kidburla ajbur...@googlemail.com wrote: Hi, I understand that normally when

[jQuery] Re: AJAX callbacks: load(); $.get() and $.post() do not

2009-10-14 Thread David
Hi, I have a related problem: http://groups.google.com/group/jquery-en/browse_thread/thread/faf44301f4a22535/537df7c5a5b124bf?lnk=gstq=garcia.narbona#537df7c5a5b124bf I have just also found this: http://groups.google.com/group/jquery-en/browse_thread/thread/4c8e4ac00ee529d2#

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread Shawn
in short, no. Not that I know of. I mean no plugin per se. The code/script is simple enough though... $(#myradio).click( function () { $.ajax({ url: somepage.php, data: id=somevalue, dataType: json, success: function (results) { var opts = ; for (x=0; x

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread lionel28
Thanks for replying. I am going to try your code. Shawn Grover wrote: in short, no. Not that I know of. I mean no plugin per se. The code/script is simple enough though... $(#myradio).click( function () { $.ajax({ url: somepage.php, data: id=somevalue,

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread lionel28
hummm, not that simple. It's multiple radios with multiple values so how to get id and value of selected one? lionel28 wrote: Thanks for replying. I am going to try your code. Shawn Grover wrote: in short, no. Not that I know of. I mean no plugin per se. The code/script

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread Shawn
that is a different issue than the ajax thing. but, it's also a common thing.. :) $(input[name='myradio']:checked).val() That should do it. Get the value of the checked radio option... I changed it to not use an ID, cuz chances are you are you are using a name and not an ID... Failing

[jQuery] Re: AJAX callbacks: load(); $.get() and $.post() do not

2009-10-13 Thread Don Dunbar
Hi, it could be that your not supplying the type of return in the .post and .get calls. According to the API .post and .get have a fourth param of 'type' such as 'xml' or 'json'. This might not be the issue but it could be because your server won't know what mime type to return. DED On Tue, Oct

[jQuery] Re: AJAX callbacks: load(); $.get() and $.post() do not

2009-10-13 Thread James
Could you define does not work? Does the request get sent at all? Without much information it's hard to help. What's in the variable 'parameters' and 'register_submitCallback'? On Oct 13, 3:22 am, alexryan alexander.j.r...@gmail.com wrote: $.get() and $.post() functions work for me *except*

[jQuery] Re: ajax request hangs IE6

2009-10-13 Thread rasensio
I fixed this using the setting in the ajax request cache: false On Oct 13, 3:09 pm, rasensio rasen...@gmail.com 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

[jQuery] Re: AJAX callbacks: load(); $.get() and $.post() do not

2009-10-13 Thread Ninad Desai
I use $.post and $.ajax and it always works for me. Could you mention how you are passing parameters? That might be holding the key. Ninad On Oct 13, 2:33 pm, James james.gp@gmail.com wrote: Could you define does not work? Does the request get sent at all? Without much information it's

[jQuery] Re: Ajax - Disable script eval

2009-10-11 Thread Christophe
Update: I ended up adding this line of code to my script: jQuery.globalEval = function(){}; I am still interested in advice if there's a better way. On Oct 11, 10:12 am, Christophe christophe.humb...@gmail.com wrote: I am using the jQuery load function to grab HTML from other pages. I am

[jQuery] Re: Ajax Request Order

2009-10-10 Thread ngreenwood6
I think that you could probably do something like this: //first get $.ajax({ type: GET, url: some.php, data: name=Johnlocation=Boston, success: function(){ //another get on success $.ajax({ type: GET, url: somepage2.php, data:what=whatever,

[jQuery] Re: Ajax related issue

2009-10-07 Thread stevel
I found the answer to my own question. To overcome this problem, I have to use the .live method to bind current and future elements on the page. I made the following change to my function to use the .live method.: jQuery.fn.checkmarkClickWithAjax = function(){ this.live(click,function(){

[jQuery] Re: Ajax Not Working A Second Time

2009-10-05 Thread amuhlou
the .A1 within the #info divs does not exist when the document ready event fires, so the click event is not applied. try using the live method() http://docs.jquery.com/Events/live On Oct 5, 2:54 pm, GLSmyth george.sm...@gmail.com wrote: I have some simple code: $(document).ready(  

[jQuery] Re: Ajax / Form Validation

2009-10-02 Thread James
] Sent: October-02-09 12:19 AM To: jQuery (English) Subject: [jQuery] Re: Ajax / Form Validation Here's a simplified version of what you want to do: $('#testForm').bind('submit', function() {     $(this).validate(validation_options);     var valid = $(this).valid();     if (valid

[jQuery] Re: ajax submit upload file firebug... no answer

2009-10-02 Thread James
Could you post some relevant code on how you're doing all of this? It's hard to help from only reading what you've described. On Oct 2, 5:48 am, Harold Martin hmartin...@gmail.com wrote: Hi, I've a technical problem, i use jQuery Form Plugin and it's working well except for upload file.

[jQuery] Re: Ajax results?

2009-10-02 Thread Toaster
Thanks guys Michael, that link is very helpful. I got the numbers a bit mixed up, it should be around 25 result items each made up of 12 elements with around 12 pieces of information from db/json. - so yes, 300 elements total. If you don't mind me asking, I'd like you guys to give me your

[jQuery] Re: .ajax() with dataType: 'jsonp' will not use error callback if request fails

2009-10-02 Thread KeeganWatkins
I think this is a known limitation of jsonp as a technique, not a bug with jquery itself. Jsonp works by appending a script tag to the DOM, whose src attribute points to the URL you specify. The URL is expected to wrap a json object in a function call to the function you specify, and the returned

[jQuery] Re: .ajax() with dataType: 'jsonp' will not use error callback if request fails

2009-10-02 Thread Mike Alsup
I think this is a known limitation of jsonp as a technique, not a bug with jquery itself. Jsonp works by appending a script tag to the DOM, whose src attribute points to the URL you specify. The URL is expected to wrap a json object in a function call to the function you specify, and the

[jQuery] Re: ajax submit upload file firebug... no answer

2009-10-02 Thread Mike Alsup
Effectively after uploading file we can't see any response in firebug. (You can see an example in the official website of jquery form pluginhttp://malsup.com/jquery/form/#code-samples) You won't see the response from a file upload displayed on the Firebug console tab because that request

[jQuery] Re: ajax complete function not being called

2009-10-01 Thread mike
Right! I'm having the same problem--neither the error nor the complete are being called. The request just fails, probably because the responseText is not JSON. I've had no luck searching around for answers to this either. Guess we'll have to wait until the jQuery JSONP plugin is more mature.

[jQuery] Re: ajax complete function not being called

2009-10-01 Thread mike
Right! I'm having the same problem--neither the error nor the complete are being called. The request just fails, probably because the responseText is not JSON. I've had no luck searching around for answers to this either. Guess we'll have to wait until the jQuery JSONP plugin is more mature.

[jQuery] Re: ajax complete function not being called

2009-10-01 Thread James
What happens if you put the whole $.ajax statement in a try/catch statement? Does it catch? On Oct 1, 7:24 am, mike randall...@gmail.com wrote: Right!  I'm having the same problem--neither the error nor the complete are being called.  The request just fails, probably because the responseText

[jQuery] Re: Ajax / Form Validation

2009-10-01 Thread James
Here's a simplified version of what you want to do: $('#testForm').bind('submit', function() { $(this).validate(validation_options); var valid = $(this).valid(); if (valid) { // do your ajax } }); var validation_options = { // set your options here }; On Oct 1, 10:52 

[jQuery] Re: Ajax / Form Validation

2009-10-01 Thread Dave Maharaj :: WidePixels.com
] sweet sf data[Experience][start] 1975 data[Experience][state_id] 15 field Nothing is working. Ideas? Dave -Original Message- From: James [mailto:james.gp@gmail.com] Sent: October-02-09 12:19 AM To: jQuery (English) Subject: [jQuery] Re: Ajax

[jQuery] Re: Ajax results?

2009-09-30 Thread Toaster
Thank you for your reply James In regards to the JSON vs HTML, would the browser have any problems creating 25 results items each with 12 pieces of information from JSON? (it'd be more of less 120 elements being appended)

[jQuery] Re: Ajax results?

2009-09-30 Thread James
I can't really say. It varies depending on what you're trying to put in and how you're doing it. For example, inserting 120 large tables versus 120 lines of text will probably have a noticeable difference. And how you're doing it. For example, inserting everything at once, or set a timeout to

[jQuery] Re: Ajax results?

2009-09-30 Thread Michael Geary
25 x 12 sounds closer to 300 elements? Either way, it's easy to generate that much stuff in JavaScript and get good performance, if you're careful about how you write the code. Here's a post with some tips and optimized code for a similar task:

[jQuery] Re: Ajax post on save dialog box

2009-09-29 Thread ranga pathmasiri
Hi Please try this var content = jQuery.trim(tinyMCE.get('editor').getContent()); $.post(comments.php, { do : editcomment , c : cid , pagetext : content }, function(data){ }); Best Regards Ranga On Tue, Sep 29, 2009 at 9:48 AM, lionel28 lmarte...@haitiwebs.net wrote:

[jQuery] Re: Ajax post on save dialog box

2009-09-29 Thread lionel28
hi, Firebug was telling me that editcomment was not defined and the dialog was freezing. So I put editcomment, cid and pagetext in bracket and the dialog box updated the div, closed but database was not updated Thanks lionel28 wrote: Hi, I am loading tiny Mce editor in a dialog box

[jQuery] Re: Ajax results?

2009-09-29 Thread James
You should use JSON if you have a set of data that you want to easily parse (e.g. loop through) and put into a format of your own (via Javascript). You should use HTML if you have a block of HTML to just insert into the page, or if you just return very short and simple data, like true or false or

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread MorningZ
Take an example page in php that you want to mimic, and simply have asp send back to the browser the same information On Sep 28, 3:58 am, factoringcompare firstfacto...@googlemail.com wrote: Hi, Reasonably new to web building. I am now just updating my site with jQuery (first time user).

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
OK, I am trying to get this example to work : http://papermashup.com/jquery-php-mysql-username-availability-checker/ This is the php code I can't mimic: ?php include(dbConnector.php); $connector = new DbConnector(); $username = trim(strtolower($_POST['username'])); $username =

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread MorningZ
This is the php code I can't mimic: Really? the code is super simple: - Open connection to the database - Take the posted value of username, trim it, and make lower case - Clean up the string to help prevent SQL injection attack - Take that username and check against the database - echo

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
I can’t get it to work. Something strange is happening. To manually check if the client side code is working I put “1” in the server side page with a .php extension and sure enough I can get the code to work. If I do the same with a .asp page it has no effect. Any thoughts what’s going on? On

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread MorningZ
Why do you have a page with a php extension? As for helping further, it would be a huge help if you post some non- working code... you could have a bad selector, bad syntax, who knows... On Sep 28, 3:15 pm, factoringcompare firstfacto...@googlemail.com wrote: I can’t get it to work.

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
OK, thank you for taking the time out to look at this issue for me. Ok this is the code client side page: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread James
When you return response in your AJAX, it's not 1. It's htmlhead.../html. jQuery doesn't automatically go through your HTML and look in the body to find the 1. In your server-side code, you don't return the whole HTML page. You just return the String 1 (without the quotes). Such that if you load

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
Thank you James that worked. I can now move on and try and code the DB connection. On Sep 28, 10:22 pm, James james.gp@gmail.com wrote: When you return response in your AJAX, it's not 1. It's htmlhead.../html. jQuery doesn't automatically go through your HTML and look in the body to find

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
OK, now got the backend working with the following code: %...@language=VBSCRIPT% !--#include file=Connections/car.asp -- % Dim rsUser__MMColParam rsUser__MMColParam = 1 If (Request.Form(username) ) Then rsUser__MMColParam = Request.Form(username) End If % % Dim rsUser Dim rsUser_numRows

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Well, the problem still seems to be in the get() function. For example, IE gives the following error: Object doesn't support this property or method With: (function($) { $.fn.followUser = function(userId) { this.fadeOut(250, function(){ $.get('profile.php', { do:

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
After 3 DAYS, I finally figured it out: $.get('profile.php', { do: 'addfriend', id: userId } The problem is, that the word do is reserved or something, thus you can't use it in get, ajax and probably elsewhere. test.php? do=something will never work from jQuery then, or how should I escape it?

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Tested, it can be bypassed with ajax(): $.ajax({ type: GET, url: profile.php, data: do=addfriendid=2 }); But is the get and do thing a bug? On Sep 27, 3:37 pm, indre1 ind...@gmail.com wrote: After 3 DAYS, I finally

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread Mike McNally
You can always quote the word do on the left side of the colon: { do: something, x: y } It's not a bug, it's part of the Javascript language. On Sun, Sep 27, 2009 at 7:49 AM, indre1 ind...@gmail.com wrote: Tested, it can be bypassed with ajax():  $.ajax({                   type: GET,  

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Ok, thanks. Should've noticed the highlighted word in editor. But if it's javascript, then why doesn't it throw errors with Firefox? On Sep 27, 3:55 pm, Mike McNally emmecin...@gmail.com wrote: You can always quote the word do on the left side of the colon:   { do: something, x: y } It's

  1   2   3   4   5   6   7   8   9   10   >