Yes, inside my javascript i have a lot of web2py helpers for string internationalization and even for looping between a dictionary of data and generating a set of markers for google maps, also i use the web2py URL helpers for the ajax requests URL. I can change the way i handle the loop and the URL, but for internationalization i have not found any way to handle the internationalization
El miércoles, 23 de diciembre de 2015, 12:07:46 (UTC-4:30), Anthony escribió: > > Are you saying some of your Javascript code is generated via web2py > templates? If so, it's hard to say what the best approach would be without > seeing some code. > > Anthony > > On Wednesday, December 23, 2015 at 9:46:41 AM UTC-5, > luis.va...@metamaxzone.com <javascript:> wrote: >> >> Hello! >> >> I've been analyzing how to work around in the best form an "issue", this >> doesnt affect the functionality of my code but it is against good practices. >> >> My website have a full internationalization and uses some variables >> passed by the controller inside the javascript to generate a highly >> dynamical page, this is no problem if i have my javascript inline my HTML >> templates, but for sake of order and good practices i wish to have my .js >> and .html in different files, but if i've the js outside my template it >> doesnt know how to process a web2py helper instruction. >> >> So i've been thinking in some workarounds but i dont find a good solution >> for now, may be some of you have a suggestion for this. >> >> Thank you very much! >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.