Hi Kenji, Thanks! for the wonderful widgets. I am already using a few in my web2py projects. They make my life simple.
Sincerely, Rahul D. On Tuesday, April 1, 2014 7:20:30 PM UTC+5:30, Richard wrote: > > The thing with Modal from bootstrap is that the form are embeded at the > same level, I mean they are both in the same page even if you build it with > a component... The way to workaround this issue is to give a name to your > form (form.process(formname=...).accepted:). > > There is this ressource that can help : > > > http://linuxapuntes.blogspot.com.ar/2013/03/plugin-modal-bootstrap-web2py.html > > Good luck. > > Richard > > > On Tue, Apr 1, 2014 at 6:18 AM, Richard <richard....@planet.nl<javascript:> > > wrote: > >> Kenji, >> >> I try to use the nice (modal) Dialog widget with a Web2py app. It starts >> but keeps ths status loading... >> >> In the controller: >> dlg_add_role = DIALOG(LOAD(f='add_role', ajax=True), title='Add >> role', close_button='close', renderstyle=True) >> >> return dict(dlg_add_role=dlg_add_role, >> s1s=s1s, entities=entities, assets=assets, >> parents=parents, sip=sip, >> env_cat=env_cat, env_domains=env_domains, >> channels=channels, supply_channels=supply_channels, >> im_labels=im_labels, >> form_env=form_env, form_vpu=form_vpu, >> data_list = data_list, >> activities = activities, >> roles = roles, >> customers = customers >> ) >> >> def add_role(): >> return DIV('OK!') >> >> >> >> In the index.html view: >> ..... >> </table> >> {{=A('Add role', _href='#dlg_add_role', >> _onclick='%s;return false' % dlg_add_role.show())}} >> </div> >> ...... >> >> >> On Thursday, September 8, 2011 11:53:28 AM UTC+2, kenji4569 wrote: >>> >>> Thanks for the information. But it seems that I have to buy a licence >>> to get the full source code. I will look for other solutions. >>> >>> Kenji >>> >>> On 9月8日, 午前2:59, Richard Vézina <ml.richard.vez...@gmail.com> wrote: >>> > Hello Kenji, >>> > >>> > You will maybe find the code of the actual datepicker here : >>> http://www.dynarch.com/projects/calendar/ >>> > >>> > If you clic on the "?" when the datepicker popup you will have the >>> > disclaimer of the author of the plugin... >>> > >>> > Richard >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > On Tue, Sep 6, 2011 at 8:59 PM, kenji4569 <hos...@s-cubism.jp> wrote: >>> > > > After i upload a file i get a icon in the text. >>> > > > How do i lauch the file that i just embedded in the text? >>> > > The elrte editor prevents the icon link from clicking to download >>> the >>> > > file. >>> > > So you have to first submit the editing html, >>> > > and save the html in db, >>> > > and then display the html in the view (as {{=XML(record.text)}}). >>> > > But currently, the demo do not demonstrate this (so you need to >>> > > implement this on your app). >>> > > In the meantime, you can check the html source from the editor by >>> > > clicking the "source" tab at the bottom of the editor. >>> > >>> > > Kenji >>> > >>> > > On 9月7日, 午前1:02, António Ramos <ramstei...@gmail.com> wrote: >>> > > > After i upload a file i get a icon in the text. >>> > > > How do i lauch the file that i just embedded in the text? >>> > >>> > > > Thank you >>> > >>> > > > 2011/9/6 kenji4569 <hos...@s-cubism.jp> >>> > >>> > > > > > web2py gives the file in the download >>> > > > > > directory for example >>> > >>> > > 5e74c950-95b2-4843-b4c6-53bc8efca8fe</plugin_elrte_widget/download/plugin_e >>> > > >>> >>> > >>> > > lrte_widget_file.file.9a877c8c8c9d285c. >>> 4361726f6c696e61323031305f612e646f63 >>> > > > > .doc> >>> > > > > The former random string is a display file name, and just for >>> demo. >>> > > > > The latter one is an actual file name generated by web2py. >>> > >>> > > > > Now, I remove the former, since it's confusing: >>> > > > >http://dev.s-cubism.com/plugin_elrte_widget >>> > >>> > > > > Changing the latter would require much work with deeper >>> inspection >>> > > > > into the web2py upload mechanism. >>> > >>> > > > > Changing the look and feel such as replacing icons would be >>> easier, >>> > > > > and you should see the file_upload_or_choose() function in the >>> usage >>> > > > > code of the demo. >>> > >>> > > > > Note that I do not implement a ready-made image/file chooser, >>> and you >>> > > > > have to implement it for your own application, starting from the >>> usage >>> > > > > code, including setting up your db and defining your image and >>> file >>> > > > > tables. >>> > >>> > > > > Regards, >>> > > > > Kenji >>> > >>> > > > > On 9月6日, 午後6:01, António Ramos <ramstei...@gmail.com> wrote: >>> > > > > > Hello Kenji, >>> > > > > > Thank you for your fast work >>> > >>> > > > > > One problem! >>> > > > > > The form is not very friendly. >>> > >>> > > > > > In the submit form i choose a pdf for example myfile.pdf but >>> in the >>> > > name >>> > > > > > field you write the name that web2py gives the file in the >>> download >>> > > > > > directory for example >>> > >>> > > 5e74c950-95b2-4843-b4c6-53bc8efca8fe</plugin_elrte_widget/download/plugin_e >>> > > >>> >>> > >>> > > lrte_widget_file.file.9a877c8c8c9d285c. >>> 4361726f6c696e61323031305f612e646f63 >>> > > > > .doc> >>> > > > > > This has no meaning to the user! >>> > >>> > > > > > Please see attached file for what i think it would be really >>> > > helpfull. >>> > >>> > > > > > Thank you again >>> > >>> > > > > > António >>> > >>> > > > > > 2011/9/6 kenji4569 <hos...@s-cubism.jp> >>> > >>> > > > > > > Hi António, >>> > >>> > > > > > > I implemented a file chooser for the elrte widget. >>> > > > > > > Please try it: >>> > > > > > >http://dev.s-cubism.com/plugin_elrte_widget >>> > >>> > > > > > > Since the file chooser is very primitive, you may need to >>> customize >>> > > > > > > it. >>> > > > > > > But, the customization would be easy with the expressive >>> power of >>> > > > > > > web2py (see the demo code). >>> > > > > > > (Notice: I applied a small patch for the original elrte.js >>> to make >>> > > the >>> > > > > > > file chooser available.) >>> > >>> > > > > > > Thanks again for your valuable feedback, >>> > > > > > > Kenji >>> > >>> > > > > > > On 9月4日, 午後8:01, António Ramos <ramstei...@gmail.com> >>> wrote: >>> > > > > > > > Thank you. >>> > > > > > > > I realy need your plugin ASAP but with the option to >>> attach >>> > > multiple >>> > > > > pdf >>> > > > > > > or >>> > > > > > > > doc files. >>> > >>> > > > > > > > 2011/9/4 kenji4569 <hos...@s-cubism.jp> >>> > >>> > > > > > > > > >the elRTE WYSIWYG Widget does not allow to "import" a >>> file >>> > > other >>> > > > > than >>> > > > > > > an >>> > > > > > > > > >image. >>> > > > > > > > > >It would be nice to import for example a pdf or a doc >>> file >>> > > > > > > > > Thanks for your proposal. >>> > > > > > > > > I think it would be easy to implement it, because the >>> image >>> > > chooser >>> > > > > > > > > can be customized to anything. >>> > > > > > > > > I'll try to do this. >>> > >>> > > > > > > > > Kenji >>> > >>> > > > > > > > > On 9月4日, 午後6:02, António Ramos <ramstei...@gmail.com> >>> wrote: >>> > > > > > > > > > Hello >>> > > > > > > > > > the elRTE WYSIWYG Widget does not allow to "import" a >>> file >>> > > other >>> > > > > than >>> > > > > > > an >>> > > > > > > > > > image. >>> > > > > > > > > > It would be nice to import for example a pdf or a doc >>> file >>> > >>> > > > > > > > > > Thank you >>> > > > > > > > > > António >>> > >>> > > > > > > > > > 2011/9/4 kenji4569 <hos...@s-cubism.jp> >>> > >>> > > > > > > > > > > >Maybe the actual datepicker could be of some help >>> to >>> > > figure >>> > > > > out >>> > > > > > > how to >>> > > > > > > > > > > make it moves... >>> > > > > > > > > > > Thanks, but I couldn't read the source of the >>> datepicker >>> > > since >>> > > > > it's >>> > > > > > > > > > > compressed (I couldn't find the readable one in the >>> host >>> > > site). >>> > > > > > > > > > > Other solution might be using jquery.ui.draggable, >>> but it's >>> > > not >>> > > > > so >>> > > > > > > > > > > light as to just make it draggable. >>> > > > > > > > > > > So, for now, I leave the anytime.js unmodified. >>> > >>> > > > > > > > > > > Kenji >>> > >>> > > > > > > > > > > On 9月1日, 午後10:53, Richard Vézina < >>> > > ml.richard.vez...@gmail.com> >>> > > > > > > wrote: >>> > > > > > > > > > > > Great! >>> > >>> > > > > > > > > > > > It nice that you take care of feedback... Don't >>> worry >>> > > about >>> > > > > IE >>> > > > > > > ;-) >>> > >>> > > > > > > > > > > > For moving, I think it a most have feature since >>> the >>> > > actual >>> > > > > > > > > datepicker >>> > > > > > > > > > > has >>> > > > > > > > > > > > it... >>> > >>> > > > > > > > > > > > What has to be done to make it available? >>> > >>> > > > > > > > > > > > Maybe the actual datepicker could be of some help >>> to >>> > > figure >>> > > > > out >>> > > > > > > how >>> > > > > > > > > to >>> > > > > > > > > > > make >>> > > > > > > > > > > > it moves... >>> > >>> > > > > > > > > > > > Thank Kenji >>> > >>> > > > > > > > > > > > Richard >>> > >>> > > > > > > > > > > > On Thu, Sep 1, 2011 at 6:35 AM, kenji4569 < >>> > > > > hos...@s-cubism.jp> >>> > > > > > > > > wrote: >>> > > > > > > > > > > > > Hi Richard, >>> > >>> > > > > > > > > > > > > thank you for your feedback. >>> > >>> > > > > > > > > > > > > >It works great except that it seems to conflict >>> with >>> > > > > jQuery UI >>> > > > > > > > > tabs >>> > > > > > > > > > > and >>> > > > > > > > > > > > > dialog... >>> > > > > > > > > > > > > I fixed it (tested Chrome, FF, IE). >>> > > > > > > > > > > > > See: >>> > >>> > >http://dev.s-cubism.com/plugin_anytime_widget/test/with_jquery_ui >>> > > > > > > > > > > > > (The anytime css should precede the jquery ui >>> css) >>> > >>> > > > > > > > > > > > > >It no show up when my form are called with >>> LOAD() >>> > > > > > > > > > > > > I also fixed it. >>> > > > > > > > > > > > > See: >>> > > > >http://dev.s-cubism.com/plugin_anytime_widget/test/_/load >>> > > > > > > > > > > > > (I implemented a dynamic loader for js and css) >>> > >>> > > > > > > > > > > > > Note however, since IE(<=8?) could not put a >>> dynamic >>> > > css >>> > > > > before >>> > > > > > > > > loaded >>> > > > > > > > > > > > > css, >>> > > > > > > > > > > > > the conflict for jquery-ui still occurs for >>> IE(<=8?). >>> > > > > > > > > > > > > see: >>> > >>> > > > >http://dev.s-cubism.com/plugin_anytime_widget/test/ >>> with_jquery_ui/load >>> > >>> > > > > > > > > > > > > >there is no way we can move it like the actual >>> > > > > datepicker... >>> > > > > > > > > > > > > This might be difficult to implement. >>> > >>> > > > > > > > > > > > > Regards, >>> > > > > > > > > > > > > Kenji >>> > >>> > > > > > > > > > > > > On 9月1日, 午前4:25, Richard Vézina < >>> > > > > ml.richard.vez...@gmail.com> >>> > > > > > > > > wrote: >>> > > > > > > > > > > > > > Hello, >>> > >>> > > > > > > > > > > > > > I just try anydate plugin... It works great >>> except >>> > > that >>> > > > > it >>> > > > > > > seems >>> > > > > > > > > to >>> > > > > > > > > > > > > conflict >>> > > > > > > > > > > > > > with jQuery UI tabs and dialog... It no show >>> up when >>> > > my >>> > > > > form >>> > > > > > > are >>> > > > > > > > > > > called >>> > > > > > > > > > > > > with >>> > > > > > > > > > > > > > LOAD(), so it also could it be conflicting >>> with >>> > > LOAD() of >>> > > > > > > web2py. >>> > > > > > > > > > > Also >>> > > > > > > > > > > > > > there is no way we can move it like the actual >>> > > > > datepicker... >>> > >>> > > > > > > > > > > > > > Richard >>> > >>> > > > > > > > > > > > > > On Tue, Aug 30, 2011 at 9:47 PM, kenji4569 < >>> > > > > > > hos...@s-cubism.jp> >>> > > > > > > > > > > wrote: >>> > > > > > > > > > > > > > > > I still see the same >>> > > > > > > > > > > > > > > > problem with 'Format', 'Font size' and >>> 'Font' >>> > > > > dropdown >>> > > > > > > > > > > selections. >>> > > > > > > > > > > > > > > Sorry, I addressed the issue, and I think it >>> would >>> > > be >>> > > > > > > fixed. >>> > > > > > > > > > > > > > > The cause for this is null entry for the >>> text area. >>> > >>> > > > > > > > > > > > > > > Kenji >>> > >>> > > > > > > > > > > > > > > On 8月31日, 午前12:14, tomt < >>> tom_tren...@yahoo.com> >>> > > wrote: >>> > > > > > > > > > > > > > > > Hi, >>> > >>> > > > > > > > > > > > > > > > I tried your update, and I can now >>> successfully >>> > > > > modify >>> > > > > > > text >>> > > > > > > > > color >>> > > > > > > > > > > and >>> > > > > > > > > > > > > > > > background color with IE7 and IE8. >>> Unfortunately >>> > > I >>> > > > > still >>> > > > > > > see >>> > > > > > > > > the >>> > > > > > > > > > > same >>> > > > > > > > > > > > > > > > problem with 'Format', 'Font size' and >>> 'Font' >>> > > > > dropdown >>> > > > > > > > > > > selections. >>> > > > > > > > > > > > > > > > That is, >>> > > > > > > > > > > > > > > > the dropdown selection is erased before I >>> can >>> > > select >>> > > > > an >>> > > > > > > > > option. >>> > >>> > > > > > > > > > > > > > > > - Tom >>> > >>> > > > > > > > > > > > > > > > On Aug 30, 4:05 am, kenji4569 < >>> > > hos...@s-cubism.jp> >>> > > > > > > wrote: >>> > >>> > > > > > > > > > > > > > > > > Hi, Tom. >>> > >>> > > > > > > > > > > > > > > > > Thank you for reporting the bug. >>> > > > > > > > > > > > > > > > > I just fixed it. >>> > > > > > > > > > > > > > > > > Please check: >>> > > > > > >http://dev.s-cubism.com/plugin_elrte_widget >>> > > > > > > > > > > > > > > > > (you might need to clear the browser >>> cache) >>> > >>> > > > > > > > > > > > > > > > > [modification detail] >>> > > > > > > > > > > > > > > > > I upgraded >>> > >>> > ... >>> > >>> > もっと読む » >> >> -- >> 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+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.