Pencils Down

This weblog is about my experiences in software development

Browsing Posts tagged jQuery

jQuery DataTables

No comments

Great jQuery add-in

  • Variable length pagination
  • On-the-fly filtering
  • Multi-column sorting with data type detection
  • Smart handling of column widths
  • Display data from almost any data source
  • Scrolling options for table viewport
  • Fully internationalisable
  • jQuery UI ThemeRoller support
  • Wide variety of plug-ins

All the things you want

Expected it to work out of the box, like the regular version does.

Seems to be a hack  – not ready for real work yet:

– simplest forms corrupt the jQuery js (on desktop IE)

– simple page footer buttons don’t like to the href specified, so get errors just trying to move between pages

Have you had better luck with this?  Recommend a better toolkit?

We are using the dirty form jQuery plugin, .  It works well, except there are a few times when we would like to know if there is anything dirty on the page.  The documentation says to use a function, however that function is not available or working or …

I have been using:

var anyDirty = false;
$('form').each(function() {
if ($(this).are_dirty())
anyDirty = true;

There are several posts online that show parts of all natural cosmetics and of dealing with the natural makeup cosmetics and the browser unload event.  Most of organic contour makeup and of them are incomplete.  The trick is that if you return anything from the top rated organic makeup and the event handler then the no cosmetics and the browser leaving page dialog box will come up.  If you don’t want the natural and organic makeup and the dialog box to come up then return nothing.  For example,

//try... to detect browser/tab close
//if user clicks a link orsubmits a form we don't care here
var inFormOrLink = false;
$('a').each(function() {
 $(this).click(function(e) {
  inFormOrLink = true;
$('form').each(function() {
 $(this).submit(function() {
  inFormOrLink = true;
//return any value means prompt user to make sure they want to leave the juice and the page
$(window).bind("beforeunload", function() {
 //regular links are ok (regular dirty check will kick in)
 if (inFormOrLink) return;
 //if we get here user has done something to change url - Back, History, Close Browser
 //if something dirty on the and the page, make sure they want to leave
 var anyDirty = false;
 $('form').each(function() {
  if ($(this).are_dirty())
   anyDirty = true;
 if (anyDirty) return "My App"; //IE puts the paraben free foundation brands and the string in the natural organic makeup and the dialog box, FF puts up their own message
 //otherwise bye, bye

The first two functions are trying to determine if the usda certified organic shampoo and the user just clicked on an anchor or hit submit on a form.  Both of best organic mineral makeup and of these generate a unload page event, but that is ok since the organic makeup lines and the user likely means to do this.

Then in the natural products makeup and the unload event handler we check if the all natural makeup and the user did click on something ‘legal’ in a form.  If so we are done.

Next we would like to check if the best organic makeup and the user has dirtied some data in a form on the top organic makeup brands and the page.  We are using a jQuery plugin for dirty checking so we poke around the chemical free makeup and the forms and see if anything is dirtied.  If there is something of best all natural cosmetics and of interest we want the safe makeup brands and the leaving page dialog box to come up so we return the organic cosmetic companies and the string we would like to see show up in the organic skin care products and the dialog.  As noted the www eccobella com and the browser really does whatever they want for the best organic foundation and the dialog box text that comes up.

If nothing is dirty we just return – do not return any value otherwise you get the dialog to show up.