Gosh I had tried this, but it wasn't working... I probably not let enought
time to the component to load...

You are my savior Anthony ;-)

I think I'm too eager to include this feature. I was about to go in staging
with 1.96.4, but the 1.97.1 get out and then I want to skip to it and we
know the rest ;-D

Just removing the lines you mention, did the tricks... I will make futher
test to ensure everything works properly know and report back...

Thanks again Anthony.

Richard


On Tue, Jun 28, 2011 at 3:52 PM, Anthony <[email protected]> wrote:

> Actually, your problem is simple -- you're loading two versions of jQuery
> (1.5.1 and 1.6.1), and that seems to be causing jQuery to fail. Note, if
> you're using the web2py layout.html from the 'welcome' app, it includes the
> web2py_ajax.html view, which itself loads jQuery (currently 1.6.1) in the
> layout head. So, remove this from the bottom of your view file:
>
> <script type="text/javascript" charset="utf-8"
>
> src="{{=URL('static','plugin_added/jquery-ui-1.8.13.custom/js/jquery-1.5.1.min.js')}}">
> </script>
>
> and your ajax component will work with the tabs.
>
> Anthony
>
>
> On Tuesday, June 28, 2011 2:08:30 PM UTC-4, Richard wrote:
>
>>
>>
>> On Tue, Jun 28, 2011 at 12:41 PM, Anthony <[email protected]> wrote:
>>
>>> Also, see what happens if you turn off the jQuery UI tabs -- maybe that's
>>> interfering somehow.
>>>
>>
>> By just removing this part, the problem still there :
>>
>>  //$(function() {
>>     //var $tabs =
>>   //  $( "#tabs" ).tabs();
>>     //$tabs.tabs('select',  None);
>>     //    return false;
>> //});
>>
>> So, it requires I remove all the Tabs plugin basic integration remove the
>> following lines :
>>
>>  <script type="text/javascript" charset="utf-8"
>>     src="/sgddms/static/plugin_**added/jquery-ui-1.8.13.custom/**
>> js/jquery-1.5.1.min.js">
>>  </script>
>> <script type="text/javascript" charset="utf-8"
>>     src="/sgddms/static/plugin_**added/jquery-ui-1.8.13.custom/**
>> development-bundle/ui/**minified/jquery.ui.core.min.**js">
>>  </script>
>> <script type="text/javascript" charset="utf-8"
>>     src="/sgddms/static/plugin_**added/jquery-ui-1.8.13.custom/**
>> development-bundle/ui/**minified/jquery.ui.widget.min.**js">
>>  </script>
>> <script type="text/javascript" charset="utf-8"
>>     src="/sgddms/static/plugin_**added/jquery-ui-1.8.13.custom/**
>> development-bundle/ui/**minified/jquery.ui.tabs.min.**js">
>>  </script>
>> <script>
>> $(function() {
>>     //var $tabs =
>>     $( "#tabs" ).tabs();
>>     //$tabs.tabs('select',  None);
>>     //    return false;
>> });
>> </script>
>>
>>
>>
>>>
>>> On Tuesday, June 28, 2011 11:54:57 AM UTC-4, Richard wrote:
>>>
>>>>
>>>>>
>>>>  Can you get a simple ajax component working in 1.97.1?
>>>>>
>>>>
>>>> I can do that : http://127.0.0.1:8000/**sgddms**/ref/create_fvte.load/*
>>>> *ref_**eregistry<http://127.0.0.1:8000/sgddms/ref/create_fvte.load/ref_eregistry>
>>>>
>>>
>>> I mean can you set up a simple example of an ajax component working
>>> properly at all (not just viewing the component by itself)?
>>>
>>
>> Yes the component work correctly without the Tabs plugin basic
>> integration...
>>
>>
>>>
>>>
>>>>
>>>> And I get my different form individually as component all right...
>>>>
>>>>
>>>>> Maybe it has something to do with your specific code. Exactly what is
>>>>> happening when ajax=True?
>>>>>
>>>>
>>>> Keep loading... for ever.
>>>>
>>>>
>>>>> What do you get in the rendered HTML for the page? Can you use browser
>>>>> tools (e.g., Firebug) to inspect the network requests and see if the ajax
>>>>> call is getting made and what is being returned?
>>>>>
>>>>
>>>> I go check ;-)
>>>>
>>>>
>>>>>
>>>>> Anthony
>>>>>
>>>>>
>>>>
>>>>
>>

Reply via email to