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. Close using Java Script

Close using Java Script

Scheduled Pinned Locked Moved ASP.NET
javatools
3 Posts 2 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.
  • M Offline
    M Offline
    Mr Sam
    wrote on last edited by
    #1

    Hi All... I am using webparts and i have defined a verb and assigned it a client side event as its handler. Now i want to close this webpart using its id at clientside. I am giving the script im using to set its display to none. But it is not sufficient. I want to close it. function ClientClose(webPartID) { alert( "You clicked the following web part: " + webPartID + "." ) ; document.getElementById(webPartID).style.display="none"; }

    Bye

    S 1 Reply Last reply
    0
    • M Mr Sam

      Hi All... I am using webparts and i have defined a verb and assigned it a client side event as its handler. Now i want to close this webpart using its id at clientside. I am giving the script im using to set its display to none. But it is not sufficient. I want to close it. function ClientClose(webPartID) { alert( "You clicked the following web part: " + webPartID + "." ) ; document.getElementById(webPartID).style.display="none"; }

      Bye

      S Offline
      S Offline
      Sherin Iranimose
      wrote on last edited by
      #2

      Hi Sam, What is webPartID?(is it the ClientID of your web part?) Is it showing any javascript error?

      Sherin Iranimose

      M 1 Reply Last reply
      0
      • S Sherin Iranimose

        Hi Sam, What is webPartID?(is it the ClientID of your web part?) Is it showing any javascript error?

        Sherin Iranimose

        M Offline
        M Offline
        Mr Sam
        wrote on last edited by
        #3

        Yes im getting the client id of the webpart itself. and its style is also set as display =none but how can i close it so it may be available in design view Cutting short... Is there a way to implement close and minimize verb using javascript on client side. For instance you can see... www.smartjungle.com Please answer... -- modified at 7:29 Thursday 15th November, 2007

        Bye

        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