![]() |
Getting unwanted "submit query" button on form - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Getting unwanted "submit query" button on form (/showthread.php?tid=52438) |
Getting unwanted "submit query" button on form - El Forum - 06-11-2012 [eluser]bazianm[/eluser] Hi, I am still new to CodeIgniter so please forgive me if this is a stupid question. I created a view which is intended to insert a popup form based on jqModal. The form works fine when I created it in a test environment but, when I integrate it into the CodeIgniter based app I am getting some weird results. It seems like a "submit query" button is being added and I know I didn't do it. Here's the code (I removed some of the extraneous code from it for brevity) Code: <div id="ex3a" class="jqmDialog"> Is there something I need to do to not have CodeIgniter add that extraneous button to the header of the dialog? Thanks in advance for any assistance you can offer. Getting unwanted "submit query" button on form - El Forum - 06-11-2012 [eluser]CroNiX[/eluser] Edit: It's not a CI problem. You're "save" button doesn't have a start tag. Getting unwanted "submit query" button on form - El Forum - 06-11-2012 [eluser]bazianm[/eluser] Maybe I am misunderstanding what you are saying but if you are saying I do not have the <input tag for the save button, i do. Code: <Input type="button" value="Clear"> That's the same code as in my original post, just formatted for easier reading... Did I misunderstand what you meant? If I did, I apologize... Getting unwanted "submit query" button on form - El Forum - 06-11-2012 [eluser]CroNiX[/eluser] This is copied from your first post and is missing the opening "<" for the "save" button: Code: <Input type="button" value="Clear">Input type="button" value="Save" onClick="SaveClicked()"> Getting unwanted "submit query" button on form - El Forum - 06-11-2012 [eluser]Glazz[/eluser] What CroNiX said was that Code: <tr><td></td><td><Input type="button" value="Clear">Input type="button" value="Save" onClick="SaveClicked()"></td></tr> You have a missing < for the second input.. But regarding your problem, i don't see anything weird that causes that you.. but are you closing all that divs you are opening? I only see one div close ( </div> ) at the end.. Getting unwanted "submit query" button on form - El Forum - 06-12-2012 [eluser]bazianm[/eluser] I can post the entire code here. I double checked all the divs and they are all closed properly. Besides, it would seem to me that CI has to bee adding it because when I run the dialog in a standalone .php file, it doesn't happen. It only happens when running within the framework. Getting unwanted "submit query" button on form - El Forum - 06-12-2012 [eluser]Glazz[/eluser] How can CI add buttons ? CI only does what you ask him to do. You are maybe doing something wrong, or applying a CI function wrong. Post the controller and view here, or post the website if possible so we can take a look at it. Getting unwanted "submit query" button on form - El Forum - 06-13-2012 [eluser]bazianm[/eluser] First of all, I agree that I must be doing something wrong. I just can't figure out what. I can't really post a page yet but I can (and have) posted screen shots of the dialog box. Here they are: The Dialog in the test environment: http://www.rdiaudit.com/NonCIVersion.png Dialog in CI http://www.rdiaudit.com/CIVersion.png As you can see, the issue is placement of the close button. The "Submit Query" seems to be some text (it is not a button of its own) that is being added to the close button. The offending line of code is this one: Code: <input type="image" src="close.gif" class="jqmdX jqmClose" /> If I remove this line, I lose my close button but the submit query issue goes away. It seems to me that the issue is most likely a CSS one (that's just my guess). Since the CSS files I added are the same between the test and production versions, the only difference has to be CI. Here's the additional CSS code: survey_filter.css (basically taken from the jqModal example) Code: div.whiteOverlay { background: url(inc/jqmBG.gif) white; } That's it. The jqModal .css is straight from the website. I note also that the buttons and entry objects have changed size... I wonder if that could be causing the problem but I don't know. Thanks for hanging with me on this. Getting unwanted "submit query" button on form - El Forum - 06-18-2012 [eluser]bazianm[/eluser] For anyone reading this thread, I figured it out. Turns out that it was a CSS problem and not a CI problem. There was a setting for the <input = "image" object that was causing this. I couldn't tell you what about that setting was causing the problem but i do know that removing that line from the style sheet fixed it. Thank you to everyone who responded and tried to help! |