How I can reload flexigrid with new parameter "url" ?

4,358 views
Skip to first unread message

aandrino

unread,
May 17, 2009, 8:14:39 AM5/17/09
to Flexigrid for jQuery
<script type="text/javascript">
$(document).ready(function(){

$("#flex1").flexigrid
(
{
url: 'flexigrid/post2.php?a=2',
............


I can use function jQuery("#flex1").flexReload(); to reload flexigrid
Can I reload grid with new parameter url (url: 'flexigrid/post2.php?
a=2',)

I wish that when I click on a different buttons on page, flexigrid
selects data from different database's tables. If i can change this
parameter (url) then I can make it..

Sorry for my bad English..

aandrino

unread,
May 17, 2009, 8:52:54 AM5/17/09
to Flexigrid for jQuery
I found this:

<
You just need the object literal of the params, ot a params.params..

$("#grid_list").flexOptions({url: newurl/'});
$("#grid_list").flexReload();
>

but I'm not understand this: $("#grid_list").flexOptions({url:
newurl/'});
please give me any example of this string with real url

aandrino

unread,
May 17, 2009, 12:51:01 PM5/17/09
to Flexigrid for jQuery
I found the solution !

jQuery('#flex1').flexOptions({url: 'flexigrid/post2.php?
a=1'}).flexReload();
Reply all
Reply to author
Forward
0 new messages