04-13-2011, 05:16 AM
[eluser]crimsun[/eluser]
Hello Friends,
I create one lightbox using jquery library
And the field inside the lightbox which is opened on click of button that are one inout box
And this is my controller code from where i can use validation
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
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><input type="text" name="title" id="title" value="<?php echo set_value('title');?>" ></p> <p><?php if(form_error('title')) echo form_error('title'); ?></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