thank you to all for your support. I learnt my lessons. I have to go back to AJAX.
Thanks again for your help. It was much needed. On Oct 12, 8:42 pm, william ratcliff <william.ratcl...@gmail.com> wrote: > I think the OP should ask his manager why they wish to avoid using ajax. > For example, is it sufficient if the page degrades gracefully for those not > running javascript? > > On Wed, Oct 12, 2011 at 11:40 AM, Tom Evans <tevans...@googlemail.com>wrote: > > > > > > > > > On Wed, Oct 12, 2011 at 3:24 PM, Javier Guerra Giraldez > > <jav...@guerrag.com> wrote: > > > On Wed, Oct 12, 2011 at 9:17 AM, lankesh87 <lankesh...@gmail.com> wrote: > > >> I am developing a web application where i need ajax like features. > > >> But I don't want to use ajax, so my question is- "is there any way to > > >> perform ajax like functions in django?" > > > > that kind of specifications (ajax-like but no ajax) sound very weird > > > to me. > > > It's definitely weird, but its not crazy. I'm almost certain the OP > > does want to use AJAX, but there are AJAX-like techniques that we used > > to do AJAX-like things before XMLHttpRequest existed. > > > The most common way is to use javascript to programmatically load > > content into a hidden <iframe>. The returned content should have a > > <script> tag at the end of the content that runs after the content has > > been loaded to achieve whatever it is that you wanted to achieve, eg > > move the loaded content into a visible part of the webpage, or replace > > some content with the loaded content. > > > You can also use the existence of javascript to make the iframe > > visible/not visible. I've used this technique to load content > > asynchronously to the main page, which then works regardless of > > whether the user has javascript enabled - if it isn't enabled, the > > content loads into the (now visible) iframe, otherwise if javascript > > is available it is loaded into the (invisible) iframe, and javascript > > used to move the content from the iframe to the appropriate part of > > the main page. > > > It's not AJAX, but it is AJAX-like. It's also bloody stupid, use AJAX. > > > Cheers > > > Tom > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.