James Owers

Flexigrid with asp (version 2)

After some users reported problems using my flexigrid with asp and IE I decided to redo some of the code to fix it.

Basically the problem was that when the JSON code generated it is supposed to add a comma (,) to the end of every line apart from the last one. My code put a comma at the end of every line including the last one. Firefox realises this and fixes the problem while IE just dies and wont show the content. All I did was added a quick if statement to the end of the line that checks to see if it’s the last record retrieved from the database or not and sticks the comma on the end if it has to.

I’ve also been working with flexigrid at work as part of an application I’m making which populates the flexigrid with data users have entered using online forms and PDAs. This presented the problem that people dont always enter alpha numeric characters and flexigrid doesn’t seem to like this so I added a function called cleanup that will remove all non alpha numeric characters from your data before it kills flexigrid. This is also included in the new distro. And as a side note, I have had flexigrid working with 3500 records from a Sybase database a work without any problems.

Again, thanks to Paulo for creating flexigrid in the first place! And you can download the new distro of my asp backend here or see the demo here.

Tags: , , , ,

del.icio.us:Flexigrid with asp (version 2) digg:Flexigrid with asp (version 2) spurl:Flexigrid with asp (version 2) wists:Flexigrid with asp (version 2) simpy:Flexigrid with asp (version 2) newsvine:Flexigrid with asp (version 2) blinklist:Flexigrid with asp (version 2) furl:Flexigrid with asp (version 2) reddit:Flexigrid with asp (version 2) fark:Flexigrid with asp (version 2) blogmarks:Flexigrid with asp (version 2) Y!:Flexigrid with asp (version 2) smarking:Flexigrid with asp (version 2) magnolia:Flexigrid with asp (version 2) segnalo:Flexigrid with asp (version 2) gifttagging:Flexigrid with asp (version 2)

Leave a Reply