forms

In safari extensions, form onsubmit doesn't work!

Alright, now I am downright bewildered on what is happening. I am creating a safari extension called unibar(which is a separate toolbar extension, not a toolbar item), a clone of Chrome's address bar. what I want so far is to at least create a regular address bar, and build from there. Here is my bar.html file, which is connected to t...

Upgrade to Rails3 from Rails3.rc2, and forms are blank...

Using ruby 1.9.2 if I change gem 'rails', '3.0.0.rc2' to gem 'rails', '3.0.0' None of my forms render. My forms all use <%= %> and everything works great in rc2. I don't even get any errors. <%= form_for(@user) do |f| %> Not even this text would render.... Its not even hidden on the page. <% end %> This is my GEMFILE: ...

C# - Gets user input, convert the inputted data and then output it into a text box

I'm trying to compile my first C# application (based on Visual Studio) ... also using Windows Forms for input (from user) and output. User puts numbers into six text boxes (e.g. 2009 20 02 02:49:35) and then when the 'Convert' button is clicked, the program outputs E1234FB3278DC0 in a different text box. Not sure if this is relevant bu...

generate forms from models in CAKEPHP

hey has anyone successfully done this, do you have a simple example of this? the goal is to build a frontend to create the form thus the form variables being saved in the database. do i need to know what fields are being saved /mirror with another table or can one do this in the same table? ...

Process sleep when form loses focus

While writing a server application with a windows form for a GUI a problem appeared. When a form loses focus the process sleep, so any networking will not work unless the form is in focus the whole time. Is there any way of creating a dialog or window that will keep its process running continuously? I call a function called cServer::Ge...

How to validate all fields with the same function in JavaScript?

Hi. I need to do the following, but I couldn't find any example of similar form validation on the web: <script type="text/javascript"> function something(){ if the value on the field who is calling this function == 2,4,6 or 8 alert("This number is invalid") focus in this field. </script> Field1 call something() Fi...

One form, multiple submit buttons and submit links

Hi, I have web form with multiple submit buttons. To determine which button was pressed, each has a different name, like so: <input type="submit" name="foo" value="Foo Foo"> On the form there are also normal links that act as submit buttons, like so: <a href="" onclick="parentNode.submit();return false;"> Bar </a> My question is h...

How to pass Post (variable) info to a second page

I have an HTML order form that collects info and then on submission passes that to a PHP form which sends an email. Then I have the PHP form forwarding to a PHP confirmation page. I am using the POST method on my HTML form. I am forwarding to the PHP confirmation page with header() after it sends the email. Everything is working fine...

Grab data from a form and display in browser (PHP)

I am trying to grab data a user selected from a drop down menu. User either selects view all, option 1, option 2, or option 3. I have a function called getUserCategory that stores the user choice in a variable called $category. I tried getting the value of the function by doing: return $category inside the getUserCategory function and...

Rails 3: Custom error message in validation

I don't understand why the following is not working in Rails 3. I'm getting "undefined local variable or method `custom_message'" error. validates :to_email, :email_format => { :message => custom_message } def custom_message self.to_name + "'s email is not valid" end I also tried using :message => :custom_message instead as was sug...

Standardizing of password strength algorithm

Last couple of months I've been wondering about all these password strength meters on websites. If you use the same password in every of those registration forms, the result on meter is sometimes different. One say "Strong" other say "Normal" and there are probably some that would even say "Weak". So the question is, what if there would...

jQuery Fancybox contact form not submitting

I've set up a Request for Callback form that pops-up when a use clicks a button link, using Fancy Box. However, when the form is filled out and 'Submit' is clicked nothing happens. The contact form is linked with a form action to /success.php. This page has a script that should send an email notification to the site owner and this scrip...

How redirect user with all variables coming with POST

I have a html form with action="script1.php" In script1 I need write all data to the database and redirect to script2.php, but I need all parameters posted to script1 to be sent to script2. mod_rewrite is on How I can redirect using PHP with all data come through POST ? if i do like that this disgusting practice but <SCRIPT LANGUAGE...

Arabic presentation forms B support in c#

I was trying to convert a file from utf-8 to Arabic-1265 encoding using the Encoding APIs in C#, but I faced a strange problem that some characters are not converted correctly such as "لا" in the following statement "ﻣﺣﻣد ﺻﻼ ح عادل" it appears as "ﻣﺣﻣد ﺻ? ح عادل". Some of my friends told me that this is because these characters are from ...

Can a user language change form values in html?

Hi there, My application has a form with 2 submit buttons: <input name="rating" class="Show" type="submit" value="Show answer"> <input name="rating" class="Skip" type="submit" value="Skip"> However I noticed some errors in GAE logs: ValueError: invalid literal for int() with base 10: 'Voir la r\xe9ponse' ValueError: invalid literal...

PDF upload by user in Drupal

Hello all, I am developing a site for an International Conference. I want the registered users to upload their research papers in pdf format using a form. I have no previous experiences working with a CMS. ...

Activate SQL query without using a form button using PHP and not JavaScript

Using a dropdown menu, I'm to figure out how to activate SQL query without using a form button. Query triggered automatically on user selection. The code I have so far uses a button to do the queries. (For now only viewing the "View All" --or view specific product type works. The "order by price" high to low, low to high, will be posted...

How to catch non-aspx files with a http module?

How to do it? If I make a http module it only catches .aspx files. Files with other extensions (.js, .htm) are ignored. Does this have anything to do with IIS? Strangely enough all extensions are caught on the ASP.net Web Development Server but not when hosted in IIS. ...

Polymorphic Association with Comments - Ruby on Rails

I am having a bit of trouble getting these polymorphic associations to work completely. I followed this tutorial www.railscasts.com/episodes/154-polymorphic-association, but that seems to only work if I am path /controller/ID#/comments when making a new post. If I try to render a partial comment form right on /controller/ID# I get this e...

Recommend visually appealing table-driven web forms management framework?

Nearly all our work is "by hand" with some excellent in-house frameworks. However, these are for ERP-style applications and are (sometimes too) complex. Working with more business-critical applications, one focuses on function and not pleasantry. We have a need to bring up some non-trivial "external-facing" data entry forms. There wi...