PRB: Problem Submitting SOM Enabled ASP Pages Under Netscape Browsers (229615)
The information in this article applies to:
- Microsoft Visual InterDev 6.0
This article was previously published under Q229615 SYMPTOMS
When using Netscape Navigator to view an Active Server Pages (ASP) page that uses the Scripting Object model, one of the following behaviors occurs:
CAUSE
These behaviors occur because the Scripting Object Model (SOM) uses a hidden form element, _method, to track whether a page redirection is necessary. When the _method element contains anything other than an empty string, the SOM interprets it as a page it to which it should redirect the user.
Under Netscape Navigator, the _method element may contain an erroneous value of " " (two spaces), which causes the SOM to attempt a page redirection to a relative path of " " (two spaces) on the Web server. Doing this causes Internet Information Server to attempt to retrieve the default page for the Web site, such as Default.asp, Default.htm, or Index.htm.
Depending on the configuration of your Web site, you may see one of the behaviors described above.
RESOLUTION
You can work around this problem by adding the following code to the
window_onload client event handler of the page exhibiting the behavior. This code checks for both a single space and a double space because different versions of the Netscape browser will insert either 1 or 2 spaces.
function window_onload() {
if (document.thisForm._method.value==" " | document.thisForm._method.value==" ")
document.thisForm._method.value="";
}
MORE INFORMATIONThe third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
Modification Type: | Major | Last Reviewed: | 4/22/2001 |
---|
Keywords: | kb3rdparty kbCtrl kberrmsg kbprb KB229615 |
---|
|