forms

Using AJAX in webforms (ASP.NET)

Hi, on my webpage the user must select out of a radio button list/dropdown list of types of computer locations - i.e. network share, FTP, HTTP. I want a different popup to come up for each option in the list, and in that popup will be some input fields to enter the network path, FTP address/username/password, HTTP url etc. I'm guessing I...

Use Javascript to find text within DIV, insert into HTML form?

I'm currently working on a Safari Extension to create a printable form based upon information provided within a website. A custom CSS stylesheet wouldn't be ideal, instead I was hoping that it would be possible to do the following... If I were to have the following DIV on page called name.html <div id="name">John</div> Is there a way...

Post form into dialog window by clicking a link

Hi, everyone. I'm trying to make this piece of code work. <form name="myform" onsubmit="alert('1');"> </form> <a href="javascript: void(0);" onclick="document.myform.submit();">ok</a> However nothing happens when I click "ok". Where have I mistaken? ...

Anyone know how to save many objects in one form?

I am trying to save many new objects in a form to one pre-existing parent object. - form_for :parent_object do |f| This is the beginning of my form. And then within it, I would do: - 2.times do - fields_for :child_object do |f| Now if I were to save this, it would render as an ParentObject_Controller Update action which would...

C# - Capturing CTRL-Mouse wheel in WebBrowser control

Hi, I'm developing a Windows Forms application in C# with an embedded WebBrowser control to "dummy-proof" (i.e. disable context menus, back button, free navigation, etc.) access to a third-party web application. Right now I'm trying to add the Zoom feature to my custom browser. I have the keyboard combos working for it (CTRL + and CTR...

Attempts to reset javascript form make form disappear.

I created a form that randomly selects 12 T/F questions from an array of 16, displays them in a random order and will score it all at the end. The problem is that I cannot get the form to clear on refresh. When I try with nearly any method, the form, questions and all disappears. The reset button, however, does work. Here's the form: ...

PHP - form checkbox submit with ajax

Hi, I hava set up AJAX script that when you click the button it calls a PHP document. The problem I have is now some of the variables of the PHP file are set to constant, and now I want them to be conditional to what gets sent when the button is clicked. I want there to be a check box, that if clicked, will set a PHP variable to be TR...

Update drop down selection with radio button selection using jquery

So this is a follow up to this post. I need to replace some dropdown menus with radio buttons without modifying the HTML. In the post I linked earlier, someone came up with a really clever Jquery solution that successfully replaces the dropdown menu with radio buttons and updates the dropdown selection when one of the radio buttons is se...

Key pressed on form

Hi! I have an windows forms application, with a form that holds 2 tabcontrols and a grid. I'd like to catch the pressing of esc key on any on this controls. The question is : is it a simpler way to do that without subscribing to the keypress event on each control ? Thanks! ...

PHP: on select change, post form to self

Hi folks, It's basically what the title says.. I have a form with a select control that I want to force the form to post back to self on change. $bmsclientlist = $clientobj->getBMSClientList(); echo '<form name="changebmsid" method="post" action="' . $_SERVER['PHP_SELF'] . '"><select name="bmsid">'; foreach($bmsclientlist as $bmscli...

How can I submit my Drupal form to any other internal page?

Hello, I'm having a problem with Drupal forms. Can't think of a way to solve it and I was wondering if any brain out there has the solution to my problem. I have this form: <?php function mymodule_myform(){ $form['#action'] = url('search/cards'); $form['whatwhere']['what'] = array( '#type' => 'textfield', '#title' => t('Wh...

Submit a file element with jquery and ajax: No plugins wanted!

Hi, I'm trying to do a submit via ajax of a form that contains a file element. <form id="classic_upload" enctype="multipart/form-data> <input type="file" name="file" id="file"/> <br/> <!-- ...other inputs...--> <button type="button" id="classic_save"> Send </button> </form> What I need to do is to submit this form and check if the...

Get the text in textarea named input from browser control vb.net

How can I get the text in a text area within a form in browser control? Is there a method? ...

HTTP POST and graceful degradation

I have a web application which among other things contains a table of items created using an Ajax callback. A bunch of form fields at the top of the table allow me to filter the items that will be displayed in the table according to various criteria and show it. Some parts of the table have lists of items with an [X] marked next to the...

Drupal form autocompleted with data from a database by ahah, how to do it?

I'm trying to do it for hours now, and I just can't do it. What I want is: A radio or select drop-down with varying options (from the database). This part is ok, it's just a query and building the options. Then there are 3 text fields, each option from the above form has data for these 3 text fields. When the user clicks/selects one ...

How to extract PDF fields from a filled out form in Python?

I'm trying to use python to processes some PDF forms that were filled out and signed using acrobat reader. I've tried: The pdfminer demo and it didn't dump any of the filled out data. pyPdf, it maxed a core for 2 min when I tried to load the file with PdfFileReader(f) and I just gave up and killed it. Jython and PDFBox, got that worki...

simple_form, wrap radio buttons and checkboxes

Is there a possibility to wrap checkboxes and radio buttons together in a unordered list ? When not, How I can display them vertically ? I know this is layout related, but still a programming question. ...

Custom Zend_Form element disappearing after validation

I've created a custom form element that allows me to place text in an arbitrary location in my form: <?php class Plano_Form_Element_Note extends Zend_Form_Element_Xhtml { public $helper = 'formNote'; /** * Default decorators * * @return void */ public function loadDefaultDecorators() { if (...

Checking for no input in dynamic fields

Basically, I have a form that generates a certain number of "types of publications" depending on "departments" input before someone is filling out this form. (Department specific publication types that are recognized.) There are a couple of fields that go with each publication type...(they are the same fields, so each type will have ...l...

How can I display PDFs (preferably using python) so that I can get coordinates of the mouse in points?

I'm trying to create a 'fillable' PDF form. I have code that draws rectangles and text onto an existing PDF when given a list of coordinates and data, but I need to build (or find!) a tool to generate these lists of coordinates. I want to be able to draw a rectangle and save the coordinates and size of it. (If this were a raster image, i...