Welcome Guest, Not a member yet? Register   Sign In
Jscript Conflicts
#3

[eluser]Shiju S S[/eluser]
The noconflict function in the code below is not allowing other functions to work: That is all I know.
Code:
<$cript type="text/javascript" charset="utf-8">
var $j = jQuery.noConflict();
var base_url = "&lt;?php echo base_url();?&gt;";

$j(function()

    {  



  function log( message ) {

   $j( "<div/>" ).text( message ).prependTo( "#log" );

   $j( "#log" ).scrollTop( 0 );
  }



  $j( "#tags" ).autocomplete({

  source: function(req, add){
  var base_url = "&lt;?php echo base_url();?&gt;";
  
       $j.ajax({

                    url: base_url + "searchbox/autocomplete",
    
                    dataType: 'json',

                    type: 'POST',

                    data: {fields:$j("#tags").val()},

                    success: function(data){

                        add(data);
      
                   }

                }); },

minLength: 0,

  select: function( event, ui )

                {

   log( ui.item ?

      "Selected: " + ui.item.value + " aka " + ui.item.id :

      "Nothing selected, input was " + this.value );

  }

  });

    });  

<$script>

Password strength checker function is
Code:
<$cript type="text/javascript">
  $(function() {
  $('.password').pstrength();
  });
<$cript>
Another Slider Function
Code:
<$cript type="text/javascript">
$(document).ready( function(){
  var buttons = { previous:$('#jslidernews2 .button-previous') ,
      next:$('#jslidernews2 .button-next') };    
  $('#jslidernews2').lofJSidernews( { interval:5000,
             easing:'easeInOutQuad',
            duration:1200,
            auto:true,
            mainWidth:684,
            mainHeight:300,
            navigatorHeight  : 100,
            navigatorWidth  : 310,
            maxItemDisplay:3,
            buttons:buttons } );      
});

<$cript>


Messages In This Thread
Jscript Conflicts - by El Forum - 09-17-2012, 03:01 PM
Jscript Conflicts - by El Forum - 09-17-2012, 04:59 PM
Jscript Conflicts - by El Forum - 09-18-2012, 12:01 PM
Jscript Conflicts - by El Forum - 09-18-2012, 01:30 PM
Jscript Conflicts - by El Forum - 09-18-2012, 01:45 PM
Jscript Conflicts - by El Forum - 09-18-2012, 02:29 PM
Jscript Conflicts - by El Forum - 09-18-2012, 02:41 PM
Jscript Conflicts - by El Forum - 09-18-2012, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB