I just read a bit of it and that sound like what I am looking for
thank you very much you have been a great help
On May 19, 9:43 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote:
> Are you looking for template
> inheritance?http://www.djangoproject.com/documentation/templates/
>
> On 5/19/08, sebey <[EMAIL PROTECTED]> wrote:
>
>
>
> > and again just to say that the template is actually seperate from the
> > ajax pop-up window question sorry I should have made that more clear
> > so please keep'em coming
>
> > On May 19, 9:33 pm, sebey <[EMAIL PROTECTED]> wrote:
> > > ok but I may want enable it and disable it and change the message form
> > > time to time which is why I would like it go though django
>
> > > On May 19, 5:27 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote:
>
> > > > There are a number of ways to do this, you do not need a separate
> > template
> > > > within your template. You do not even need to use AJAX, as you seem to
> > be
> > > > wanting to return both the main content and the 'message' in one
> > > > response.) You could simply wrap your message html in a div that is
> > hidden
> > > > and use a javascript library (jqModal is a great jQuery plugin for
> > this,
> > > > btw, but there are others) to display the popup after the DOM is ready.
>
> > > > If you insist on using AJAX, you should create a separate view that
> > recieves
> > > > the AJAX request and returns a snippet of html, a JSON object, or an
> > XML
> > > > document containing the content of the message, or perhaps only the
> > dynamic
> > > > part of the message, to be processed by a javascript callback.
> > > > hth,
> > > > -richard
>
> > > > On 5/19/08, sebey <[EMAIL PROTECTED]> wrote:
>
> > > > > can you load a template in a template and I what at time to have when
> > > > > you go to my site and the first thing that should come up will be an
> > > > > ajax window with a message I wondering should I create a app fo r
> > this
> > > > > or is there other way as it may seem a bit of a waste of an app
>
> > > > > thanks
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---