[jQuery] Re: jQuery AJAX Question

2010-01-07 Thread Matthew Maxwell
That's what I was thinking. I'd have to set some sort of flag in the success callback since it's executed first, and then have the complete reference that flag and process the error accordingly. Thanks for your help, Mike. On Jan 7, 2:58 pm, Mike Alsup wrote: > > I was curious if there was a wa

[jQuery] Re: jQuery AJAX Question

2010-01-07 Thread Mike Alsup
> I was curious if there was a way to hit the current xhr object in the > success callback.  I've been tinkering with it, and have been unable > to figure out how to do that. No, but you can access the xhr in the 'complete' callback.

[jQuery] Re: jQuery Ajax BlockUI Database

2009-11-24 Thread Mike Alsup
You can do this with blockUI if what you're planning to display is reasonably succinct. When you have the database results in your ajax callback, assuming it is HTML, you can do something like this: $.get(someUrl, function(data) { var html = '' + data + 'OK'; $.blockUI({ message: html });

[jQuery] Re: jQuery Ajax BlockUI Database

2009-11-23 Thread MorningZ
I'm not sure why you would use BlockUI for this purpose... seems more like a tooltip plugin is needed that can handle HTML On Nov 23, 3:10 pm, Troy Sartain wrote: > While searching around I have seen plenty of examples where people > query a database and use BlockUI to put up a wait message. Whe

[jQuery] Re: JQuery AJAX not working.

2009-11-16 Thread Mayank
Hi Serhat, Thanks for the reply. Well, I've gone through the code and I'm using just the same code. I went through the code again and again but it wasn't working. Afterwards, I decided to test it on different browsers and it worked in IE 8, but it didn't work in FF 3.5, Chrome. Here is the exact

[jQuery] Re: JQuery AJAX not working.

