Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Best Practise : Providing some jquery dialogs with content
Baseless
#1 Posted : Saturday, August 13, 2011 4:26:13 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 6/10/2010(UTC)
Posts: 141
Location: Sweden
Hi!
Need to fetch some content and shove it into jquery ui dialogboxes. Nothing fancy and with a clean mvc project i would probably just fetch the content through a controller result, but my question is what is possible and recommended without any custom code? Is there a preferred method for this or would the recommendation be to build a module / plugin for this?
I know it would work to create a page that shows the information and fetch that but pehaps there is a more elegant solution to this?
It concerns nothing fancy just some text that are to be presented in dialogs from a content folder.
Baseless
#2 Posted : Tuesday, August 16, 2011 10:08:29 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 6/10/2010(UTC)
Posts: 141
Location: Sweden
Any suggestions regarding this? Dont need to know any details in such, more what would be recommended for this task.
jifeng
#3 Posted : Wednesday, August 17, 2011 2:44:38 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
Do you want to fetch the data via ajax request?
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
Baseless
#4 Posted : Wednesday, August 17, 2011 8:07:08 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 6/10/2010(UTC)
Posts: 141
Location: Sweden
Yes correct, using jQuery. Just wonder if theres a slick way of doing this with kooboo or if custom code is needed. I could, as said above, of course just make a regular page and fetch the information i need in the jquery request. But doesnt feel like a good solution.
jifeng
#5 Posted : Wednesday, August 17, 2011 9:55:19 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
You can create a page plugin to return the json data. It is very simple, it just need to return a JsonResult in the plugin.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
1 user thanked jifeng for this useful post.
Baseless on 8/17/2011(UTC)
Baseless
#6 Posted : Wednesday, August 17, 2011 10:05:58 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 6/10/2010(UTC)
Posts: 141
Location: Sweden
jifeng;4737 wrote:
You can create a page plugin to return the json data. It is very simple, it just need to return a JsonResult in the plugin.


That was my initial though, using own custom code(thats how i would have done it in a clean MVC solution, using jsonresult). But it struck me that perhaps there was a method for this not involving custom code, wich is why i asked. But np, ill fix a plugin for this. Thanks for the input.
NjayWu
#7 Posted : Wednesday, August 17, 2011 2:42:20 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/14/2011(UTC)
Posts: 34
Location: XM
I prefer registering a new area ,then return jsonresult in this area's controller.
Regards,

NJ Wu

Kooboo3 Fans

http://www.qiyeqiye.com
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.132 seconds.