Welcome Guest, Not a member yet? Register   Sign In
Form validation error message not suport to lightbox
#1

[eluser]crimsun[/eluser]
Hello Friends,

I create one lightbox using jquery library

Code:
<!--  for lightbox shouts -->
<link href="<?php echo base_url();?>templates/default/css/Assets/LightFace.css" rel="stylesheet" type="text/css">
[removed][removed]
[removed][removed]
[removed][removed]
[removed]
window.addEvent('domready',function(){
document.id('shouts_now').addEvent('click',function() {
light = new LightFace.IFrame({ height:400, width:500, url: '<?php echo base_url();?>sample/post', title: 'Shouts!' }).addButton('Close', function()
{
light.close();
},true).open();
});
});
[removed]
<!--  shout light box ends -->

And the field inside the lightbox which is opened on click of button that are one inout box

Code:
<p>&lt;input type="text" name="title" id="title" value="&lt;?php echo set_value('title');?&gt;" &gt;&lt;/p> <p>&lt;?php if(form_error('title')) echo form_error('title'); ?&gt;</p>


And this is my controller code from where i can use validation

Code:
$this->form_validation->set_rules('title','lang:title_val','required|trim|xss_clean|min_length[8]');

so please let me know is this form_validation library is not applicable to lightbox ...

Is anyone having a proper working lightbox code so please provide me...

Thanks in Advance




Theme © iAndrew 2016 - Forum software by © MyBB