t;
>>> Next month
>>>
>>>
>>> var currentMonth = 1;
>>> function loadMonth(newMonth) {
>>> $("#calendar").load("getCalendar.php?m="+newMonth);
>>> }
>>> $().ready(function() {
>>>loadMonth(currentMonth);
>>>$("button#prevMonth").click(function() { loadMonth(--currentMonth);
>>> });
>>>$("button#nextMonth").click(function() { loadMonth(++currentMonth);
>>> });
>>> });
>>>
>>>
>>>
>>
>>
>
>
--
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.
adMonth(newMonth) {
>>$("#calendar").load("getCalendar.php?m="+newMonth);
>> }
>> $().ready(function() {
>> loadMonth(currentMonth);
>>$("button#prevMonth").click(function() { loadMonth(--currentMonth);
>> });
>>$("button#nextMonth").click(function() { loadMonth(++currentMonth);
>> });
>> });
>>
>>
>>
>
>
--
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 archive at Nabble.com.
On Tue, Jan 19, 2010 at 2:29 PM, parot 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 currentYear = 2010;
function
loadMonth(newMonth) {
>$("#calendar").load("getCalendar.php?m="+newMonth);
> }
> $().ready(function() {
>loadMonth(currentMonth);
>$("button#prevMonth").click(function() { loadMonth(--currentMonth); });
>$("button#next
On Tue, Jan 19, 2010 at 1:45 PM, parot 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
> ideally what I need is 2 l
HRyeXRoaXMgPSA1NwoAPwVyaWdoAEAFABsLU2ltcGxlIGVjaG8gb2YgdmFyaWFibGUANggKAEgJLS0-AF8KOiA1NwBrDQCBDgkACQ8AexUic29tZXRoaW5nIGVsc2UiAExSAFERAIEXFQB3EQ&s=default
>
> Could you modify that to better explain what you mean, maybe?
>
> Nathan
>
>
--
View this message in context:
http://old.nabble.com/Simp
On Tue, Jan 19, 2010 at 11:32 AM, parot 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:
http://www.websequencediagrams.com/?lz=bm90ZSBsZWZ0IG
>> result,
>> in this case a simple php echo.
>
> I must misunderstand you...
>
> var trythis = 57;
> $.get("tryit.php", { trythis: trythis }, function(data) {
> $("#resultsGoHere").html(data); });
>
> Nathan
>
>
--
View this message i
On Tue, Jan 19, 2010 at 11:06 AM, parot 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 result,
> in this case a simpl
e tryit.php and then return 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.
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
> 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.
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 forma
> $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
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
$(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
Hi y'all,
Please look at this code:
$('ul#navigation li ul li>a').click(function(){
var active = $(this).text();
$('#artcontent p').empty();
$.ajax({
type: 'POST',
url: 'homepage/readarticle',
data: $(active).serialize(),
$.ajax({
type: "POST",
url: "mywebpage.aspx?
Arg="+args2,
contentType: "text",
data:"{}",
dat
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=1&b=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?
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 per
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.
21 matches
Mail list logo