Click to See Complete Forum and Search --> : Function call happening 50% of the time


Pselus
04-14-2003, 03:29 PM
I'm not sure if this is where I should go, but I'm pretty sure it's a javascript problem.
I have a buttonclick that calls 2 functions
here's the code:
<BUTTON id="btnPrimary" onclick="__doPostBack('RunPrimary', this.location;PostifMainBack();" type="button">

this is an ASP.NET application so the __doPostBack sends information back to the page and basically posts a form. Immediatly after the page reloads it should call PostifMainBack. The problem is that it only does this half the time (not an exact number) No matter what the criteria on the page (i.e. if I check a checkbox then click my button there is a 50% chance it won't work even if it worked under the exact same conditions right before this)

Pselus
04-14-2003, 05:33 PM
I'm pretty sure that that is NOT my problem see I was typing that message from my computer and looking at what was in the code on a laptop next to me, so that's mosty likely a transfer mistake...it wouldn't work at all if that parenthesis wasn't there

Pselus
04-14-2003, 06:59 PM
yes I actually would agree with you normally. I tried the 2 function thing on a whim and it worked perfectly (or so I thought) and now I'm too deep (i.e. it's for a project due 2 weeks ago) and there is NO WAY to change how it's done. What I need to do is find out why it works half the time.

Pselus
04-14-2003, 08:35 PM
thx for the help dave...we're talking to the client and are going to hafta sacrifice some functionality.