2009-11-13 Thread serhat
It works for me, the code is: $.get('ajax_try.php',{data1: 'data1-text', data2: 'data2-text'}, function(ajax_response){ if(ajax_response=='ok'){ document.myForm.submit(); }else{ $('#response_text_field').html(a

[jQuery] Re: jquery ajax and listening for users exiting the site

2009-11-02 Thread James
Is http://myWebsite.com the same domain that your beforeunload code is called on? If not, then it won't work because of cross-domain policies for AJAX (XMLHttpRequest object). If so, try removing the full URL so that it's a relative path, e.g. "/ usersessions/store" Also, make sure that: this.

[jQuery] Re: JQuery AJAX

2009-10-24 Thread Ryan White
Hi Shawn, Thanks for your help. So, you're right I do want to do asynchronous. This was a mistake on my part. I actually do need to see the parameters in the webserver log file, so I need to do a GET. By using GET, and the 'data' key with my data, it appears it throws in a random number in thei

[jQuery] Re: JQuery AJAX

2009-10-24 Thread Shawn
btw, if you are trying to track stats, have you looked at Google Analytics or Piwik? http://www.google.com/analytics/ http://piwik.org/ Shawn Ryan White wrote: Hey All, So I am having a weird situation when using the $.ajax method. And have a couple questions regarding this. What I am do

[jQuery] Re: JQuery AJAX

2009-10-24 Thread Shawn
Your URL is the culprit. And the way you are passing data. Doing http://myserver.com/index.gif?id=1&event=e is a GET request - the params are on URl directly. If you want this data to appear in the POST then you need to pass them right: $.ajax({ async: false, type: 'POST', url: 'myse

[jQuery] Re: jquery ajax question?

2009-10-07 Thread James
> $this->input->post('active') Is "active" the right variable? Or did you use "article" like I put in to my example? This is a jQuery group meant for jQuery questions, so I'm trying to help on the jQuery part, mainly. Try using Firebug for Firefox to debug the AJAX request, and determine whether t

[jQuery] Re: jquery ajax question?

2009-10-07 Thread rosnovski
Hey thanks for the reply, the group lives!!! I did that and still nothing. I am using codeigniter and I would like to paste the code incase it sheds more light and maybe a solution? thanks here it is: MODEL- function displayby_name($name) { $this->db->select ("articletitle,articlebody,articleau

[jQuery] Re: jquery ajax question?

2009-10-07 Thread James
$(active).serialize() will not do anything to a text element, only input elements. You'd probably want to change your ajax data option to something like: data: { article:active } where "article" will become your field name in your script. "active" is your Javascript variable (var active = $(this

[jQuery] Re: Jquery ajax form

2009-09-02 Thread Fregas
Thanks! On Sep 2, 12:55 pm, Mike Alsup wrote: > > I'm using the jquery form plugin from here:http://malsup.com/jquery/form/ > > > Is there any callback function or handling of server-side errors in > > this plugin so I can now if an ajax action failed? > > That plugin uses $.ajax under the hood

[jQuery] Re: Jquery ajax form

2009-09-02 Thread Mike Alsup
> I'm using the jquery form plugin from here:http://malsup.com/jquery/form/ > > Is there any callback function or handling of server-side errors in > this plugin so I can now if an ajax action failed? That plugin uses $.ajax under the hood so all the same options apply, including the 'error' call

[jQuery] Re: jquery ajax not working in mozilla

2009-08-28 Thread Alexander C
Are you executing that script in the same domain 'http://localhost:3162' where the rest service is?. We can't do cross-domain ajax requests. Maybe IE make a exception for their own REST services. Atte, Alexander Cabezas Gerente de Aplicacion

[jQuery] Re: jQuery AJAX pulling styles

2009-08-25 Thread James
Can you grab the page in other non-styled data formats, such as XML or JSON? Otherwise, if HTML is your only option, you can use some kind of Javascript replace or regular expression to remove any STYLE and CLASS attributes. On Aug 25, 8:49 am, Donnie La Curan wrote: > I'm using the $.ajax() fu

[jQuery] Re: Jquery Ajax Postbacks

2009-07-30 Thread gladrinkz
Hi FrenchilLA Please sorry for above post i really want to know about the Jquery ajax Post back o or give me some shot example regarding jquery ajax Regards gladrinkz

[jQuery] Re: jQuery + Ajax request

2009-07-27 Thread James
IDs in HTML are unique. You cannot have multiple elements with id="removeSearchword". You can use the CLASS attribute instead, or make unique IDs like: id="removeSearchword_1", id="removeSearchword_2", ... and then change your selector to: $("[id^=removeSearchword_]").click(...); On Jul 26, 10:0

[jQuery] Re: Jquery Ajax Postbacks

2009-07-22 Thread FrenchiInLA
What exactly do you like to do? Ajax call do not Post back, but Call back. do you like to post back in .net application? just call the javascript __doPostBack('Yourcontrol','ypurArgument'); gladrinkz wrote: > > > can ant one tell me or give me some shot example regarging jquery ajax > post ba

[jQuery] Re: jQuery ajax - can i know if the server is alive ?

2009-07-12 Thread Steven Yang
I dont believe there is a way to tell whether the server is alive or not before you try to connect to it. if you listen on the jQuery Ajax event "ajaxError" you will be able to get the HttpStatus from the request object. I am not sure which code means the server is down, but you will be able to te

[jQuery] Re: jQuery ajax - can i know if the server is alive ?

2009-07-12 Thread Veeru
anybody?

[jQuery] Re: Jquery Ajax load function

2009-07-09 Thread nasionalem
Code --->> function test(){ $("#main").load("compare.do"); } Start Test

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread Cesar Sanz
$.get and $.post are convenient methods They both utilize $.ajax internally - Original Message - From: "Glazz" To: "jQuery (English)" Sent: Tuesday, July 07, 2009 4:12 PM Subject: [jQuery] Re: jQuery - Ajax and Load question Thanks for the quick replies, using

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread Glazz
Ok i got it, just need to use $.ajax({dataType : 'json'}); On 7 Jul, 23:12, Glazz wrote: > Thanks for the quick replies, using $.get i can do what i want, with > $.ajax i can too, except the data coming from the .php page is json > encoded so in the $.get i used 'json' at the end -> $.get(.., ..

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread Glazz
Thanks for the quick replies, using $.get i can do what i want, with $.ajax i can too, except the data coming from the .php page is json encoded so in the $.get i used 'json' at the end -> $.get(.., .., function(), 'json'); Is there any big difference using $.get or $.post, or just $.ajax and def

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread James
with $.ajax, you use the success callback. $.ajax({ type: 'GET', url: 'index.php', data: 'id=' + productId + '&qtd=' + quantidade, success: function(data) {

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread BaBna
You need to define your callback function. Maybe something like this? $.get("index.php", { id: productId , qtd: quantidade }, function(data) { doWhateverWith(data); }); On Jul 7, 10:42 pm, Glazz wrote: > Hello, > > I have a function that have this: > >                         $.ajax({ >    

[jQuery] Re: jquery ajax

2009-06-24 Thread Dman
Unless you are from the same domain http://www.domain.com, you can not do cross domain calls with AJAX, with the exception being JSONP calls. On Jun 25, 4:26 am, "Cesar Sanz" wrote: > I can't see the reason to not > > - Original Message - > From: "gigamike" > To: "jQuery (English)" > S

[jQuery] Re: jquery ajax

2009-06-24 Thread Cesar Sanz
I can't see the reason to not - Original Message - From: "gigamike" To: "jQuery (English)" Sent: Wednesday, June 24, 2009 1:58 AM Subject: [jQuery] jquery ajax Hi, Is it possible to call a http url for ajax query i.e. $(document).ready(function(){ $.ajax({ type: "GET", ur

[jQuery] Re: Jquery Ajax Post question

2009-06-15 Thread James
By default, any code that you put after the $.post(); part will be executed immediately after $.post() is executed. That is, it will not wait for the AJAX response. You would not be able to do the "do something with data here" part correctly. To do so, you can using jQuery's $.ajax() function, whi

[jQuery] Re: jQuery, ajax, json, php

2009-06-12 Thread David .Wu
Actually I want need server side doing work, and I don't know how php get json, nothing to do with client side. On 6月12日, 下午4時55分, Anish wrote: > What you get while trying $json['name'] ?? > > Why don't you try getJSON instead of calling usual ajax call ?? > > Regards, > > Anish** > > On Jun 11,

[jQuery] Re: jQuery, ajax, json, php

2009-06-12 Thread Anish
What you get while trying $json['name'] ?? Why don't you try getJSON instead of calling usual ajax call ?? Regards, Anish** On Jun 11, 4:40 pm, "David .Wu" wrote: > If I send a json format to php, how to get the value from php? for > example > > front page > > var jsonStr = '{"name": "David"

[jQuery] Re: jQuery, ajax, json, php

2009-06-11 Thread David .Wu
it's work, cool. On 6月11日, 下午11時58分, Tomáš Kavalek wrote: > Maybe you should use json_decode($json, true); in case of you have a > problem with json_decode($json); > > On 11 čvn, 14:17, Chris Chen wrote: > > > $json = $_POST['json']; > > $user = json_decode($json); > > echo $user['name']; > > >

[jQuery] Re: jQuery, ajax, json, php

2009-06-11 Thread Tomáš Kavalek
Maybe you should use json_decode($json, true); in case of you have a problem with json_decode($json); On 11 čvn, 14:17, Chris Chen wrote: > $json = $_POST['json']; > $user = json_decode($json); > echo $user['name']; > > 2009/6/11 Val Cartei > > > > > > > > > with data.name (data is the json obj

[jQuery] Re: jQuery, ajax, json, php

2009-06-11 Thread Donny Kurnia
David .Wu wrote: If I send a json format to php, how to get the value from php? for example front page var jsonStr = '{"name": "David", "age", "23"}'; $.ajax({ url: 'json.php', type: 'POST', cache: false, data: {json: jsonStr}, success: function(data) {

[jQuery] Re: jQuery, ajax, json, php

2009-06-11 Thread Chris Chen
$json = $_POST['json']; $user = json_decode($json); echo $user['name']; 2009/6/11 Val Cartei > > with data.name (data is the json object you pass to your success > function). Like: > > success: function(data) { >alert(data.name); >} > > Val > > On Thu, Jun 11, 2009 at 12:

[jQuery] Re: jQuery, ajax, json, php

2009-06-11 Thread Val Cartei
with data.name (data is the json object you pass to your success function). Like: success: function(data) { alert(data.name); } Val On Thu, Jun 11, 2009 at 12:40 PM, David .Wu wrote: > > If I send a json format to php, how to get the value from php? for > example > > fro

[jQuery] Re: jquery, ajax and flot

2009-06-03 Thread Gustavo Salomé
Ive never used the plot plugin, but im guessing that its second parameter accepts an array, am i right? If im try to parse the result into an array then do your call: array=[]; array=transformToArray(result); $.plot($("#graph"), array); 2009/6/3 abhis...@uottawa > > Hi, > I'm kinda a newbie to

[jQuery] Re: jQuery ajax 404 error

2009-06-02 Thread Chris Chen
are you sure the url is available?? 2009/6/2 Jonathan Vanherpe (T & T NV) > > raymond wrote: > >> Hi, all. >> I have extremely annoying issue for my project, which made me keeping >> 3 days on it. >> I used jQuery.ajax, but it gets all time 404 error, although target >> url is still available. >

[jQuery] Re: jQuery ajax 404 error

2009-06-02 Thread Jonathan Vanherpe (T & T NV)
raymond wrote: Hi, all. I have extremely annoying issue for my project, which made me keeping 3 days on it. I used jQuery.ajax, but it gets all time 404 error, although target url is still available. When I have checked with firebug console, yes, it shows target url with red color, which might m

[jQuery] Re: jQuery Ajax breaking in IE..... please help!!

2009-05-26 Thread Gustavo Salomé
the url is 'app/ajax.phpauth-login' U missed the ? 'app/ajax.php?auth-login' On Tue, May 26, 2009 at 3:14 AM, yrelkin wrote: > > I am developing a VoIP Customer Portal with jQuery/Ajax. > Everything works fine in Firefox, but in IE and Safari, the JS breaks. > > I used MS Script Debugger to get

[jQuery] Re: jQuery Ajax breaking in IE..... please help!!

2009-05-26 Thread Jordon Bedwell
$.post("login.php",{user:uname,pass:pass},function(data){ alert(data.something); },"json"); Is easier, otherwise you can try removing the word json and using another name and see if that works. Good luck on your mission of success! -Original Message- From: jquery-en@googlegroups.com

[jQuery] Re: jQuery Ajax SUCCESS: using 'THIS'?

2009-05-01 Thread phpdevmd
Half of a day have been looking for this elegant solution. Thanks Peter, your genius! Thanks to Pete Higgings as well. On May 1, 4:38 pm, Peter Edwards wrote: > Hi Roman, > > You need to copy the reference to your link to a variable like this: > > jQuery('#yt1').click(function(){ >   $(this).re

[jQuery] Re: jQuery Ajax SUCCESS: using 'THIS'?

2009-05-01 Thread pete higgins
> > You need to copy the reference to your link to a variable like this: > > jQuery('#yt1').click(function(){ >  $(this).replaceWith("Approving..."); >  var aObj = $(this); if you are going to suggest this, go ahead and teach a good practice of not creating a new jq object unnecessarily: .click(

[jQuery] Re: jQuery Ajax SUCCESS: using 'THIS'?

2009-05-01 Thread Peter Edwards
Hi Roman, You need to copy the reference to your link to a variable like this: jQuery('#yt1').click(function(){ $(this).replaceWith("Approving..."); var aObj = $(this); jQuery.ajax({ 'type':'POST', 'data':'id=205', 'dataType':'text', 'success':function(msg){ alert(aObj.attr(

[jQuery] Re: jQuery Ajax SUCCESS: using 'THIS'?

2009-05-01 Thread pete higgins
hitch could do this. http://higginsforpresident.net/js/jq.hitch.js http://higginsforpresident.net/js/jq.hitch.min.js ... 'success': jQuery.hitch(this, function(msg){ alert($(this).attr('id')); }), ... Regards On Fri, May 1, 2009 at 12:48 PM, phpdevmd wrote: > > Hello, I have the following

[jQuery] Re: jQuery Ajax Error in Firefox 3.0.8

2009-04-23 Thread Geo..
Sorry Guys I got the solution by adding data:{}, after the dataType:""... On Apr 23, 9:31 am, "Geo.." wrote: > I got the error on Error Stage > that means the post is not working > The problem is not in all servers > for test purposes i just echo a hello world in ajax.php > > On Apr 22, 10:38 pm

[jQuery] Re: jQuery Ajax Error in Firefox 3.0.8

2009-04-22 Thread Geo..
I got the error on Error Stage that means the post is not working The problem is not in all servers for test purposes i just echo a hello world in ajax.php On Apr 22, 10:38 pm, Josh Powell wrote: > what does ajax.php return? > > at what stage is the error, beforesend, error, success, complete?  

[jQuery] Re: jQuery Ajax Error in Firefox 3.0.8

2009-04-22 Thread Josh Powell
what does ajax.php return? at what stage is the error, beforesend, error, success, complete? Put in a console.log and see if it is executed in each of the states. Just a style suggest, but reverse your usage of quotes: $('#searchresult').html('  '); instead of $('#searchresult').html("  ");

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Mike Nichols
great glad it helped. I'll look at 1.3.2 to modify On Apr 10, 4:01 pm, Snef wrote: > Exactly what I also want! :) > > Think it needs minor update for 1.3.2 (different way of eval with json > i think) > > Thanx! > > PS. Strange this was not included in jQuery itself. > > Mike Nichols schreef:

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Snef
Exactly what I also want! :) Think it needs minor update for 1.3.2 (different way of eval with json i think) Thanx! PS. Strange this was not included in jQuery itself. Mike Nichols schreef: > I posted on this and submitted on the ticket tracker to do this but it > seems to have been denied

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Snef
Well, is it a good suggestion? Or maybe it's possible to override (or extends) tjhe current ajax implementation? On 10 apr, 16:45, Snef wrote: > Hi, > > When using the $.ajax functionality i came across some things. > > You have to set the dataType option in order to get the correct data > at s

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Mike Nichols
I posted on this and submitted on the ticket tracker to do this but it seems to have been denied (it was abandoned). There was a suggestion made to use the dataFilter but that misses the point since the xhr header doesn't get included as a parameter. To work around this I have a little patch I add

[jQuery] Re: jquery, ajax success but wont load htl() ???

2009-03-24 Thread Mathew
ahhh, i moved the script to the top and made id (document).ready and although it still shows in the response but at the top i am getting results. thanks a bunch! i need to clean it up alot but as long as i am getting results on screen im good. hey man thanks for your time and consideration g

[jQuery] Re: jquery, ajax success but wont load htl() ???

2009-03-24 Thread James
I've noticed in your AJAX response (view via Firebug), you have a whole load of other stuff at the bottom of the response. If you're inserting into a table, your response should begin with , and end with . But you have a whole load of other things like tags. This would make invalid HTML and would

[jQuery] Re: jquery, ajax success but wont load htl() ???

2009-03-24 Thread Mathew
yeah i was needing to do that was just putting it off until i got the response through, thanks. but still no luck. arggg it did work at one point im not sure what to say this is an odd problem On Mar 24, 8:44 pm, James wrote: > Try changing: > > to: > > > and use: > jQuery("#searchresults").

[jQuery] Re: jquery, ajax success but wont load htl() ???

2009-03-24 Thread James
Try changing: to: and use: jQuery("#searchresults").append(r); See what happens. On Mar 24, 3:33 pm, Mathew wrote: > yes whetehr slideup/down is there is the same issue. the page is up at > ->  http://undergroundinnertainment.com/2009/index.php?option=com_usersea... > thank you for your time

[jQuery] Re: jquery, ajax success but wont load htl() ???

2009-03-24 Thread Mathew
yes whetehr slideup/down is there is the same issue. the page is up at -> http://undergroundinnertainment.com/2009/index.php?option=com_usersearch&Itemid=75 thank you for your time also. the response i get for example of a search is: pracycepaulsboro, nj | Is located: 7.78 From: 19146 | Artis

[jQuery] Re: jquery, ajax success but wont load htl() ???

2009-03-24 Thread James
When debugging, try to remove the slideUp and slideDown stuff. What does the HTML for the AJAX response look like? If possible, could you set up a online demo page demonstrating the issue? On Mar 24, 3:21 pm, Mathew wrote: > yeah i need to get in the habit of chaining more thanks. i tried your

[jQuery] Re: jquery, ajax success but wont load htl() ???

2009-03-24 Thread Mathew
yeah i need to get in the habit of chaining more thanks. i tried your way but nothing. r contains my response but for some reason it will not load into that div i am completely clueless as to why it would nto load into the div i have no idea anyone help thanks On Mar 24, 7:42 pm, James wrote:

[jQuery] Re: jquery, ajax success but wont load htl() ???

2009-03-24 Thread James
Have you tried: jQuery("#searchresults").slideUp(function() { jQuery("#searchresults").html(r).slideDown(); }); Also for form elements, instead of doing: var name = jQuery("#search").attr('value') You can simply do: var name = jQuery("#search").val(); On Mar 24, 2:33 pm, Mathew wrote: >

[jQuery] Re: Jquery ajax doesn't work in firefox on my site, once it used to be.

2009-03-08 Thread Makara Kao
Thank James for your reply. It's so strange that it has error in my browser (Firefox 3.0.7). And I can see the error message through firebug as following: http://www.w3.org/TR/html4/loose.dtd";> ERROR: The requested URL could not be retrieved