layer.load() function

From: Date: Mon, 26 Jun 2000 19:52:30 +0000
Subject: layer.load() function
Groups: php.db 
Request: Send a blank email to php-db+get-637@lists.php.net to get a copy of this message
This is slightly off the topic of php-db. I'd like to use the following technique to load the results of a php page into a hidden layer, and then access the variables via javascript. I couldn't get php pages to load so I just tried an HTML page to test and couldn't get it to work in NN or IE. Any hints? <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive 4"> <title>Welcome to Adobe GoLive 4</title> <style type="text/css"><!-- #layer { position: absolute; top: 16px; left: 16px; width: 581px; height: 339px; visibility: visible }--> </style> </head> <body bgcolor="white"> <div id="layer"> </div> <script language="JavaScript1.2"> if (navigator.appName.indexOf('Microsoft') == -1) { document.layers['layer'].load('answer.html'); } else { document.all['layer'].src = 'answer.html'; } </script> </body> </html> -- Randy Perry rgp systems Mac Consulting/Sales

« previous php.db (#637) next »