Click to See Complete Forum and Search --> : Script works in Netscape but not IE


hugz
07-18-2003, 03:53 PM
I'm sure this has been asked a million times, but I have a script that works in Netscape fine, but not in IE, is there something that needs to be done? This is the script and the code I'm using (without the table)..
http://javascript.internet.com/navigation/easy-multi-page-navigation.html

Also, one silly question, the script code is pretty ugly to look at, everything is bunched together. When I seperate the lines, the script doesn't work. How can I put each link on a seperate line or can't it?

Thanks for any help.. its really appreciated. :)

pyro
07-18-2003, 04:54 PM
You're right. It's ugly. Do you have any server side languages available? You'd be much better of doing this with PHP or SSI...

.php
<?PHP
include ("file.htm");
?>

.shtml
<!--# include file="file.htm"-->
where file.htm is the list of you links, in regular HTML format (minus any head, body, etc tags...)

For future note, though, to split a document.write onto multiple lines, you do something like this:

<script type="text/javascript">
document.write ("This is a test<br>",
"as is this");
</script>

hugz
07-18-2003, 08:11 PM
guess I'll be using pearl! :(

rpanning
07-18-2003, 08:21 PM
PEARL!! I'd recommend PHP, very easy.

pyro
07-18-2003, 08:29 PM
Well, I already recommended PHP, so that's what I would use, but if you are going to use Perl, I think you're going to need something like this: http://perl.apache.org/embperl/

rpanning
07-18-2003, 09:44 PM
I was just emphasizing PHP but anyway. If your going to use PHP go to PHP Builder (http://www.phpbuilder.com/board/). They have great help there, awsome board, quick and curious. You won't get yelled at for asking a noob question, there's actualy a whole forum for noobs. I can help with any PHP questions as well if you'd like. Anyway, thats my 5 cents for PHP.

pyro
07-18-2003, 09:46 PM
No need to leave our beloved forums for PHP. We have a PHP section here: http://forums.webdeveloper.com/forumdisplay.php?s=&forumid=16

hugz
07-19-2003, 07:46 PM
Hubby and I figured it out last night. So far, its working on both IE and Netscape. Hopefully will keep working! Thanks for your help!