46

I have found myself more confused than a chameleon in a bag of skittles because I can't figure out why my ajax(beginform()) won't fire off any of the JS functions I write.

Did my Googles and that didn't help. Verbally abused my monitor and rubber duck, didn't help. I've got a blood sacrifice to the Javascript gods scheduled for tomorrow. Maybe that'll work.

Comments
  • 18
    *more confused than a chameleons in a bag of skittles*
    😂😂😂
  • 4
    Did you try restarting your computer 😏
  • 2
    @liammartens Yep. Tried that. I've just settled with the realization that I seem to have fumble fucked myself into oblivion on this one.
  • 0
    @IWriteCodeYay have you tried with $.ajax(beginform) without the parenthesis for beginform?
  • 1
    @simonebogni If this works I'm pretty sure he's gonna shoot himself :D
  • 0
    Works on my machine.
  • 1
    @simonebogni It just doesn't call the OnSuccess function. The controller fires like it's supposed to. However, much like the last few girlfriends I had, I've taken the liberty and pleasure of making it much more complicated than it ever needed to be.

    It's a razor Ajax form that's inside of a partial view that I'm rendering alongside other partials on a view.
  • 0
    Works as intended. Implementation-defined behavior.
Add Comment