faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

44 of 60 people (73%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

I want to use window.replace() to replace php3 files . This function works fine if the file is html, but doesn't work with php3 files.

Jun 22nd, 2001 15:24
John Marc, Nitin Bhopale,


The proper syntax is location.replace()
Make sure you are using proper URL conventions:
location.replace('./phpscript.php')
Also be aware that if this is in an html file, it is important that the 
HTML file was referenced as 
host://htmlfileContainingReplaceUsingPhp.html
and not
C:\htmlfileContainingReplaceUsingPhp.html