Results 1 to 4 of 4

Thread: [RESOLVED] RE: Window status Commands and Event Handlers (Javascript)

  1. #1

    Thread Starter
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Resolved [RESOLVED] RE: Window status Commands and Event Handlers (Javascript)

    Hi all,

    Got a wierd problem here with a relatively simple command and event handler.

    Designing a intranet using classic ASP and have a simple Javascript handler to mask the server pathway in the statusbar. The problem is that the status command does not show when the mouse is over the tag text, but shows when the mouse is out.

    Checked the CSS and this isnt the issue (Using inhereited CSS2 class framework), and used a standard sttring format rather than avariant array, so that isnt the problem. also tried using this tag format and problem persists onMouseOut= "JAVASCRIPT:window.status='helloworld';"

    Ive pretty much exhausted everything

    So i'll leave it to you guys to work this one out...

    VB Code:
    1. onMouseOver="Commerce()"
    2. 'thsi is the event handler in the html tag that triggers the Javascript function


    This is the javascript code that the command calls.

    VB Code:
    1. var StatusBar = new Array("Business and Personal E-Commerce Essentials",
    2.         "Home and Business Networking Essentials",
    3.         "Business and Enterprise Infra-Structure Essentials",
    4.         "Home Computing Essentials",
    5.         "Business Computing Essentials",
    6.         "Application Architecture and Design Essentials",
    7.         "Software and Systems Development Essentials",
    8.         "Consulting xxxxxx xxxxxx xxxxxx",
    9.         "")
    10.  
    11. function Commerce() {
    12.    
    13.     window.status=StatusBar[0]
    14. }
    15.  
    16. function Clear_status() {
    17.    
    18.     window.status=StatusBar[8]
    19. }

    now as you can see. Abolsutely nothing wrong with this at all. So why the F***K does it not work properly!!!!

    Cheers all

    Kai
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Window status Commands and Event Handlers (Javascript)

    The onmouseover event must return true; otherwise the events default action will kick. Adding this will solve your problem:
    Code:
    onmouseover="Commerce(); return true;"
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: Window status Commands and Event Handlers (Javascript)

    Hi.

    BONZA!!!!

    I did add this to the function itself, but to no avail, but this worked.

    rep points duelly added

    cheers

    Kai
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: [RESOLVED] RE: Window status Commands and Event Handlers (Javascript)

    The code inside the event handler, is the same as declaring a function:
    Code:
    function onmouseout
    {
        Commerce(); 
        return true;
    }
    So if the function itself returns true, you need only do this:
    Code:
    onmouseover="return Commerce();"
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width