On 5 mei, 05:26, Gboro54 <[EMAIL PROTECTED]> wrote:
> Hi everyone...I want to use frames in a web app i am building..I have
> a display.html that has the frames sets and takes 2 other html
> files...the one problem is the other 2 pages have variables binded to
> them...I am not sure how to get this to work...any advice would be
> apprciated...Thanks(code provided below for the html)
>
> sidbar.html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
>   <title></title>
>   <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
> </head>
> <img height="100" alt="The Bass Log Online" src="{{location}}"
> width="100" align="left">
> </body>
> </html>
>
> main.html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
>   <title></title>
>   <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
> </head>
> <body>
> <div align="center">
>
> <h1>
> <img src="{{location}}" alt="The Bass Log Online" width="100"
> height="100" align="left"/>
> <img src="{{ad}}" alt="The Bass Log Online" width="400" height="75"
> align="top"/>
> </h1>
> <h1>Welcome to Bass Log Online</h1>
> </div>
> </body>
> </html>
>
> display.html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
>
> <frameset cols="20%,80%">
>
>   <frame src={{side}}>
>   <frame src={{main}}>
>
> </frameset>
>
> </html>

Just use urls in your display.html file, and let urlconf.py translate
those to views. Within those views, you can render your template &
pass along your variables.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to