Posts

Showing posts with the label button

Folder-button for a galleryapp (for example like )

Folder-button for a galleryapp (for example like ) At the moment I am trying to make a galleryapp with swift but I have only problems with it. Does anyone know of a starting point how to program a button on which you can create a photo album folder? What do you have to pay attention to? What kind of answer are you looking for? – Alexander Jul 2 at 0:24 If anyone knows a basically methode to program a button how I can create a foldern for new album folders – Henrik Jul 2 at 5:57 Well those are 2 separate parts, each of which could be pages of text. What have you tried to do to figure this out? – Alexander Jul 2 at 6:21 ...

Javascript: enable buttons on checkbox' check (both with ElementsByClass)

Javascript: enable buttons on checkbox' check (both with ElementsByClass) I am sorry I have to bother you guys with such a noob question, but I am trying and googeling since two days now and I just dont seem to find the point I need, or maybe I just don't understand it. The case is the following: I have two rows in a table: 1. row checkbox - 2. row button I want the button only be enabled, if the checkbox in the same row is enabled. Picture for better understanding <input type="checkbox" class="isamed" name="attr_targeted_checkbox1"> <button type='roll' class="isroll" disabled="true"> I used classes and stumbled across getElementsByClassName and the fact, that you get an array/node of objects. I tried something like this: var buttons = document.getElementsByClassName('isroll') var keyselects = document.getElementsByClassName('isaimed'); for (var i = 0; i < keyselects.length; i++) { if (...

How to Distinguish Button Presses in Tornado?

How to Distinguish Button Presses in Tornado? In the process of teaching myself how to use python's tornado web framework, I am trying to create a simple web server and some web pages. On one of the web pages, I have two buttons: one to log users out and redirect them back to the login page and one to submit a blog post. They are both "post" requests and have their name values in html set to "logout" and "new_post". My questions is, how can I tell which button was pressed so that the post() method for the page's RequestHandler can perform the correct actions in each case? Is there a way to grab the "name" of the button pressed? 2 Answers 2 When you submit a form with a button click, a parameter with the name of the clicked button gets added to the request. You can check, if the parameter exists and then do your stuff. def post(self): if self.get_ar...