ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Script Error in Firefox 14.0.1

January 10, 2013 1:14pm

Subscribe [1]
  • #1 / Jan 10, 2013 1:14pm

    Shiju S S

    39 posts

    <$cript type="text/javascript">
    $(window).ready(function(){
     $('#iframe_uploader', window.parent.document).height($('body').height()); 
    });
    <?php if($file_name):?>
     parent.add_product_image('<?php echo $file_name;?>');
    <?php endif;?>
    </$cript>
    <$cript type="text/javascript">
    $(document).ready(function(){
     $('.datepicker').datepicker({dateFormat: 'yy-mm-dd'});
    });
    </$cript>

    Both are not working in Firefox 14.0.1. Any script experts to help me. It is working in Google Chrome!!!!

  • #2 / Jan 12, 2013 4:02am

    Shiju S S

    39 posts

    <$cript type="text/javascript">
    var $jq = jQuery.noConflict();
    $jq(window).ready(function(){
     $('#iframe_uploader', window.parent.document).height($jq('body').height()); 
    });
    
    <?php if($file_name):?>
     parent.add_product_image('<?php echo $file_name;?>');
    <?php endif;?>
    
    </$cript>

    But the problem with date picker is still there.

    <$cript type="text/javascript">
     $(document).ready(function() {
      $("#enable_on").datepicker({ dateFormat: 'mm-dd-yy'});
      $("#disable_on").datepicker({ dateFormat: 'mm-dd-yy'});
     });
     
     $('form').submit(function() {
      $('.btn').attr('disabled', true).addClass('disabled');
     });
    </$cript>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases