how to have popup window and print it

91 views
Skip to first unread message

163 email

unread,
Jan 27, 2015, 10:09:23 PM1/27/15
to django-users
hi.
i'm new to django. i'm try using django1.7 with jquery ,bootstrap.
 Now i have a webpage , i want:
  when click a  link , there is  a new popup window, and form with data from database 
  in  popup window,and then print contend in the popup window.
but i did not find how to do it just using django in doc of django.
is there anybody can tell me how to do it with  example code .
Thanks!   

Rafael E. Ferrero

unread,
Jan 28, 2015, 6:30:48 AM1/28/15
to django...@googlegroups.com
IMHO - You can't find anything in Django because it's not a Django problem.
The popup windows you can do it a little of javascript [1] and for print you can do a button in html and use javascript for print the page onclick="javascript:window.print();" (something like this, i think)

Fill with data your popup it's a Django job... with views you can solve it.

--
Rafael E. Ferrero

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/201501281108172507659%40163.com.
For more options, visit https://groups.google.com/d/optout.

163 email

unread,
Jan 28, 2015, 7:44:57 PM1/28/15
to django-users
Thanks Rafael E. Ferrero a lot . this is what I want.
Web programing is really hard to me as a shell programmer.
Hope I can know it well soon.
 

163 email
Reply all
Reply to author
Forward
0 new messages