MVC Razor and IUI load items on demand for iphone web app

10 views
Skip to first unread message

Jonathan

unread,
Jun 5, 2011, 7:59:41 AM6/5/11
to iPhoneWebDev
Hi all, I have been using IUI with mvc and razor for the last couple
of weeks and i would like to know if anyone has managed to get a load
on demand section working like: http://demo.iui-js.org/samples/digg/index.html#_home

I would be gratefull if anyone can help me accomplish this. So far i
have populated a html table using a for each loop which displays all
products or as many as i decide using linq take x but cant think of a
way to have a button/ link stating get next x (10 or so) and then do
so.

Any suggestions/ help be grateful

Remi Grumeau 

unread,
Jun 5, 2011, 9:33:48 AM6/5/11
to iphone...@googlegroups.com
You may use target="_replace" like in this example.
Your serverside script should then generate your content plus a new replace button, with next db limit added in this link as GET params.

Hope that helps!

R.

> --
> You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
> To post to this group, send email to iphone...@googlegroups.com.
> To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
>

Jonathan

unread,
Jun 6, 2011, 7:31:11 PM6/6/11
to iPhoneWebDev
thanks for your response. I have managed to achieve what i wanted.

i have a for each loop to loop through a controlers method. The method
expect a take param for linq. If the item index in the for each loop
is the last one in the model.count then add an action linq back to
same controller with replace as the target and pass model.count + 10
as the parameter. Works a treat. Thanks

On Jun 5, 2:33 pm, Remi Grumeau  <remi.grum...@gmail.com> wrote:
> You may use target="_replace" like in this example.
> Your serverside script should then generate your content plus a new replace button, with next db limit added in this link as GET params.
>
> Hope that helps!
>
> R.
>
Reply all
Reply to author
Forward
0 new messages