I'm trying to play around with javascript and facebook. I decided to take a shot at just added another record with this article. http://bakery.cakephp.org/articles/view/how-to-create-multirecord-forms
I get the following error: URLExceptionInvalid scheme for url (javascript:new Ajax.Updater ('newsEditContainer', '/my_fb_app/news/addNewsItem', {insertion: Insertion.Bottom}); So you don't have to go to the article, this javascript:new is from the following PHP: echo $html->link("Add another news ", "javascript:new Ajax.Updater ('newsEditContainer', '" . Helper::url(array("controller"=>"news", "action"=>"addNewsItem")) . "', {insertion: Insertion.Bottom});"); I did try the Helper::url by itself (ie non dynamic javascript) and it did find the action/controller. One thing I wasn't sure is if the prototype.js can be used with cake and facebook. I would think this is not true. I think the disconnect is facebook finding my prototype.js file. I say this because I changed the echo $javascript->link("prototype", false); at the top, and got the same error. In other words I changed it to something it wouldn't find. I also did the same by calling the Ajax.Updater something else to see if there was a different error message. I put the prototype.js (originally called prototype-1.6.0.3.js) in my webroot/js directory. Perhaps this should be in a different driectory. The other thought is that the $javascript->link("prototype", false); maybe incorrect. Any suggestions. Even if its helping debug. Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---