I can't figure what is wrong , because i receive a message "The requested content cannot be loaded. Please try again later."
<form action="<?php echo site_url('frontend/accelerator/|fltru:true|');?>" method="post" name="product_form" >
<input type="text" name="cod_bar" id="cod_bar" value="introduceti codul de bare" onClick="if (document.product_form.cod_bar.value == 'introduceti codul de bare') {document.product_form.cod_bar.value='';}" onBlur="if (document.product_form.cod_bar.value == '') {document.product_form.cod_bar.value='introduceti codul de bare';}">
<input type="text" value="introduceti cantitatea" name="qty" onClick="if (document.product_form.qty.value == 'introduceti cantitatea') {document.product_form.qty.value='';}" onBlur="if (document.product_form.qty.value == '') {document.product_form.qty.value='introduceti cantitatea';}">
<input type="submit" value="Insereaza" name="add_product" style="margin-left:5px; min-width:10px;">
<input type="submit" value="Cauta" **class="fancybox fancybox.button"** name="search_product" style="margin-left:5px; min-width:10px;">
</form>
In header I have something like this:
$(document).ready(function() {
$(".fancybox").fancybox({
width : 700,
'height' : 500,
fitToView : true,
closeBtn : true,
autoSize : false,
closeClick : true,
openEffect : 'elastic',
closeEffect : 'elastic',
'type': 'iframe',
helpers : {
overlay : {
closeClick : true,
css : {
'background' : 'rgba(58, 42, 45, 0.3)'
}
}
}
});
});
I wanna add the fact that on a link like this :
<a class="fancybox fancybox.button" href="something">bla</a>
, fancybox works properly.Thanks!