PDA

View Full Version : HTML, javascript, tables, and frames.


Stormtrooper
08-31-2003, 09:56 PM
I downloaded a web page template and the part to add text, like news, updates, ect. is done by manually typing it in, but it's rather annoying having to scroll through the whole file to be able to edit the text. As far as I can tell, the whole template is set up with tables, but it has some javascript and is a little confusing to me (I've not used much javascript before).
Well, anyway, I was wondering if it would be possible to load text from a different html or other kind of file to that area using javascript or something.
I tried frames, but it just doesn't work inside of a table all to well, and I don't know much javascript, so I havn't even tried that.

Oh, and keep in mind that this is for a geocities site, so I can't use php or anything better than notepad or something similar.

If that was too confusing to understand/read, I'll post a picture of what I'm trying to do and that'll explain it more.

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"

[This message has been edited by Stormtrooper (edited August 31, 2003).]

Aaron
08-31-2003, 10:13 PM
You could use <iframe (http://www.htmlhelp.com/reference/html40/special/iframe.html) src="something.html" height="100" width="100">You don't support iframe</iframe>. The compatibility is generally good, Netscape versions above 4 and IE at least version 4.

------------------

Stormtrooper
08-31-2003, 10:36 PM
Thanks, that halfway works though, I only need it to have a width setting, the height should be as big as the "something.html" file.

Is it possible to do that?

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"

[This message has been edited by Stormtrooper (edited August 31, 2003).]

Cool Matty
09-01-2003, 06:40 AM
Change height="100" to height="100%" ... or even leave it out.

------------------
"The future is not determined by a throw of the dice, but is determined by the conscious decisions of you and me."
I am addicted to ellipses!!! AHHH!!! ...

Stormtrooper
09-01-2003, 09:31 AM
If I leave it out, it makes it rather small, and if I put it at 100%, it takes up all the room like I wanted it to, but I can't scroll through the page.

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"

Cool Matty
09-01-2003, 10:05 AM
<font face="Verdana, Arial" size="2">Originally posted by Stormtrooper:
If I leave it out, it makes it rather small, and if I put it at 100%, it takes up all the room like I wanted it to, but I can't scroll through the page.

</font>

Add scrolling="auto" on there and see if that works.

If not, change "auto" to "yes". Auto is supposed to make the scrollbar appear if needed. Yes will make it appear even if it isn't needed. (It'll just grey itself out.)

------------------
"The future is not determined by a throw of the dice, but is determined by the conscious decisions of you and me."
I am addicted to ellipses!!! AHHH!!! ...

Stormtrooper
09-01-2003, 10:13 AM
Sorry, I didn't mean that page, the main one that I'm putting the other one in. There is supposed to be text at the bottom of the page (copyright info, ect.), but if the imbedded frame is at 100% I can't scroll to see below it.

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"

Aaron
09-01-2003, 02:09 PM
Can you force the footer row of the table to a certain height and then set the iframe to 100% height? Have you uploaded this anywhere yet?

------------------

SithGhost
09-01-2003, 03:47 PM
You could make your content file like this:


document.write("Hello!");


Save it as a .js file and then include it in a differant file by using this line of code:


&lt;script src="somefile.js"&gt;&lt;/script&gt;


------------------
"It has become appallingly obvious that our technology has exceeded our humanity."

-Albert Einstein

Stormtrooper
09-02-2003, 07:57 PM
OK, here's what I'm trying to do (image form, it's a large image, but small filesize):
http://www.geocities.com/l337trooper/design.txt
The area that has text,text,text, etc... is the only part that I want to change, the buttons on the lide and the top I want to stay the same. The reason I want to do this is because I won't have to copy the html code for the side links and the top header.
Is that possible?

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"

Pommy
09-02-2003, 08:22 PM
You can use JS...

------------------
Sigs are for n00bs.

[1337 FRNDS_Pommy (http://forums.massassi.net/cgi-bin/ubbmisc.cgi?action=getbio&UserName=FRNDS_Pommy) | 3.14 of 14 | » And-GTx2 (http://andgtx2.el3ctro.co.uk)]
Half-Life 2 Central (http://www.hl2central.net) - your definitive source for everything HL2!

Stormtrooper
09-02-2003, 08:45 PM
I would, but I don't know much/any JavaScript. I just started trying to learn it about a week ago.

------------------
Look for my current project, The Force in Your Soul.
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"