Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I set property values of Microsoft system.web.ui.webcontrols ?

    I'm trying to use java script to set property values of various Microsoft WebControls. I'm a new java script programmer and am just overwhelmed with material that i'm exposed myself the past few days, but can't seem to find, or understand how something so simple can be done.

    here is a js function in my code.

    txtRC is a Microsoft webcontrol.textbox
    btnRCLookUp is a infragistics webdatainput.WebImageButton

    on the buttons mouseOver event the following js function runs

    function btnRCLookUp_MouseOver(oButton, oEvent){

    document.Form1.txtRC.value = "45"; // This works fine.
    document.Form1.txtRC.ToolTip = "Some Text"; // The tooltip doesn't display

    }


    I have half figured out my problem... .ToolTip is not part of an element, but .Value is.....so what is the syntax to set the tooltip property? I don't mind if someone just points me to where in the manual the answers are.

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    document.Form1.txtRC.title
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for the response... but it didn't work. My tool tip was not set using .title

    I have a whole list of properties i want to set using java script, and was hoping that starting with the .tooltip would give me enough direction to find the correct syntax for things like setting the selected item in a drop down list.


  •  

    Posting Permissions

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