On May 1, 5:47 am, Pythoni <[EMAIL PROTECTED]> wrote: > Julio and James, > Thank you both for your help. > I know that frames could be useful to help solve my problem but... > > Let's suppose this: > > <iframe name="Authors" src="DAuthors.html" width="100%" > height="30"style="height:10.8em" marginwidth="0" marginheight="0"> > </iframe> > > <iframe name="Descriptions" src="DDescriptions.html" width="100%" > height="60"style="height:4em"marginwidth="0" marginheight="0"> > </iframe> > > where you can see two frames( iframes).One Authors ( list of > authors)and the other Descriptions( their replies). > As you can see each frame must consists source page DAuthors.html and > DDescriptions.html, that should be generated on fly( dynamically) > according to user's demand( depending on what he will want to see).
What I would suggest, if you're using IFrames, is that you use different views for those "pages", and never call them from the site directly, except as iframes in another template. For example, you might have the following template files: DAuthors.html DDescriptions.html Display.html Display.html would have the template code needed for the view to work, including the iframe tags, which would look something like: <iframe name="Descriptions" src="ddescriptions/context"> along with any attribute tags. The "context" would be something like a record ID for the forum or whatever you're using this for. My only concern is that you seem to be wanting to have it change the Descriptions when you select an author? The best way (in my opinion) to do this, is use a little AJAX and use DIVs instead of IFRAMEs. Something like... <div id="author-list"> {{ code to loop through authors }} </div> <div id="description-list> {{ code to loop through descriptions }} </div> And just have any links in the author list make AJAX calls that return replacement data for the description list. Again, this can be accomplished using "hidden" views - and I'm sure there's a way to use the databrowse feature in some way to make this easier. Does that make any sense? Django can do what I think you're looking for, but again, as others have said, your solution to the display issue is in HTML, not so much Django. Think of Django as the bricks, and the HTML as the paint job and some of the mortar work. It doesn't perform feats of HTML amazement, it performs feats of building and development amazement. HTH, Michael --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---