// Js-code
                <script>
                        $.ajax({
                           type: 'post',
                           url: '/content.json',
                           dataType: 'json',
                           success: function(msg){
                                 alert( "Data Saved: " + msg );
                           }
                         });
                </script>
// My controller

        @expose('json')
        def content(self):
                pages = ['A','B']
                return dict(pages = pages)

=> localhost:8080/content.json => 404 Content not Found?
=> page that contains the js-code => ajax call => again content 404
Content not Found?
What is wrong with my controller?

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to