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. onclick

onclick

Scheduled Pinned Locked Moved Web Development
javascripthelp
6 Posts 4 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.
  • Y Offline
    Y Offline
    yasBinder
    wrote on last edited by
    #1

    Hi, I am trying to call a javascript function on the onlick event of a button. status is a function in javascript in the same page. There is an error: object does not support this action. I even tried all these forms: "javascript:status();" , "javascript: return status();" Thanks,

    G K S 3 Replies Last reply
    0
    • Y yasBinder

      Hi, I am trying to call a javascript function on the onlick event of a button. status is a function in javascript in the same page. There is an error: object does not support this action. I even tried all these forms: "javascript:status();" , "javascript: return status();" Thanks,

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      Have you tried: onclientclick="status()"? Sounds like you may have an error in your status() function.

      "We make a living by what we get, we make a life by what we give." --Winston Churchill

      modified on Wednesday, May 6, 2009 4:01 PM

      Y 1 Reply Last reply
      0
      • Y yasBinder

        Hi, I am trying to call a javascript function on the onlick event of a button. status is a function in javascript in the same page. There is an error: object does not support this action. I even tried all these forms: "javascript:status();" , "javascript: return status();" Thanks,

        K Offline
        K Offline
        Kaushal Arora
        wrote on last edited by
        #3

        Could you write your full aspx page code here. Regards, Kaushal Arora

        Y 1 Reply Last reply
        0
        • G George L Jackson

          Have you tried: onclientclick="status()"? Sounds like you may have an error in your status() function.

          "We make a living by what we get, we make a life by what we give." --Winston Churchill

          modified on Wednesday, May 6, 2009 4:01 PM

          Y Offline
          Y Offline
          yasBinder
          wrote on last edited by
          #4

          Yes, I have tried that. It does not matter what is in the status function. I have tried it even with a function that does not do anything. Please Help!!

          1 Reply Last reply
          0
          • K Kaushal Arora

            Could you write your full aspx page code here. Regards, Kaushal Arora

            Y Offline
            Y Offline
            yasBinder
            wrote on last edited by
            #5

            It is very long! But, this part is not related to the other parts.

            1 Reply Last reply
            0
            • Y yasBinder

              Hi, I am trying to call a javascript function on the onlick event of a button. status is a function in javascript in the same page. There is an error: object does not support this action. I even tried all these forms: "javascript:status();" , "javascript: return status();" Thanks,

              S Offline
              S Offline
              saanj
              wrote on last edited by
              #6

              (i) Use OnClientClick = "javascript:return status();" (ii) Check whether the javascript function is enclosed with the following block or not: If problem still persists then post the js function which you wrote.

              Either you love IT or leave IT...

              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