Sure i will work on that, and come back on you.

On Friday, 5 July 2013 19:49:43 UTC+5:30, Anthony wrote:
>
> web2py_component("{{=URL('default', 'form.load')}}" + "/" +
>       jQuery(this).val(), target='form')
>
> The above line will result in an ajax request being sent from the browser 
> when a selection is made. If you use the developer tools in the browser to 
> watch the network traffic, you should be able to observe that ajax call.
>
> As far as I can tell, your code works fine, so must be something wrong 
> with your set up. Maybe show the code for the main page and its view and 
> clarify exactly where the view code you have already shown resides.
>
> Anthony
>
> On Friday, July 5, 2013 12:58:47 AM UTC-4, Rohitraj Sharma wrote:
>>
>> No Anthony , i am loading as the main page. no same function. Actually i 
>> am not able to understand where i have to pass URL which u have shared.
>>
>> Thanks Anthony 
>>
>> On Thursday, 4 July 2013 20:59:46 UTC+5:30, Anthony wrote:
>>>
>>> On Thursday, July 4, 2013 2:59:17 AM UTC-4, Rohitraj Sharma wrote:
>>>
>>>> http://127.0.0.1:8000/appname/default/form<http://127.0.0.1:8000/admin/default/design/child>
>>>>
>>>
>>> That can't be the URL requested by the browser via ajax -- it would be 
>>> of the form /appname/default/form.load/table_name. Is that the URL you are 
>>> loading as the main page in the browser? Is the view code you're showing 
>>> the view for the form() function? You should be loading the main page via a 
>>> separate function/view, and have that page make the ajax call to the form() 
>>> function. When I try your code with that approach, it works fine.
>>>
>>> Anthony
>>>
>>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to