Can I disallow web browser autocomplete?
You know how browsers autocomplete text boxes? Apparently this confuses users. They see it as a short list with only limited options. Does anyone know how to disable autocomplete? ...
You know how browsers autocomplete text boxes? Apparently this confuses users. They see it as a short list with only limited options. Does anyone know how to disable autocomplete? ...
Note: Posting this as a separate question as per Brian's comment (from http://stackoverflow.com/questions/892624/how-to-handle-multiple-models-in-a-rails-form) I'm trying to learn the best way to handle multiple models in a single rails form, when the models are both nested and non-nested. For the nested ones, I found these two tutoria...
Hello, I have a simple form that looks like so <% remote_form_for post, :url => post_path(post), :method => :put do |f| -%> <%= f.submit "Approve" %> <%= f.submit "Deny" %> <% end -%> Which renders <input type="submit" value="Approve" name="commit"/> <input type="submit" value="Deny" name="commit"/> In my controller I have the ...
Well I have a survey on a website, and there seems to be some issues with the users hitting enter (i don't know why) and accidentally submitting the survey (form) without clicking the submit button. Is there a way to prevent this? I'm using html, php 5.2.9, and jquery, on the survey. ...
Technically this might not be classed as a programming question, since I have already implemented a solution. But it's an interesting issue in the tech field nonetheless. Anyway... I set up a basic contact form, without any spam protection. On discovering that it wasn't working, I ignored it and set up a Javascript to change all links p...
I have a problem with a Windows Forms control wrapped up in a DLL and deployed to IE within an Object tag. The object should return a string which Javascript puts into a hidden field ready for posting back to the server. This is an approach I have used several times, but I am now getting the dreaded "Object does not support this method o...
I have a page which should show a form with checkboxes, post back if it is checked or not, store the result in the database, and then on next loading of the page show the checkbox as checked, and update it as unchecked as necessary. I understand my solution having the floating "checked" is not ideal, but it works fine, and I want to sti...
Hey everyone, I am trying to use reCaptcha on my site, and recaptcha_challenge_field, and recaptcha_response_field are not being added to the $_POST array on the backend - but the rest of the variables from my form are. Any ideas? I have double checked the public/private keys. Here is the generated HTML: <form action='myform.php' na...
Is there a Rails library that allows you to insert form buttons and use them as hyperlinks instead? I think I've seen it somewhere before. ...
I have a small application in which i have 9 different forms, and every form have a least 40+ fields where the user must enter some data. I have written each form in a single php file and made a master PHP file where i only add the form in the middle of the page. My question is: I don't want to write 9 different function for each form...
I am trying to code a function which creates a dropdown of school names selected from a database. It is doing fine creating a dropdown but it is not putting anything in the dropdown. Here is the code: function schoolDD($name, $selected){ $select = ''; if( $selected != null ) { $select = $selected; } $qry = "selec...
I know how to set initial values to a form from the view. But how do I go about letting a generic view set initial values to a form? I can write a wrapper view for the generic view, but I still have no access to the form object instantiation. The specific goal I'm trying to achieve is to have a user create a new object, using the create...
we have a django app on nginx where users upload media files. the media are huge such as 30min tv and radio programs resulting 100-300mb, and our shared hosting limits the upload to 30mb. how to embed a smart uploader which will put chunks of 20-30mb instead of trying to upload the large file? we would like not to destroy our highly edi...
i have the following relevant code in the header of my html doc: test1.value = System.Gadget.Settings.read("Date1"); And I'm trying to display the test1 value in the body of my html doc. It displays when i use: <input type="text" id="test1" /> But isn't working when i use (in the body): <script type="text/javascript"> documen...
I am trying to add a custom property to a base form that can be accessed via the Delphi property editor. If I simply add the property as I would with a standard component the property won't show up in the property editor. Here's what I tried: unit TestForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Con...
Hi, I have this- en.wikipedia.org/w/api.php?action=login&lgname=user&lgpassword=password But it doesn't work because it is a get request. What would the the post request version of this? Cheers! ...
In the controller, I have... function update($id = null) { $this->load->database(); // more code $data = array(); $data = $this->db->get_where( 'users', array( 'id' => $id ) ); $data = $data->result_array(); $data = $data[0]; // more code $this->...
If I set my Form method to GET it will send the action page something like this: action_page.php?key=value&foo=bar But is there a way to make it send like this: action_page.php#key=value&foo=bar Because the page receiving the values relies on hash variables. Thanks! ...
I am using Spring MVC's SimpleFormController in conjunction with Spring MVC's form JTL to create a form to edit a Generic object. On my form I have a drop down where the user can specify a server via a drop down. <form:form commandName="generic"> <form:select path="server"> <form:options items="${servers}" itemValue="id" it...
I am trying to increase the value of upload_max_filesize to 10485760 (10M). I am using: ini_set('upload_max_filesize',10485760); This is always returning false and the upload_max_filesize continues to be 2M. I am using php 5.2.8 on windows and I don't have the ini_set disabled and am also not with safe mode on. Anyone know why this ...