Microsoft KB Archive/175260: Difference between revisions

From BetaArchive Wiki
m (Text replacement - "<" to "<")
m (Text replacement - """ to """)
 
(One intermediate revision by the same user not shown)
Line 44: Line 44:
== SYMPTOMS ==
== SYMPTOMS ==


When using the InfoViewer to browse a page that contains a &quot;Window.Open,&quot; a new instance of the browser appears along with one of the following error messages:<br />
When using the InfoViewer to browse a page that contains a "Window.Open," a new instance of the browser appears along with one of the following error messages:<br />


<div class="errormessage">
<div class="errormessage">


Microsoft JScript runtime error<br />
Microsoft JScript runtime error<br />
[Line: xx] Invalid procedure call or argument&quot;
[Line: xx] Invalid procedure call or argument"


</div>
</div>
Line 61: Line 61:


Microsoft VBScript runtime error<br />
Microsoft VBScript runtime error<br />
[Line: xx] Object doesn't support this property or method: 'open'&quot;
[Line: xx] Object doesn't support this property or method: 'open'"


</div>
</div>
Line 72: Line 72:


The conditions that cause this behavior are as follows:
The conditions that cause this behavior are as follows:
* Client Side Script using the &quot;Window.Open&quot; command.
* Client Side Script using the "Window.Open" command.
* Browsing within the InfoViewer.
* Browsing within the InfoViewer.


Line 82: Line 82:
== RESOLUTION ==
== RESOLUTION ==


Use Internet Explorer to view the pages that calls the &quot;window.open&quot; method.
Use Internet Explorer to view the pages that calls the "window.open" method.


</div>
</div>
Line 99: Line 99:


<ol>
<ol>
<li>Add a new .htm file to an existing Visual InterDev project. Name the file &quot;default1.htm.&quot;</li>
<li>Add a new .htm file to an existing Visual InterDev project. Name the file "default1.htm."</li>
<li><p>Copy the following code and paste it into the file created in the previous step:</p>
<li><p>Copy the following code and paste it into the file created in the previous step:</p>
<pre class="codesample">      <INPUT TYPE=&quot;button&quot; NAME=&quot;Button1&quot; VALUE=&quot;Open other Window&quot;
<pre class="codesample">      <INPUT TYPE="button" NAME="Button1" VALUE="Open other Window"
         onClick=&quot;window.open('default1.htm', 'window',
         onClick="window.open('default1.htm', 'window',
         'scrollbars=yes,status=0,resize=0,width=625,height=369')&quot;&gt;
         'scrollbars=yes,status=0,resize=0,width=625,height=369')">
                     </pre></li>
                     </pre></li>
<li>Save the file.</li>
<li>Save the file.</li>
<li>Preview the above file in the InfoViewer. If you don't have &quot;InfoViewer&quot; set as your default browser within Visual InterDev, right-click the file in the &quot;FileView&quot; pane and choose &quot;Browse With,&quot; then &quot;InfoViewer&quot; from the Shortcut menu.</li></ol>
<li>Preview the above file in the InfoViewer. If you don't have "InfoViewer" set as your default browser within Visual InterDev, right-click the file in the "FileView" pane and choose "Browse With," then "InfoViewer" from the Shortcut menu.</li></ol>





Latest revision as of 11:07, 21 July 2020

Article ID: 175260

Article Last Modified on 5/2/2006



APPLIES TO

  • Microsoft Visual InterDev 1.0 Standard Edition



This article was previously published under Q175260

SYMPTOMS

When using the InfoViewer to browse a page that contains a "Window.Open," a new instance of the browser appears along with one of the following error messages:

Microsoft JScript runtime error
[Line: xx] Invalid procedure call or argument"

-or-


Microsoft VBScript runtime error
[Line: xx] Object doesn't support this property or method: 'open'"

NOTE: The Window.Open works as expected in Internet Explorer.

CAUSE

The conditions that cause this behavior are as follows:

  • Client Side Script using the "Window.Open" command.
  • Browsing within the InfoViewer.

InfoViewer is not capable of properly starting a new instance of itself from within the Visual Studio shell.

RESOLUTION

Use Internet Explorer to view the pages that calls the "window.open" method.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Add a new .htm file to an existing Visual InterDev project. Name the file "default1.htm."
  2. Copy the following code and paste it into the file created in the previous step:

          <INPUT TYPE="button" NAME="Button1" VALUE="Open other Window"
            onClick="window.open('default1.htm', 'window',
            'scrollbars=yes,status=0,resize=0,width=625,height=369')">
                        
  3. Save the file.
  4. Preview the above file in the InfoViewer. If you don't have "InfoViewer" set as your default browser within Visual InterDev, right-click the file in the "FileView" pane and choose "Browse With," then "InfoViewer" from the Shortcut menu.


REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:

Keywords: kbbug kbide KB175260