Welcome Guest, Not a member yet? Register   Sign In
Jqmodal and CI
#1

[eluser]Unknown[/eluser]
I'm able to display a modal window containing a simple form using jqmodal but unable to display the result of the ajax request in it (database request).

a) html file:

<div>
<a href="&lt;?php echo base_url();?&gt;welcome/form" class="ex2trigger" id="forgotten_p">Forgotten password</a>
</div>
[removed]
$().ready(function() {
$('#ex2').jqm({ajax: '&lt;?php echo base_url();?&gt;welcome/form', trigger: 'a.ex2trigger',onLoad});
});
[removed]
<div class="jqmWindow" id="ex2">
<img src="&lt;?php echo base_url();?&gt;images/interface/preloader.gif" alt="loading" />
</div>


b) form.php (initially loaded by welcome/form and displayed in the modal window):

&lt;form name="password" action="&lt;?php echo base_url();?&gt;welcome/password"&gt;
<a href="#" class="close_btn jqmClose">Close</a> <span class="title">Information</span>
<div id="yourpassword">
<h3>Password<span id="yourinfo_subtitle" class="subtitle"></span></h3>
<fieldset>
&lt;input name="email" type="text" id="txt_email_password" value="Email"&gt;
</fieldset>
</div>
<a href="#checkout">submit</a>
&lt;/form&gt;

Could someone help me ?

Sylvie




Theme © iAndrew 2016 - Forum software by © MyBB