Closed Thread Icon

Topic awaiting preservation: inserting a table into a div (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7929" title="Pages that link to Topic awaiting preservation: inserting a table into a div (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: inserting a table into a div <span class="small">(Page 1 of 1)</span>\

 
c0s
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2000

posted posted 11-13-2001 08:55

i start out with:

<DIV ID="LEFT" style="position:absolute"></DIV>

and with

function populate_div(int){
document.all.LEFT.innerHTML = document.all.LEFT.innerHTML + webpage[int];
if(++int < webpage.length){setTimeout("populate_div(" + int +")",250);}
}
(where webpage is an array with some html in it)

i am trying to insert a <table> into the <div> now the html if it is hardcoded into the div looks fine but trying to add it after the fact i dont get the formatting is there a way to call a refresh on the div itself?

thanks

gabe

its just me
c0s

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-13-2001 14:06

c0s: I clearly have my questioning hat on today but its not clear why you'd want to do this. You are going to have to do quite a bit of work to make this cross browser compatible (although the experts here are up to the job of helping you on that front) and I'm just wondering if there might be a simpler way of doing what you want.

Emps


You're my wife now Dave

c0s
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2000

posted posted 11-13-2001 20:35

actually late last night i figured it out and i will figure out the cross-browser thing if i wish but i am not sure how important that is for me

any how the way i did this was there is a <div> on the right that i set the innerTEXT to each line and the <div> on the left i set the innerHTML to the innerTEST of the one on the right so i get the you-see-the-code-as-it-builds effect its pretty cool too, check it out at http://www.iamageek.org

its just me
c0s

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-13-2001 20:59

c0s: Sounds interesting but I get an error from the address http://4.60.98.52:79

Just to let you know.

Emps


You're my wife now Dave

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 11-13-2001 21:01

Just had to say that that is a crazy looking site man! With the script running along the side in a frame. Kind of neat but I wonder as Emps did, if there is a better solution to the problem?

c0s
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2000

posted posted 11-13-2001 21:01

with what browser? and what is the error?

its just me
c0s

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-13-2001 21:38

c0s: It looks like its at my end. Browser/platform: IE5/Win2k; Error:

quote:
ERROR
The requested URL could not be retrieved

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

While trying to retrieve the URL: http://4.60.98.52:79/

The following error was encountered:

Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.



Looks like I'll have to wait until I get home.

Emps


You're my wife now Dave

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 11-13-2001 22:26

cOs, I can't see the site either. I'm getting an HTTP 500 error when I try to open www.imageek.org

The cross browser way to update the contents of a div is as follows:

Say you have a div called "myDiv" and a content string called "content".

IE:
// You must add this new line character to fix a bug on Mac IE
content=content+"\n"
document.all.myDiv.innerHTML = content

NN4:
document.myDiv.document.writeln(content)
document.myDiv.document.close()

NN6:
document.getElementById("myDiv").innerHTML = content

Note that using innerHTML is *not* standards compliant but so many coders have become attached to it that NN6 decided to include it in their latest release anyway. I am also guilty of being too lazy to use the compliant method yet because innerHTML is just so convenient.

I hope that helps and I hope the link gets fixed so I can see your site.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-14-2001 02:49

Well I can access the site from home but I can't see anything that resembles CPrompt's description (IE5.5/Win).

Emps


You're my wife now Dave

c0s
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2000

posted posted 11-20-2001 21:35

Bugimus> it is iAmageek.org

others> well it seemed i was having issues with the method i was using to get info out of the db now that i changed that you shouldnt get any errors though sometimes the images dont load, just hit refresh. i will incorporate a parsing the in the asp so that the images get preloaded in a bit but for now this works

its just me
c0s

Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 11-21-2001 05:39

Just wanted to say I like the effect. It's really cool

« BackwardsOnwards »

Show Forum Drop Down Menu