JS & HTML

42 views
Skip to first unread message

hamdan k abu taima

unread,
May 30, 2014, 7:58:46 AM5/30/14
to erpnext-dev...@googlegroups.com
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

Rushabh Mehta

unread,
May 30, 2014, 12:39:39 PM5/30/14
to erpnext-dev...@googlegroups.com
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

--
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...@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.

Reply all
Reply to author
Forward
0 new messages