Text replace in a table cell on same page

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 18th, 2005, 04:31
Junior Member
Join Date: Aug 2005
Location: New Zealand
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Aug 18th, 2005, 07:10
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3 (permalink)  
Old Aug 18th, 2005, 08:16
Junior Member
Join Date: Aug 2005
Location: New Zealand
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Reply With Quote
  #4 (permalink)  
Old Aug 18th, 2005, 09:41
Junior Member
Join Date: Aug 2005
Location: New Zealand
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #5 (permalink)  
Old Aug 18th, 2005, 10:09
Junior Member
Join Date: Aug 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6 (permalink)  
Old Aug 18th, 2005, 18:16
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #7 (permalink)  
Old Aug 18th, 2005, 21:30
Junior Member
Join Date: Aug 2005
Location: New Zealand
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Reply With Quote
  #8 (permalink)  
Old Aug 18th, 2005, 22:54
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
For that iframes probably would be the easiest thing.
Reply With Quote
  #9 (permalink)  
Old Sep 22nd, 2005, 07:14
New Member
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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..
Reply With Quote
  #10 (permalink)  
Old Sep 28th, 2005, 02:47
New Member
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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-
Reply With Quote
  #11 (permalink)  
Old Sep 28th, 2005, 05:32
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Tags
text, replace, table, cell, same, page

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 10:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43