02-10-2004, 06:03 PM
Hey, I was just wondering if it would be possible to use something like the document.write command to wite HTML into one file from another.
I have a forum that I work on and I wanted to add more pages to that without putting that actually on the server, but it had cookies that I need to use so it needs to be on the server at the same time. So if anyone could help me that would be great.
Could you provide some additional detail on what you are trying to do? Is this dynamic content you are trying to achieve?
02-11-2004, 12:29 AM
What I've been working on as of late is making a way to write into a blank page (by adding in the rules section with nothing in it) and depending on variables I send the page will call on code to write in (i.e. HTML) from an external file. That way I can make different webpages on the same page depending on the script.
I want to do this because of another script I have on the forum that changes the style of the entire forum itself. The forum saves the chosen "skin" into a cookie so I can't run the other pages on a different server since it won't have the cookie information. So I came up with this idea.
I just thought of a way I could do it. I'd like to know if there is a better way though.
I know that's not the correct way to call an external script but you get the idea. Anyway inside that code would be an HTML file with a documet.write(" at the top and a ") at the end. Would that work?? does the write method allow enters??
02-11-2004, 05:28 AM
Why not do it on the server side?
02-11-2004, 08:36 PM
I can't since it's not on my server. the Invision free forum is hosted on a server I can't touch