searchforsolutions

Just another WordPress.com site

Category Archives: AJAX

Shim Config for RequireJS and Slickgrid


“shim”:{
‘lib/jquery.event.drag’: [‘lib/jquery-1.10.1.min’],
‘lib/jquery.event.drop’: [‘lib/jquery-1.10.1.min’],
‘lib/slick.core’: [‘lib/jquery-1.10.1.min’,’lib/jquery.event.drag’],
‘lib/slick.grid’: [‘lib/jquery-1.10.1.min’,’lib/jquery.event.drag’,’lib/jquery.event.drop’,’lib/slick.core’]
}
})

Advertisements

JQuery Gotchas!


  • Always name you form elements apart from id. JQuery will not serialize when you call form element e.g. $(“form”).serialize().
  • Instead of alerts for modern browsers one can use console.log($(“#myform”).serialize()); ,which can be viewed in the console.

 

 

Will keep this updated!