Welcome Guest, Not a member yet? Register   Sign In
Flexigrid help - How to add parameters to the Ajax call
#1

[eluser]Unknown[/eluser]
Hi,

I started with the Flexigrid and so far it is excellent. I do have a question.

I have a json grid based on a Java servlet and it works great. I am planning to have some dropdowns, textboxes that will have search criteria. How can I send them as some [name, value] parameter to my url?

Tried to get the url to modify and reload, can't see how to go about it.

A simple code example would be a great help!


Thanks,
Kal
#2

[eluser]Unknown[/eluser]
I got it to work with the following code-


$('#flex1').flexOptions({params:[{name:'param1', value: val1}, {name:'param2', value: val2}]});

param1 and param2 get set in my request object.
#3

[eluser]RaZoR LeGaCy[/eluser]
I was planning to use flexigrid for displaying data returned in a result_array() method. Is this easy using flexigrid?
#4

[eluser]GrootBaas[/eluser]
[quote author="Kal" date="1219800146"]I got it to work with the following code-


$('#flex1').flexOptions({params:[{name:'param1', value: val1}, {name:'param2', value: val2}]});

param1 and param2 get set in my request object.[/quote]

Hi there,

How do I read those parameters inside my model or controller?

Thanks in advance for your help ....




Theme © iAndrew 2016 - Forum software by © MyBB