BUG: IntelliSense Statement May Not Work with Inline Script (191046)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

This article was previously published under Q191046

SYMPTOMS

Sometimes the IntelliSense features of the editor (that is, List Members, Parameter Info, and Complete Word) do not work when you are composing inline script.

CAUSE

This issue arises when the HTML tags of the element for which you are composing inline script have not been fully composed. For example, if you are attaching inline script to the onclick event of a button element, both the opening and closing <button> tags need to exist before IntelliSense can work.

Also, when you compose inline script for an element, IntelliSense may not work if the element has not been assigned a name or ID.

RESOLUTION

Before you compose inline script for an element, make sure that the HTML tag is properly composed and that any required closing tags are present. Also, make sure that the element has an ID. Additionally, if you want to enclose the inline script within quotation marks (either single or double quotation marks), make sure that both the opening and closing quotation marks exist before you start to type any script.

STATUS

This behavior is by design.

MORE INFORMATION

Here are some examples in which IntelliSense does not work:
  • Missing closing angle brace, and missing </button> tag:
          <button id=myBtn onclick=
    					
  • Missing </button> tag:
          <button id=myBtn onclick="   ">
    					
  • Missing id:
          <button onclick=  >Push</button>
    					
  • Missing closing quote:
          <button id=myBtn onclick='  >Push</button>
    					
Following is an example that does work:
   <button id=myBtn onclick='  '>Push</button>
				

Steps to Reproduce Behavior

In Source view, type the following text in the body of an HTML page:
   <button onclick="window.
				
RESULT: The List Members dialog box does not appear.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbDSupport kbide KB191046