fixed in trunk. Thanks Anthony and Michele.

On Wednesday, 6 June 2012 08:18:29 UTC-5, Anthony wrote:
>
> Good point -- the new reload functionality should have used "jQuery()" 
> rather than "$()".
>
> Anthony
>
> On Wednesday, June 6, 2012 8:17:07 AM UTC-4, szimszon wrote:
>>
>> Here is what I found with help of 
>> http://stackoverflow.com/questions/777062/jquery-field-is-null
>>
>> --- web2py.js.old    2012-06-04 22:02:56.000000000 +0200
>> +++ web2py.js    2012-06-06 14:12:48.546141468 +0200
>> @@ -104,8 +104,8 @@
>>  
>>  function web2py_component(action, target, timeout, times){
>>    jQuery(function(){
>> -    var element = $("#" + target).get(0);
>> -    var statement = "$('#" + target + "').get(0).reload();";
>> +    var element = jQuery("#" + target).get(0);
>> +    var statement = "jQuery('#" + target + "').get(0).reload();";
>>      element.reload = function (){
>>          // Continue if times is Infinity or
>>          // the times limit is not reached
>>
>>
>>
>> 2012. június 6., szerda 13:38:12 UTC+2 időpontban szimszon a következőt 
>> írta:
>>>
>>>
>>> Version 2.00.0 (2012-06-05 00:02:52) dev
>>>
>>> in layout.html {{=LOAD('default','setuser',extension='load',ajax=True)}}
>>>
>>> $("#" + target) is null @ http://127.0.0.1:8000/.../static/js/web2py.js:107
>>>
>>> without ajax=True it loads but is is working correctly only with ajax=True 
>>> :(
>>> http://code.google.com/p/web2py/issues/detail?id=839
>>>
>>>
>>>

Reply via email to