CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2002
    Location
    Somewhere over the rainbow
    Posts
    423

    VBScript & JavaScript

    heya guys, i wonder if u know how to fix this prob,
    i have a few <td> 's with a 'this.bgcolor=...' in them, it all worked fine in my asp page till i used vbscript function for buttons,
    once i opened a:
    <SCRIPT LANGUAGE=vbscript>
    <!--
    ...
    .
    ...
    -->
    </SCRIPT>

    my this.bgcolor line does not work and i get an error message : "object required: 'this'" ????
    how can i fix it ?
    thnx
    Bengi

  2. #2
    Join Date
    Jul 2002
    Location
    India
    Posts
    505
    VBscript does not support the this keyword...

    Anyhow, why are you saying this.bgcolor in you td's

    You could just have it as <td bgcolor="blue">

    Satish

  3. #3
    Join Date
    May 2002
    Location
    Somewhere over the rainbow
    Posts
    423
    i use the onmouseover/onmouseout javascript messages..
    Bengi

  4. #4
    Join Date
    Jun 2003
    Posts
    3

    Thumbs up

    just put javascript before 'this' like this:
    <td onmouseover='javascript:this.bgcolor=red'>

  5. #5
    Join Date
    May 2002
    Location
    Somewhere over the rainbow
    Posts
    423
    ok, thnx
    i think that we can use the 'ME.' if vb script exists?
    Bengi

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

Featured