Js & html

Hi , 
I have created new module with one page , 
now all I found are the python file and javascript file , I understood that we have to generate html from js file , 
but we need to know if there is a better way work with html files also .
exactly like using the template engine .
- I have created a new html file next to js , py files and it works but whatever JavaScript is in html it wont run it !!!!
- how can we benefit from template engine at new custom desk applications .

Thanks



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2158f2d4-1b86-4e41-bd42-49b98a0f34c0%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Templating engine was not designed for desk, though you could use it.

Templates can be called by simple routes like "/my_table" via ajax and rendered in a div.



@rushabh_mehta

On 30-May-2014, at 5:28 pm, hamdan k abu taima <ph...@gmail.com> wrote:

Hi , 
I have created new module with one page , 
now all I found are the python file and javascript file , I understood that we have to generate html from js file , 
but we need to know if there is a better way work with html files also .
exactly like using the template engine .
- I have created a new html file next to js , py files and it works but whatever JavaScript is in html it wont run it !!!!
- how can we benefit from template engine at new custom desk applications .

Thanks



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2158f2d4-1b86-4e41-bd42-49b98a0f34c0%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/0CA4ED06-E2AE-42CE-805F-8CC284C6B9C7%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.