I've spent the better part of three days trying to wrap my head around UpdatePanel and _DoPostBack to find a solution to my problem with my infopath browser enabled form.
I have a simple script that displays a popup on a button click which works until a postback occurs (that's what I'm assuming anyway). I have a choice control (combobox) that when populated performs a postback. After the postback occurs I lose the button functionality described above until I refresh (F5). I'm looking for a solution client side that I can implement in a js file as I use CEWP's to implement my code. I'm not against making changes to the page itself using SPDesigner and advanced editing, however, I would like to keep it in the js file as much as possible.
If I can get past this problem it will open up way more options for me as I'm currently only running scripts on pages with no postbacks until the form is saved and exited.
I've tried dissecting this tutorial, however, I'm unsure how to implement:
I've tried numerous solutions to no avail such as:
jQuery autocomplete dissapears on postback and the JQuery .Live() / .On() solution.
See my simple script below: