开发者

Looking for Documentation Pointers/Tutorials For Adding Javascript To Django application [closed]

开发者 https://www.devze.com 2023-04-01 08:41 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question 开发者_如何学编程

I would appreciate documentation and/or tutorial links to help me with the following.

I maintain a traditional web application, implemented in html, javascript, and Perl. The web site uses a third-party open source library that implements buttons. If you wave the mouse over the buttons, they indent and put up a tool tip. The site looks very professional.

I've implemented a very simplistic Django application. It does the job, but uses hyperlinks. I'd like to dress up my Django application, and make it look more professional `a la the traditional web site.

I tried this before with some simple javascript, checking fields to see if they contained a valid answer, and this did not work. As it was explained to me, it had to do with the server side processing.

Given there is no javascript already, I have no problem using a different library (JQuery) than my traditional web site.

I have no problem if someone thinks implement in html, javascript, and php, because I've got one of those applications, too. However, I'd like to continue with Django, if possible.


Javascript and Django are independent. I use Django with jQuery UI to get nice buttons but you could use any javascript library, including the one you are using in the original site.

Your existing site is either using hyperlinks, the same as Django, that are modified in the browser to be buttons (this is what jQuery UI can do as well). This is the simple case you just need to put your javascript in the templates.

If it is a complete ajax application you'll need to write Django web services to handle those.

Your best bet is to find a tutorial for the particular javascript library you are using because Django is pretty much javascript agnostic. For instance the jQuery getting started page is a good place to start.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号