Re: Bookmarkable AJAX URLs
Then make the chat AJAX only, not the page. AJAX is primarily used for small sections on the site. On Apr 19, 10:57 pm, Dmitry Shevchenko dmitr...@gmail.com wrote: Thank you for you advices, but I can't stop using ajax on my site, I have a chat window on my pages, so if page will reloaded - I have to relogin user to chat - this will overload chat server. I knew about SEO problems, but I think we could fix it by sitemap and robots.txt So I needed a solution, how to wrote correct route with using # , like- domain.com/#/controller/action/params I need to explaine route ignor first # Something simmilar to facebook urls - where most of all urls have a #!/ url Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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 athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: Bookmarkable AJAX URLs
A page reload doesn't have to mean that your chat is reloaded. Especially not if the chat is ajax-only. That should be independent of which page the user is on. Think parallel. On Apr 20, 7:57 am, Dmitry Shevchenko dmitr...@gmail.com wrote: Thank you for you advices, but I can't stop using ajax on my site, I have a chat window on my pages, so if page will reloaded - I have to relogin user to chat - this will overload chat server. I knew about SEO problems, but I think we could fix it by sitemap and robots.txt So I needed a solution, how to wrote correct route with using # , like- domain.com/#/controller/action/params I need to explaine route ignor first # Something simmilar to facebook urls - where most of all urls have a #!/ url Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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 athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: Bookmarkable AJAX URLs
Hi! Thank you Bert Van den Brande for answer. I have added a js script for modify browser address string: echo location.hash=\$this-here\;; What do you mean - I don't need to modify any Cake's urls? if I didn't modify it - I will get a very funny urls - like: domain.com/profiles/view/48229#/profiles/view/31460 to solve this problem I have create a url like: domain.com/#/controller/action/.. for that I have modified a ajax helper function link ($title, $link, $options = array(), $confirm = null, $escapeTitle = true) { $options = $this-_addOptions($options); return parent::link($title,#.$link,$options,$confirm, $escapeTitle); } BUT how to write a correct route, to explain cake to ignore # and use all what goes after # in url. please help On 16 апр, 19:14, Bert Van den Brande cyr...@gmail.com wrote: Afaik using # is the way to go. Changing any other aspect of the url besides what comes after the # will result in a load of the changed url by the browser. You don't need Cake to change the url's, just some javascript code that you execute every time the user navigates using your ajax links. On Fri, Apr 16, 2010 at 5:41 PM, Dmitry Shevchenko dmitr...@gmail.comwrote: Hi! I use ajax link (by ajax helper) in my current app almost everywhere. I now, when user navigate throw the site, URLs in the browser address line didn't changed. That's why user can't create bookmarks. Does anyone knew, how to push browser change address line, or some other workaround. p.s. I knew one way - add # to each url. Browser will automatically add this parameter to address line. But seems that this is too ugly workaround. (And I don't know how to implement it by using Cake) Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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 athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: Bookmarkable AJAX URLs
Dont make everything AJAX. Its really pointless if you are loading the whole content anyways. It also breaks SEO and then you run into problems like this. On Apr 19, 9:05 am, Dmitry Shevchenko dmitr...@gmail.com wrote: Hi! Thank you Bert Van den Brande for answer. I have added a js script for modify browser address string: echo location.hash=\$this-here\;; What do you mean - I don't need to modify any Cake's urls? if I didn't modify it - I will get a very funny urls - like: domain.com/profiles/view/48229#/profiles/view/31460 to solve this problem I have create a url like: domain.com/#/controller/action/.. for that I have modified a ajax helper function link ($title, $link, $options = array(), $confirm = null, $escapeTitle = true) { $options = $this-_addOptions($options); return parent::link($title,#.$link,$options,$confirm, $escapeTitle); } BUT how to write a correct route, to explain cake to ignore # and use all what goes after # in url. please help On 16 апр, 19:14, Bert Van den Brande cyr...@gmail.com wrote: Afaik using # is the way to go. Changing any other aspect of the url besides what comes after the # will result in a load of the changed url by the browser. You don't need Cake to change the url's, just some javascript code that you execute every time the user navigates using your ajax links. On Fri, Apr 16, 2010 at 5:41 PM, Dmitry Shevchenko dmitr...@gmail.comwrote: Hi! I use ajax link (by ajax helper) in my current app almost everywhere. I now, when user navigate throw the site, URLs in the browser address line didn't changed. That's why user can't create bookmarks. Does anyone knew, how to push browser change address line, or some other workaround. p.s. I knew one way - add # to each url. Browser will automatically add this parameter to address line. But seems that this is too ugly workaround. (And I don't know how to implement it by using Cake) Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. 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.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. 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 athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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 athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: Bookmarkable AJAX URLs
I agree with that. Enter the phrase 'when to use ajax' in your search engine of choice and read. In my humble opinion, you need to re-think your application. The URLs are probably the most important part of your site, almost as important as your data. In my own site I have a tabbed configuration page where I tried to use jQuery for both the interface and the actions. I failed. Then, on my second round, I implemented the interface in php and the actions in ajax, and got what I wanted: a responsive interface with proper urls - in my case: 'projects/ project_name/settings?tab=members' and the members form is an ajax form (because I don't need to reload the page, nor change the url for that). I then check for the url parameter tab in my projects/settings action and set the class of the corresponding tab to active. Works way better than jQuery for everything. And search engines are happy too. On Apr 19, 10:10 pm, Miles J mileswjohn...@gmail.com wrote: Dont make everything AJAX. Its really pointless if you are loading the whole content anyways. It also breaks SEO and then you run into problems like this. On Apr 19, 9:05 am, Dmitry Shevchenko dmitr...@gmail.com wrote: Hi! Thank you Bert Van den Brande for answer. I have added a js script for modify browser address string: echo location.hash=\$this-here\;; What do you mean - I don't need to modify any Cake's urls? if I didn't modify it - I will get a very funny urls - like: domain.com/profiles/view/48229#/profiles/view/31460 to solve this problem I have create a url like: domain.com/#/controller/action/.. for that I have modified a ajax helper function link ($title, $link, $options = array(), $confirm = null, $escapeTitle = true) { $options = $this-_addOptions($options); return parent::link($title,#.$link,$options,$confirm, $escapeTitle); } BUT how to write a correct route, to explain cake to ignore # and use all what goes after # in url. please help On 16 апр, 19:14, Bert Van den Brande cyr...@gmail.com wrote: Afaik using # is the way to go. Changing any other aspect of the url besides what comes after the # will result in a load of the changed url by the browser. You don't need Cake to change the url's, just some javascript code that you execute every time the user navigates using your ajax links. On Fri, Apr 16, 2010 at 5:41 PM, Dmitry Shevchenko dmitr...@gmail.comwrote: Hi! I use ajax link (by ajax helper) in my current app almost everywhere. I now, when user navigate throw the site, URLs in the browser address line didn't changed. That's why user can't create bookmarks. Does anyone knew, how to push browser change address line, or some other workaround. p.s. I knew one way - add # to each url. Browser will automatically add this parameter to address line. But seems that this is too ugly workaround. (And I don't know how to implement it by using Cake) Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers with their CakePHP related questions. 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.comcake-php%2bunsubscr...@googlegroups.c omFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers with their CakePHP related questions. 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 athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions. 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 athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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 athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You
Re: Bookmarkable AJAX URLs
Thank you for you advices, but I can't stop using ajax on my site, I have a chat window on my pages, so if page will reloaded - I have to relogin user to chat - this will overload chat server. I knew about SEO problems, but I think we could fix it by sitemap and robots.txt So I needed a solution, how to wrote correct route with using # , like- domain.com/#/controller/action/params I need to explaine route ignor first # Something simmilar to facebook urls - where most of all urls have a #!/ url Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: Bookmarkable AJAX URLs
Afaik using # is the way to go. Changing any other aspect of the url besides what comes after the # will result in a load of the changed url by the browser. You don't need Cake to change the url's, just some javascript code that you execute every time the user navigates using your ajax links. On Fri, Apr 16, 2010 at 5:41 PM, Dmitry Shevchenko dmitr...@gmail.comwrote: Hi! I use ajax link (by ajax helper) in my current app almost everywhere. I now, when user navigate throw the site, URLs in the browser address line didn't changed. That's why user can't create bookmarks. Does anyone knew, how to push browser change address line, or some other workaround. p.s. I knew one way - add # to each url. Browser will automatically add this parameter to address line. But seems that this is too ugly workaround. (And I don't know how to implement it by using Cake) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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