This is a discussion on "Text replace in a table cell on same page" within the Web Page Design section. This forum, and the thread "Text replace in a table cell on same page are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Text replace in a table cell on same page
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Text replace in a table cell on same page
I have a table-based layout and would like to change out some text in one of the cells with a simple hypertext link.
How is this possible without having the browser re-draw the whole page for each change? I am using GoLive 6 for layout. |
|
|
|
|||
|
You would have to use DHTML and a little Javascript to make the change. Specifically the .innerHTML property.
Post back if you need more information and include some details of what you're doing. |
|
|||
|
Solved it - I think!
Thanks Jeff.
But I think using an iFrame would solve the problem for me. Essentially I have a list of tv program schedules that change out and from what I have read, the iFrame solution is the one. Unless someone knows of any hidden dangers of using iFrames apart from incompatible browsers... |
|
|||
|
browser compatibility you say?
After further researsh I see that iFrames are basically proprietary to good ol' Microsoft so posting a little javascript for me would be appreciated Jeff!
|
|
|||
|
IFRAME is in HTML 4.01 @ w3.org and works fine with my FireFox. I don't know how far back w3 support goes back though. So,maybe it doesn't work with all older non-MS browsers.
I remember when IFRAME can out, it was first in MSIE 2.0 (I believe) and was a real pain to those who followed spec and were just trying to get frames in general under control. That said, I would use IFRAME for other purposes, but not for necessarily what you are doing this time. Just my 2 cents. |
|
|||
|
I'd need to know more about what you're trying to do, where the new information for the cell is coming from, how much stuff will be changing, etc.
iframes may or may not work for it depending on what exactly you're trying to do. |
|
|||
|
Jeff
I am looking to change out basically a short list of tv programs and times from day to day. In iFrames I would make each day a separate html file then call it into the frame. So essentially 7 different html text-only files with a width of 200px. All the files are in the same directory ie. normal website file protocol I could cheat and get viewers unable to view it to use a link to a full schedule page (ie all 7 days on one html file) |
|
|||
|
For that iframes probably would be the easiest thing.
|
|
|||
|
This may help you
Iframe might be solution
but first think about SEO point of view too. then decide what you want, and use dreamweaver , it may solve this problem easily.. |
|
|||
|
Hey guys, actually I've got a question along the same lines about text replacement within table cells. I've got a table with multiple rows and columns. The interaction I'm looking for is: double-clicking in the cell that is in the first column of a specific row shows/hides text in the 3rd cell of that same row.
What would be the easiest way to go about doing that? Any help and tips are appreciated. -Achaiah- |
|
|||
|
That would most easily be done with a little CSS and Javascript. Using the onclick event to set the .display CSS to .none or .show is one way. There's another post around here related to that: http://www.webforumz.com/help-web-page-4590.html
If you need more specific help post back, maybe start a new thread on it. |
![]() |
| Tags |
| text, replace, table, cell, same, page |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| putting a forum into a table cell? | GeekyBabe | PHP Forum | 9 | Jan 30th, 2008 09:45 |
| Horizontal drop down in table cell | gribble | JavaScript Forum | 1 | Mar 5th, 2007 20:31 |
| How to force table cell widths | AdRock | Web Page Design | 1 | Sep 7th, 2006 14:54 |
| Table cell not stretching | julie | Web Page Design | 3 | May 18th, 2006 01:48 |
| Table cell (NO)wrap? | ktsirig | Web Page Design | 4 | Sep 28th, 2005 19:49 |