you can just put them as string in variable and in view call it back.

On Sat, Mar 28, 2015 at 2:49 AM, Phyo Arkar <phyo.arkarl...@gmail.com> wrote:
> You will interest in PythonJS , implementation of python in JS which
> is alot faster than python .
>
> https://github.com/PythonJS/PythonJS
>
> It support a lot of python features and compile spython to JS.
>
> On Thu, Mar 26, 2015 at 6:08 AM, Ron Chatterjee
> <achatterjee...@gmail.com> wrote:
>> I wasn't looking for a way to create python to replace javascript. Sorry if
>> it came across that way. I was more into looking a way to call existing
>> javascript.jquery using normal python syntax from web2py. But its probably
>> not possible. For example.,
>>
>> <button type="button"
>> onclick="document.getElementById('demo').innerHTML = Date()">
>> Click me to display Date and Time.</button>
>>
>> <p id="demo"></p>
>>
>> Instead of that.
>>
>> {{python_button_program}} -> and it will execute the javascript routing like
>> an executable.
>>
>> I am not very familiar with javascript. Thats why I asked. I guess, I will
>> just need to learn and get used to it.
>>
>>
>>
>> On Wednesday, March 25, 2015 at 7:13:09 PM UTC-4, Carlos Zenteno wrote:
>>>
>>> So what is the "the direction web development is taking though"?
>>>
>>> Everything in Javascript?
>>>
>>>
>> --
>> 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/d/optout.

-- 
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/d/optout.

Reply via email to