sandoys
Members
-
Joined
-
Last visited
Reputation Activity
-
sandoys reacted to lesshardtofind in PHP form to modal. I cant run my modal if PHP code is in it, but if no PHP code my modal works corectly. Need help. Im new here.My console logs that
$.fn.modalmanager is undefined in form.php line 136
As for your php unless you post the code I can't really look at it.
You also have an extra closing </script> tag on line 183
The fact that your $.fn.modalmanager is undefined means that your include source is wrong. I was able to get rid of this error by downloading your source code and then downloading modal-manager from github at https://github.com/jschr/bootstrap-modal/
I then replicated their file structure around my project and the error message went away.
Your loop through datasource does not ever run. You can find this out by putting a alert message or console log inside of that loop and noticing you never get the alert or console.log. This seems to be what is ultimately not populating your text array, but I can't know for sure.
It would be 100% easier to help you if you would
A. Describe your expected behavior,
B. Describe the behavior you are getting,
C. What you tried to do so far to fix it.
Sorry I couldn't help more. Good luck.