[jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot
the result, in this case a simple php echo. -- View this message in context: http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27229104.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 11:06 AM, parot russ...@parotkefalonia.com wrote: What I cannot do and I do not seem to get a sensible, easy to follow and understandable answer from knowledgeable JQuery people is find out how to pass the valiable trythis to the page tryit.php and then return the

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot
must misunderstand you... var trythis = 57; $.get(tryit.php, { trythis: trythis }, function(data) { $(#resultsGoHere).html(data); }); Nathan -- View this message in context: http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27229508.html Sent from

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 11:32 AM, parot russ...@parotkefalonia.com wrote: Very near, but it is more basic than that - how do I get the variable ?trythis=changable value into var trythis=; Maybe a sequence diagram would be helpful. Here's what I hear you asking:

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot
-AF8KOiA1NwBrDQCBDgkACQ8AexUic29tZXRoaW5nIGVsc2UiAExSAFERAIEXFQB3EQs=default Could you modify that to better explain what you mean, maybe? Nathan -- View this message in context: http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27231466.html Sent from the jQuery

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 1:45 PM, parot russ...@parotkefalonia.com wrote: I want to scroll back and forward through the months on a calendar without refreshing the page. I have the php calendar, but I don't want any page refresh which I can do with PHP and just send the GET to the page.  so

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot
: http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27232199.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 2:29 PM, parot russ...@parotkefalonia.com wrote: so you could have something like $(button#prevMonth).click(function() { loadMonth(--currentMonth),loadYear(--currentYear); }); Well, to handle year and month you'll want something like: var currentMonth = 1; var

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot
(--currentMonth); }); $(button#nextMonth).click(function() { loadMonth(++currentMonth); }); }); /script -- View this message in context: http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27232554.html Sent from the jQuery General Discussion mailing list

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot
(++currentMonth); }); }); /script -- View this message in context: http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27233076.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] jQuery AJAX Question

2010-01-07 Thread Matthew Maxwell
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. The reason I ask is because I am trying to debug an application I've been working on, and sometimes the response XML is not

[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] jquery ajax question?

2009-10-07 Thread rosnovski
Hi y'all, Please look at this code: $('ul#navigation li ul lia').click(function(){ var active = $(this).text(); $('#artcontent p').empty(); $.ajax({ type: 'POST', url: 'homepage/readarticle', data: $(active).serialize(),

[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 =

[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

[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 the

[jQuery] $ajax() question

2009-08-10 Thread yi
$.ajax({ type: POST, url: mywebpage.aspx? Arg=+args2, contentType: text, data:{}, dataType:

[jQuery] ajax question

2009-02-20 Thread David .Wu
if we want to transfer some variable to another page by ajax, we use data: {a: 1, b: 2} and it will send like xxx.php?a=1b=2 but if a is not a constant variable, such as var $a = x data: {$a: 1} I want it become xxx.php?x=1 var $a = y data: {$a: 1} I want it become xxx.php?y=1 how to do that?

[jQuery] $.ajax question

2008-01-25 Thread Alexandre Plennevaux
hi friends, i have a question: i call several times a function in which there is an ajax cal, which, when succesfull, performs a search in the loaded data and return the result/. Will the ajax call (the client/server communication) be performed each time, or will it use the cache and just

[jQuery] $.ajax question

2007-08-12 Thread Eridius
Is there a way to pass the $.ajax object a form id or will i need to convert for form to a string.object and pass the data like that? -- View this message in context: http://www.nabble.com/%24.ajax-question-tf4257664s15494.html#a12116633 Sent from the JQuery mailing list archive at Nabble.com.