Query on tables link

  • bowling jeh
  • Newbie
  • Newbie
  • bowling jeh
  • Posts: 10

Post 3+ Months Ago

I've a table with 3 columns, my links are on both left and right, i wan to have the center column for my datas, how can i set the links so that when i click, onli the center column changes instead of the whole bottom page changes?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Kashidom Nenakh
  • Novice
  • Novice
  • Kashidom Nenakh
  • Posts: 21
  • Loc: Belgium

Post 3+ Months Ago

Instead of a table, try using an Iframe... maybe that' ll help you out...

If you though want to use the menu and the table, I' d suggest you use a seriously working JavaScript, and hide/display the contents with it...

For ex.
---
var dispOpt, styleOpt;

function checkBrowser() {
if (navigator.appName == "Microsoft Internet Explorer") {
styleOpt = ".style";
} else if (navigator.appName == "Netscape") {
styleOpt = "";
}
}

function activateMenuContents(nr, id) {
if (nr == 0) {
dispOpt = "none";
} else if (nr == 1) {
dispOpt = "block";
}
eval("document.getElementById('" + id + "')" + styleOpt + ".display = '" + dispOpt + "'; ");
}
---

Or something sortalike...
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

why use javascript when you can just use an Iframe - the page takes long enough to load without having to load the contents of every page into a div...

Also, why remove the .style for internet explorer - IE supports the style object/property (even IE5.0 if I remember properly. Have I missed something here?

I personally would let the whole page reload, with optimised code, but otherwise the best bet is to use an iframe for the page content if you want it to load separately.
  • Kashidom Nenakh
  • Novice
  • Novice
  • Kashidom Nenakh
  • Posts: 21
  • Loc: Belgium

Post 3+ Months Ago

Please notice:
if (navigator.appName == "Microsoft Internet Explorer") {
styleOpt = ".style";
} else if (navigator.appName == "Netscape") {
styleOpt = "";
}

The .style didn' t work in Netscape, IE supports it fine enough...
  • bowling jeh
  • Newbie
  • Newbie
  • bowling jeh
  • Posts: 10

Post 3+ Months Ago

erm, not too farmiliar with iframe, i build the site using dreamweaver
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Sorry didn't read quick enough, but the .style does work in netscape - I've used it on loads of scripts.....
Unless it's older versions you are talking about?

Ah.. can't help you with dreamweaver I'm afraid. Might be worth looking for dreamweaver and iframe on google, or for iframe in the dreamweaver help files.
  • potent
  • Novice
  • Novice
  • User avatar
  • Posts: 19
  • Loc: diego

Post 3+ Months Ago

i recently fell in love with iframes... im more of a graphic web designer.
so i was manipulating tables and frames... and then i found out about
iframes. really easy to learn, i found a tutorial at this site. really easy
to understand, as long as you can do CSS.


i use dreamweaver. you're going to have to go into code view...
  • Kashidom Nenakh
  • Novice
  • Novice
  • Kashidom Nenakh
  • Posts: 21
  • Loc: Belgium

Post 3+ Months Ago

The only time I used a program to was when I had to learn a specific amount of functions for JavaScript..

I learned all 27 functions in a week, and could retype the contents easily...

But yeah...
I have no idea what the newer Netscapes do... I know a guy who still uses MSIE 4...

So I kinda look what I do...
IF I' m not too lazy to do it, my program doesn' t support older IE versions... only the latest ones 5.5+
And nothing Netscape or Mozilla...

Oh, well... back to subject...

If you aren' t familiar with IFrames, I think you should have a look at pageresource.com and w3schools.com because there is many usefull stuff to learn...

That' s where I learned the basics...
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Well all modern browser support it - anyone still using IE4 needs a good slapping anyway :D

@ jeh, the best bet is to learn the html for it as well. I don't know if you do know some html already but it is definately worth learning some. The sites mentioned above should help you on your way. Good luck.
  • potent
  • Novice
  • Novice
  • User avatar
  • Posts: 19
  • Loc: diego

Post 3+ Months Ago

most definetly, learn html, because dreamweaver can only do so much.

i learnt this stuff on aol press, used frontpage and notepad. so my
choice to use dreamweaver is solely based on interface preference.


im not all that into staring at code. so the view both mode is excellent.



look up css, too... it's a wonderful tool. and it will be needed for iframes.
  • bowling jeh
  • Newbie
  • Newbie
  • bowling jeh
  • Posts: 10

Post 3+ Months Ago

thxz for the help, i manage to resolve it thru iframe, it looks better now
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Do the newer versions of Mozilla support iframe? Netscape, up to version 6 didn't. I don't use iframes because of platform incompatibility, but I'll admit I haven't actually checked if non-IE browsers have added it recently.

I agree on the older-browser users needing a good smack. It sort of depends on the job though. The sites I do for my day job have to need to be at least useable in older browers, as well as cross platform (Mac and Windows, at least). It's a trick, to say the least. Browser compatibility has come a real long way, with a lot of thanks to W3C in getting the standards on paper, but also to the people making the browsers for using them, to the extent they have anyway. (not going to get into my views on what's driving these standards.. that's another thread somewhere...). In any case, things that are relatively easy nowadays was a serious pain in the arse a few years ago because, really, you used to have to write your code twice...

.c

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: Veeramanikandan and 53 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.