Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. window status text

window status text

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    terjk
    wrote on last edited by
    #1

    Does anyone know how to set the window status. I have a checkboxlist. On mouseover on any of the item in the list, the description will be displayed at the window status.

    M B 2 Replies Last reply
    0
    • T terjk

      Does anyone know how to set the window status. I have a checkboxlist. On mouseover on any of the item in the list, the description will be displayed at the window status.

      M Offline
      M Offline
      Michael Flanakin
      wrote on last edited by
      #2

      Changing the window status is easy: window.status = 'new status'; Making it change while the drop-down list is expanded is another story. I haven't seen anything that does this. You can make it change when a value is selected, but that's all I know about. You might be able to find some sort of hack, but that might take a lot of playing around. Good luck. Michael Flanakin Web Log

      1 Reply Last reply
      0
      • T terjk

        Does anyone know how to set the window status. I have a checkboxlist. On mouseover on any of the item in the list, the description will be displayed at the window status.

        B Offline
        B Offline
        boogs
        wrote on last edited by
        #3

        A quick and dirty way to do this follows (not completely tested). Not sure if there's a better way. <div id="checkboxlist_wrapper"> <asp:checkboxlist ... /> </div> var wrapper = document.getElementById("checkboxlist_wrapper"); var checkboxen = wrapper.getElementsByTagName("input"); var input; for (var i = 0; i < checkboxen.length; i++) { input = checkboxen[i]; if (input.type == "checkbox") { input.onmouseover = showDescription; input.onmouseout = hideDescription; } } function showDescription() { // here you have to go up enough nodes to find a parent that is shared // between the radio button and it's label. not sure if that will be // one, two, or three levels. window.status = this.parentNode.innerText; } function hideDescription() { window.status = "": } -- aaron youngpup.net

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups