Welcome Guest, Not a member yet? Register   Sign In
Restrict form/search submissions once every X seconds
#9

[eluser]jdfwarrior[/eluser]
I guess I'm not real sure what your asking. The method I'm saying I would use would:
On click of the search button, submit values to a given controller and function via jquery's Ajax $.post function. The controller function called would check a session variable of the last time a search was performed. If time had expired, it would pass the values on to a model, executing the search, updating the last time of search, and returning results back to the $.post function to update the Dom accordingly. If upon checking, X amount of time had not elapsed since the last search this info would be passed back to $.post and an error message would be displayed to the user.

As far as get variables, just personal pref, I don't use them very much.


Messages In This Thread
Restrict form/search submissions once every X seconds - by El Forum - 02-10-2009, 06:01 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-10-2009, 07:12 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-10-2009, 07:19 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-10-2009, 07:38 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-10-2009, 08:16 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-10-2009, 08:28 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-10-2009, 08:39 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-11-2009, 03:54 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-11-2009, 06:26 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-11-2009, 07:02 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-11-2009, 07:14 AM
Restrict form/search submissions once every X seconds - by El Forum - 02-11-2009, 09:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB