Sep 5th, 2009, 9:12 PM
Hey guys,
Sorry for not responding sooner.
I just checked it out and it seems to work okay... however, there was one thing that wasn't terribly good: the function won't take into account the CURRENT submission. In other words, when you first hit the page & run the test it'll work fine (i.e. correctly figure out whether the submission is unique or not based on your criteria). However, after the page values has been updated, that information is now stored in the database. So if you were to return to the page where you were running your test, the function would now incorrectly think that the submission is NOT unique - because it will accidentally compare it against itself. (Hope this is clear...)
What I'm going to do is add an additional optional parameter to that function that lets you specify the current submission ID. The function will use it to test all OTHER submissions in the database and prevent it ever testing against itself.
I'm just looking at the API now. I'll make an update tonight or tomorrow.
- Ben
Sorry for not responding sooner.
I just checked it out and it seems to work okay... however, there was one thing that wasn't terribly good: the function won't take into account the CURRENT submission. In other words, when you first hit the page & run the test it'll work fine (i.e. correctly figure out whether the submission is unique or not based on your criteria). However, after the page values has been updated, that information is now stored in the database. So if you were to return to the page where you were running your test, the function would now incorrectly think that the submission is NOT unique - because it will accidentally compare it against itself. (Hope this is clear...)
What I'm going to do is add an additional optional parameter to that function that lets you specify the current submission ID. The function will use it to test all OTHER submissions in the database and prevent it ever testing against itself.
I'm just looking at the API now. I'll make an update tonight or tomorrow.
- Ben