Forum


23:20

15/01/2009

Hello,
Assume you activated search button on your navigator bar.
When you click on the search button a search dialog box appears with two buttons on it: FIND and RESET.
Then you enter necessary data in your edit boxes and push one of these buttons.
Now, my problem is how to know what button was clicked.
All what I know (from docs) that searchField, searchOper and searchString are passed over to my php file where I can build necessary SQL query to filter my data. But what are the names of the Find and Reset buttons?
Regards,
Bayram.
06:59

15/01/2009

Also, in the documentations it is written that "when the find button is clicked, jqGrid adds three parameters to the url, in name=value pairs". But it is not clear what encoding is used. For example, I use russian letters and my webpage where the grid is placed has encoding windows-1251. So when I read values of
searchField, searchOper, searchString
in my php files I have to convert them from utf-8 into cp1251. But nowhere in the documentation is said that the jqGrid uses utf-8 encoding when these variables are sent by GET method.
06:59

15/01/2009

Also, in the documentations it is written that "when the find button is clicked, jqGrid adds three parameters to the url, in name=value pairs". But it is not clear what encoding is used. For example, I use russian letters and my webpage where the grid is placed has encoding windows-1251. So when I read values of
searchField, searchOper, searchString
in my php files I have to convert them from utf-8 into cp1251. But nowhere in the documentation is said that the jqGrid uses utf-8 encoding when these variables are sent by GET method.
03:15

Moderators
30/10/2007

Hello,
jqGrid uses a standart ajax call which by default is utf8. Check to see how you can overcome this - use loadBeforeSend in jqGrid to send custom headers or jQuery ajaxSetup for this purpose.
Also there is a nother parameter which you can use for this purpose the name of parameter is _search if true the find button is clicked.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
51 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66