Link to home
Start Free TrialLog in
Avatar of d_jedi
d_jedi

asked on

Nested with statement bug with Intellisense

I have noticed a bug with Visual Interdev:

try this

*****************SAMPLE PAGE*******************
<HTML>
<BODY>
<FORM NAME = "form">
<INPUT TYPE=BUTTON NAME="button" VALUE="CLICK ME">
</FORM>
</BODY>
</HTML>

*************************************************

try creating a script:

<SCRIPT LANGUAGE=JAVASCRIPT>
with (window.document)
   {
   with (form)
      {
      <CODE GOES HERE>
      }
   }


try typing anything in the area <CODE GOES HERE> that would use Intellisense (an alert box, for example).

The result?  Interdev crashes.

Anyone know of a fix for this?

My only workaround is to comment out the second with statement, write the code, uncomment, save and run.
Avatar of DreamMaster
DreamMaster

That's the problem of InterDev...it's Intellisense is nice to start out with, but as soon as you start nesting it gets confused...sometimes this means it crashes....sounds like the way you work around this is the best way possible...sorry to say but InterDev is not that good with it's intellisense...

Max.
Avatar of d_jedi

ASKER

That was not what I was hoping to hear :->

OK, then.. how do I shut the damned thing off?  

Oh, yes.. and how do I report bugs to Microsoft?
I get a crash also, W2K Pro SP2 Interdev SP5.  This bug is real annoying, it's like the old days of DOS where the crashes lose all your work.

My suspicion is this is a W2K bug rather than an Interdev bug, I saw crashes on W2K I never saw using Interdev on W98.

I keep hoping MS will fix this, when Interdev crashes I always wonder why I stick with this product.
ASKER CERTIFIED SOLUTION
Avatar of DreamMaster
DreamMaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you could also try:
<SCRIPT LANGUAGE=JAVASCRIPT>
var objFrm = window.document.formName;
// you can access the form elements by using objFrm.elementName... etc.
<CODE GOES HERE>
</script>

instead of
<SCRIPT LANGUAGE=JAVASCRIPT>
with (window.document)
  {
  with (form)
     {
     <CODE GOES HERE>
     }
  }

This question has been abandonned, if this question has been resolved by any of the comments above, please finalize by accepting the comment that helped you most...

If you still are having the same question and would like more help, let the experts know so they can help you finalize this question..

Thanks,
Max.
Normal comment part
------------------------------------------
I have been looking at this again, and found that there is NOT an option for turning intellisense off...so all d_jedi can do is just accept the limitations of Visual Interdev and live with that. I have looked all over newsgroups and MSDN and more, nowhere there is a reference for turning of Intellisense...which is stupid as it IS possible in VB and VC++...
------------------------------------------

This question appears to have been abandoned. A question regarding will be left in the Community Support area regarding its disposition; if you have any comment about the question, please leave it there.

A moderator will be asked to resolve the question. Unless there is any objection or futher activity, the recommendation will be to accept the answer of DreamMaster. (strange typing that in as a suggestion) :)

The link to the Community Support area is:
https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

In this case it is possible to accept this comment as an answer... :)

Regards,

Max
Per recommendation, force-accepted by
Netminder
Community Support Moderator
Experts Exchange