|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Href target
This may sound ridiculous, but can you have a menu choice open in a table. Lets say I have table "a" with nested tables "b" and "c" , "c" being my main body with text and info, can i have data from my menu bar open in "c" or do I just have to make a bunch of pages with similar parts?
|
|
#2
|
||||
|
||||
|
tables as frames?
I'm unclear as to what exactly you're asking. You want to use nested tables for page layout that have the behavior of frames?
Niether tables nor frames are not such a good idea. You could use javascript to manipulate the DOM to change page content, or better yet, use a server-side script to create dynamic page content. |
|
#3
|
|||
|
|||
|
yes, you hit it on the head, i wanted to make a nested. table act like a frame. I'm pretty new to all of this , so I really have no clue what you mean by a server side script, but I have been reading the other forum about using css instead of tables, but again don't ahve the knowledge for that yet. So back to using crusty old style code.
|
|
#4
|
|||
|
|||
|
Okay, I've gone ahead, with a lot of help from various articles and such, and made a table less site using CSS and divisions, so can I treat one of these divisions like a frame and have a url open in it as a target or just have abunch of pages set up the same?
|
|
#5
|
||||
|
||||
|
pages
If the main idea for wanting to do this is so that all the pages within the site look consistent, that's a good thing. But as for not replicating code, there are various approaches. You could use javascript to dynamically change the content, but what if the user doesn't have javascript? Remember, search engines don't have javascript either, so they'll only see one page of your site. It's best to only use javascript to make something better for those with it, not to make the site impossible for those without. Server-side scripting languages, like PHP, can re-use code that's the same in each page, and create a new page dynamically using the different code where needed. For example a page could look something like
PHP Code:
But if you're still new to this, and your site doesn't have lots of pages, it probably would be best for you just make individual pages that look consistent, get your site live, and learn more as you can get to it. |
|
#6
|
|||
|
|||
|
Thanks for the reply, I have used PHP before, but mostly just for forms, didn't know it could be used like that. I'll take your advise and just make a bunch of similar pages an play later thanks again for the ideas and direction.
|
|
#7
|
|||
|
|||
|
This is a different question on the same topic. With the advent of tabs, is there a way to target in a new tab or would it just be self, and you would have to adjust your browser settings?
|
|
#8
|
|||
|
|||
|
Ok for not redoing all of your code i sugest makeing the main table (the one that will change) an Inline Frame (IFrame) that will make it were you only have one page with all your navigation and what not then when they select a link the i frame changes and the nav and what not stays the same this will stop the repetitive codeing
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Href target |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|