i think i use .bind() instead of .live. because .live will add the event
everytimes it .html again.
Thanks
On Sat, May 5, 2012 at 2:22 PM, Min Hong Tan wrote:
> seems like .html has another problem. it will duplicate itself (even not
> seen in the screen).
> but it did
seems like .html has another problem. it will duplicate itself (even not
seen in the screen).
but it did post Number of times when i submit the form. still need to
struggling..bugs still
exist..
On Sat, May 5, 2012 at 2:17 PM, Min Hong Tan wrote:
> hi Oscar,
>
> I think
hi Oscar,
I think maybe it over some ajaxsetup({cache:false}) prevention when doing
replaceWith.
I have solve the problem by using ".html" instead of ".replaceWith".
Thank you for your help. very appreciate it .
Regards,
MH
On Sat, May 5, 2012 at 2:01 PM, Oscar Mederos
Hello Min,
On Saturday, May 5, 2012, 1:36:24 PM, you wrote:
> hi oscar,
> it works, but the problem in jquery load didn't refresh the page after I have
> loaded.
> it will always use the outdated html. I have tried to use ajaxsetup
> cache:false etc.
> but seems like once it loaded. if form
hi oscar,
it works, but the problem in jquery load didn't refresh the page after I
have loaded.
it will always use the outdated html. I have tried to use ajaxsetup
cache:false etc.
but seems like once it loaded. if form return validation error, even we
have close
and call jquery load again. it
hi oscar,
Thank you!!! that is awesome! i not even need to manipulate the form using
output data json!
thanks! but , $("xxx").live really is important...
Regards,
MH
On Fri, May 4, 2012 at 4:56 PM, Oscar Mederos wrote:
> Hello Min,
>
> On Friday, May 4, 2012, 10:14:46
Hello Min,
On Friday, May 4, 2012, 10:14:46 AM, you wrote:
> hi oscar,
> how do you make use of the particular method to be able to render
> the form only? as you said make use of the
> https://docs.djangoproject.com/en/1.4/ref/contrib/csrf/#ajax and
> it able to render the form instead of
hi oscar,
how do you make use of the particular method to be able to render the form
only? as you said make use of the
https://docs.djangoproject.com/en/1.4/ref/contrib/csrf/#ajax and it able
to render the form instead of page?
because i'm using kurtis method, if any validation error, i retrieve
Thanks! kurtis, it did helps me. but, to render the form once it return
validation error. i need to use javascript returned value and
manipulate the form.
is there any refresh form content instead of i need to base on returned
value and manual add the error message?
On Thu, May 3, 2012 at 1:16
Hello Kurtis,
On Thursday, May 3, 2012, 3:16:38 PM, you wrote:
> Here's something I do.
> I have a page where I include {% csrf_token %} and another field.
> Then I do a simple JQuery .post() call.
> Note, I've tried to pull out a bunch of stuff that isn't specific
> to the call. It's
Here's something I do.
I have a page where I include {% csrf_token %} and another field. Then I do
a simple JQuery .post() call.
Note, I've tried to pull out a bunch of stuff that isn't specific to the
call. It's untested in this form but should work. I tried to include
comments to help you
AJAX
You may require a separate view, but maybe not.
If you search for jQuery and AJAX there should be samples.
On 5/3/12, Min Hong Tan wrote:
> is there any sample that i can refer to do the ajax style form post
> without refresh the whole page?
> or backend form.save
is there any sample that i can refer to do the ajax style form post
without refresh the whole page?
or backend form.save validation without refresh my form?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
13 matches
Mail list logo