Did you try:

$(document).ready(function() {
  myfunction();
});

Anthony

On Sunday, January 12, 2014 3:48:48 AM UTC-5, jonas wrote:
>
> I just wanted to see if it's possible to call custom made js functions 
> using jQuery. I found that it is possible to call by using this function:
>
>   $(document).ready(function() {
>   $(function_call());
> }
>
> css tags can also be added. 
>
> but it is simpler to just use myfunction();
>
> In the web2py book all examples covers jQery effects but I couldn't find 
> any information about calling custom made js functions. 
>
>
>
> On Sun, Jan 12, 2014 at 4:41 AM, Anthony <abas...@gmail.com 
> <javascript:>>wrote:
>
>> It's not quite clear what you want to do. You wouldn't use ajax to call a 
>> JavaScript function. If you want to call a JS function in the browser, just 
>> make sure it is loaded on the page and call it.
>>
>> Anthony
>>
>> --
>> 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 a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/rinBxmv6diM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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/groups/opt_out.

Reply via email to