oh ok that wonderful thank you

On May 19, 9:41 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote:
> It is going through django. Maybe I do not understand your question.  A user
> requests the 'first' page of your site, django processes the requests
> creates whatever message you want dynamically, (via a database call,
> computation based on time/day/month/phase of the moon/tide/solar
> cycle/browser used/etc...) or just relies on a static message hardcoded into
> the template (or a mix of the two) and returns it.  Changing the message is
> as simple as updating a database record, modifying a function, or changing a
> snippet on a template, depending on where it is stored.
> -richard
>
> On 5/19/08, 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to