There's nothing you can do there

function report(event)

gives Intellisense no clue what type of object "event" is

suggestion: move on past this issue

or post here
http://forums.asp.net/1112.aspx

but you're going to get the same answer

On Mar 26, 4:30 am, simonxy <enki...@gmail.com> wrote:
> I have the following code:
>
> <html>
>   <head>
>     <title>Hover example</title>
>     <link rel="stylesheet" type="text/css" href="hover.css">
>     <script type="text/javascript"
>             src="../scriptsNew/jquery-1.3.2.js"></script>
>     <script type="text/javascript">
>         function report(event) {
>             $('#console').append('<div>' + event.type + '</
> div>').stop;
>             event.stopPropagation();
>             //alert( event.isPropagationStopped());
>       }
>
>       $(function() {
>           $('#outer1')
>          .bind('mouseover', report)
>          .bind('mouseout', report);
>           $('#outer2').hover(report, report);
>       });
>     </script>
>   </head>
>
>   <body>
>     <div class="outer" id="outer1">
>       Outer 1
>       <div class="inner" id="inner1">Inner 1</div>
>     </div>
>     <div class="outer" id="outer2">
>       Outer 2
>       <div class="inner" id="inner2">Inner 2</div>
>     </div>
>     <div id="console"></div>
>   </body>
> </html>
>
> When an event handler is fired, an instance of a class named Event is
> passed to the handler as its first parameter.
> Where should I declare it? Do you have any idea? This eample is from
> the book.
>
> thank you,
> Simon
>
> On Mar 25, 3:38 pm, MorningZ <morni...@gmail.com> wrote:
>
> > Without more code it's hard to help, but I could venture a guess that
> > where you are in your code that Intellisense has no idea what the type
> > of variable/object "event" is
>
> > to help understand that, take this sample:
>
> > var s;
>
> > if you went to do something with "s", the compiler has no idea what
> > kind of object "s" is... so typing "s." results in no Intellisense
>
> > now, if you said:
>
> > var s = '';
>
> > then typing "s." results in all the things you can do to a string
>
> > saying:
>
> > var s = 0;
>
> > results in Intellisense for numeric objects
>
> > So if Studio has no idea what "event" is (and this is your code that
> > needs to specify it!!), then it can't provide help
>
> > On Mar 25, 5:38 am, simonxy <enki...@gmail.com> wrote:
>
> > > Hi, I copiedjquery-1.3.2.js andjquery-1.3.2-vsdoc.js files into the
> > > same directory and intelisense works, but not in complete. For
> > > example, I don't have almost any properties and methods of event
> > > object, like event.stopPropagation() or event.isPropagationStopped()
> > > and similar.
> > > Why intelisense of event object doesn't work?
>
> > > Thank you for your answer,
> > > Simon- Hide quoted text -
>
> > - Show quoted text -

Reply via email to