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

Notification

Icon
Error

404 Not found - module controller method call
elnove
#1 Posted : Tuesday, September 14, 2010 9:27:34 PM(UTC)
Rank: Member
Groups: Registered

Joined: 7/15/2010(UTC)
Posts: 12
Location: Canada
Dear Friends,

I've created a module that displays a simple form. In the form there is a drop down list (AKA: combobox) that is being populated using an Ajax call.

The Ajax method calls a controller method which runs some business logic and return some JSON data.

In the module development project everything works fine and the drop down is being populated.

After I packed it and installed the module in the KooBoo CMS and integrated into one of the applications, the Ajax method call is returning 404 - not found (checked using Firebug console), since I'm new to KooBoo I believe I'm missing something basic here. Please help.

Thanks

El
luiz@wise.com.br
#2 Posted : Tuesday, September 14, 2010 9:30:33 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/4/2010(UTC)
Posts: 157
Location: brazil
How did you create the url in the view?
Is it hard coded?
elnove
#3 Posted : Tuesday, September 14, 2010 9:40:31 PM(UTC)
Rank: Member
Groups: Registered

Joined: 7/15/2010(UTC)
Posts: 12
Location: Canada
the following is the code that call the method (net to the url att), where "join" is the controller name and "GetActivitiesLevel" is the method name.

Code:

ActivityLevelStore = Ext.extend(Ext.data.JsonStore, {
constructor: function (cfg) {
cfg = cfg || {};
ActivityLevelStore.superclass.constructor.call(this, Ext.apply({
storeId: 'MyStore',
url: 'join/GetActivitiesLevel/',
baseParams: {
LanguageId: "1"
},
fields: [
{
name: 'Key'
},
{
name: 'Value'
}
]
}, cfg));
}
});



Do I need to change that ?

Thanks,
El
luiz@wise.com.br
#4 Posted : Tuesday, September 14, 2010 9:42:38 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/4/2010(UTC)
Posts: 157
Location: brazil
You may need to create the url with the UrlHelper and them pass it to the script
elnove
#5 Posted : Tuesday, September 14, 2010 9:46:38 PM(UTC)
Rank: Member
Groups: Registered

Joined: 7/15/2010(UTC)
Posts: 12
Location: Canada
thanks,

I checked in the application, and play with it by writing the ajax method URL in my browser, I didn't succeed in writing it in any way, may be I should add something to my routs.config ?
luiz@wise.com.br
#6 Posted : Tuesday, September 14, 2010 9:50:40 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/4/2010(UTC)
Posts: 157
Location: brazil
when you add a module to a page kooboo adds a module Id in the url, so you could use two modules in the same page, I have a module that uses ajax and you could take a look, I'm not working with kooboo lately so I don't remember all the methods

http://koobooimagegallery.codeplex.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.245 seconds.