Custom ftLibraryData and AJAX not playing well together

View: New views
2 Messages — Rating Filter:   Alert me  

Custom ftLibraryData and AJAX not playing well together

by Tomek Kott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I have a type which has an array property (ftType="array") and in general works perfectly fine in the webtop with AJAX. The problem arises when I add my own specific "ftLibraryData" function (http://docs.farcrycms.org/display/FCDEV50/Library+Element) . When I add it, the panel no longer updates when the Library is closed ('complete"). The data is saved, so if I reload that wizard step everything works fine, and shows the things I just added to the Library. So in this sense, things still work. however, i'm also used to the ajax working.

Any ideas what could be wrong? I am sure that this is the problem, thought I don't know where to start tracing it in the JS (however much I know CF, I don't know AJAX / JS much..).

Thanks,

Tomek

--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Custom ftLibraryData and AJAX not playing well together

by Tomek Kott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Forgot to add - once there are items showing, and I open the library again to deselect things, the AJAX updates as necessary. So, it just that adding doesn't work!

On Thu, Oct 29, 2009 at 2:24 PM, Tomek Kott <tkott.spam@...> wrote:
Hi All,

I have a type which has an array property (ftType="array") and in general works perfectly fine in the webtop with AJAX. The problem arises when I add my own specific "ftLibraryData" function (http://docs.farcrycms.org/display/FCDEV50/Library+Element) . When I add it, the panel no longer updates when the Library is closed ('complete"). The data is saved, so if I reload that wizard step everything works fine, and shows the things I just added to the Library. So in this sense, things still work. however, i'm also used to the ajax working.

Any ideas what could be wrong? I am sure that this is the problem, thought I don't know where to start tracing it in the JS (however much I know CF, I don't know AJAX / JS much..).

Thanks,

Tomek


--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---