{{=DIV(LOAD(f='getSelection.load', args=request.args, ajax=True), _id='Workspace')}} #I load a selection in the View --> This Load WORKSSELECT(selOptions, _size=15, _name='o_id', _onclick="\
ajax('"+URL(r=request,args=[nav_id,tool_id,ntt_id],f='getForm')+"',['o_id'],'Workspace');", _class='ff_wide') #In the selection is an onclick event that works too - it loads the form of an orderIMG(_src=URL('static','images/i24_save.png', extension=True), _title=T('Save only'), _border=0, _style='cursor:pointer;',\
_onclick="ajax('"+URL(r=request,args=[nav_id,tool_id,ntt_id,'save'],f='saveCustomer')+"',"+ajaxVars+",'Workspace');") #In the form is an onclick event to the function 'saveCustomer'return LOAD(f='getForm', args=request.args, vars=rvars, ajax=True,target='Workspace') #saveCustomer returns a LOAD to load the Form againIf I replace in step 4 the ajax=True through ajax=False it works... If I copy the link in data-w2p_remote to the address bar, it works too..
An other example is our Mail Form. Its a simple page with a Mail Form (From:, To:, etc.) and at the bottom we have a Attachment Form embedded with a load: LOAD(c='mail',f='attachForm',args=args,vars=request.vars, ajax=True)
In the HTML the div looks like: <div id="c921071710755" data-w2p_remote="/sipadm/mail/attachForm/3/13/0/202?mail_id=202">loading...</div>
The path is correct, i can copy the data-w2p_remote path to the address
bar and it loads perfectly. Our productive system runs still on web2py
2.5.1. This problem occurs just on our staging system (web2py 2.7.2)
since we upgraded it to >2.6.0 with the identical code.
2. What I tried to fix it
But there is still no change.
The Firefox debugger shows me a js failure on the loading page: [11:32:39.259] Empty string passed to getElementById(). @ jquery.js:3
But i don't know if this is the root of the issue or not. 50% of the jquery script is on line 3, so i don't know which part causes this failure. i tried to insert more line brakes to the jquery script, but after that nothing worked anymore...
Has anyone an idea, what the root of this issue could be? Or how to find out, which part of the jquery script causes the getElementById failure?
I'm fighting with this problem since a few days and i don't know what to try anymore...
Best Regards
Michael
Movuca app from Bruno, available at Github has this behaviour.
--
tl;dr : movuca just needs a few upgrades to work, and all errors "after" replacing web2py.js are as clear as they can be in any browser debugger (like, $.parseHTML is not a function) |
El 11/10/2013 21:52, "Niphlod" <nip...@gmail.com> escribió:
>
> talking about minimal app, heh.... anyway, better than nothing.
I know, but I am answering from my phone, without a PC available ;)
> taken movuca, setupped, doesn't work (as advertised in web2py's changelog).
> Take web2py.js from welcome and overwrite web2py.js in /static/bootstrap/js/web2py.js
> Next issue, movuca ships jquery 1.7.1 (november 2011).
> web2py.js requires something jquery having $.parseHTML ... update jquery too and you'll only receive a problem about bootstrap-transition.js, that is trying to do something with the (now unsupported) $.browser.
> Update bootstrap-transition.js and movuca works like a charm.
>
I will check it again, maybe I made some mistake copying those files, but I knew this has to be done.
Thanks
> tl;dr : movuca just needs a few upgrades to work.
def test2()
ret = DIV(XML("test2 <br>"))
ret.append(LOAD(f='test3', ajax=True))
return ret
def test3():
return DIV('test 3')