The popup forms for adding records into webpages are so nice that I want to integrate them into one of my websites. All of my websites really. There seems to be a lot of gotchas while doing it.
I created a simple application that has nothing but a list form with an add popup. I then copied the add button from the xyz_list.php, all the javascript code, made the changes to my css style sheet and then copied the actual xyz_add.php file. I also moved the templates, classes, includes and scripts.
The issue is in some formatting.
- phprunner doesn't use a DOCTYPE and when I use any available DOCTYPE the popup add form in IE takes the entire width of the screen. It works fine in FireFox and Chrome. I have to use a DOCTYPE or the webpage won't display properly in all browsers, won't validate and the search engines won't like it any more.
- The tooltips.css has a BODY tag and this wants to over write my current style. Removing it works fine in IE but in Chrome and FireFox the popup box isn't sized correctly. Also changing it to the same font-size as my style sheet creates the same issue.
- When I close the popup, it changes the font size of my main webpage when using IE. This doesn't happen in Chrome or FireFox.
My questions are:
What am I doing wrong?
Is there even a good way to integrate just a popup form created in PHPRunner into existing webpages without redoing the entire webpage?
The module popup is really very nice and have a lot of advantages over using jQuery solutions.
Thank you. The product is really great and I'm impressed with the support on this forum.