Javascrip call interferes with OnClick settings

Discussion in 'Software' started by MindofZiggi, Jul 24, 2008.

  1. MindofZiggi

    MindofZiggi

    Joined:
    Jul 24, 2008
    Messages:
    2
    Location:
    Maidenhaed, UK
    Hi, I don't know if anyone can help but this problem is driving me nuts.

    In ASP.NET I have a grid of 9 ImageButtons, most of which have a function behind them started by the OnClick setting. One buttun need to open a new windows so I call a small bit of Javascript via the PostBackURL parameter. ALL is fine until you click the Javascript button, yes the new windows opens without a problem, but then after all the button on the page do the same as the Javascript button!!!

    Has anyone else seen this?
    Thanks
    MindofZiggi, Jul 24, 2008
    #1
    1. Advertising

  2. MindofZiggi

    MindofZiggi

    Joined:
    Jul 24, 2008
    Messages:
    2
    Location:
    Maidenhaed, UK
    The answer

    OK, well no one came up with the answer, but I get help else where so the solution is:-

    The error was because the dopostback method was trying to run a function on the asp page, instead of
    a client side javascript function, instead you should have used OnClientClick

    Thanks
    MindofZiggi, Jul 25, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. orion30

    Problem onClick event on Firefox

    orion30, Nov 7, 2004, in forum: Firefox
    Replies:
    0
    Views:
    2,688
    orion30
    Nov 7, 2004
  2. Amy Christensen

    Dial up modem interferes with phone line?

    Amy Christensen, Aug 10, 2004, in forum: Computer Support
    Replies:
    3
    Views:
    704
    Amy Christensen
    Aug 12, 2004
  3. df3c
    Replies:
    0
    Views:
    1,016
  4. mike2711@yahoo.com
    Replies:
    2
    Views:
    638
    Mitch
    Nov 15, 2005
  5. Grandpa Chuck

    Printer interferes with computer

    Grandpa Chuck, Jan 26, 2006, in forum: Computer Support
    Replies:
    25
    Views:
    843
    Liza Smorgaborgsson
    Jan 30, 2006
Loading...

Share This Page