2
голосов
3ответов
1522 просмотров

How do I know if a form has been modified

I Would like to know if there is anyway I can check if a form has been modified. eg. If one of the inputs has been changed I would like to display a button to submit the changes.

0
голосов
3ответов
756 просмотров

Go to a new page, but still have GWT variables?

In GWT, I would like to do something like a form submission that takes me to a new page, with new style sheet and new static elements, and when I get there, be able to extract the values of GWT variables still in GWT. In other words, I want to do most of the form processing on the client side in...

7
голосов
9ответов
25928 просмотров

C# Anchor property doesn't seem to work

I added some controls to my form and changed Anchor property how I'd expect this to work, but when I resize the form at the runtime, the controls stay at the same place. For example, I have two buttons in bottom right corner of a form - they are on the form, no containers or anything like that. ...

0
голосов
2ответов
290 просмотров

How do I keep a form from going blank while my program working with out using a background worker?

On a regular basis I find myself writing little utility programs that use some loop which takes a while to process. Yet while the loop is going the form no longer refreshes so if you were to move the form, or move another window over it and off, the form would be blank until the loop finishes. N...

1
голосов
5ответов
121 просмотров

Add text inputs based on user's requirement

<form action = "numbericalInput.php" method = "Get"> Please enter the number of input areas you wish <input type = "text" name = "amountOfEntry"/> <input type = "submit" name = "GO"/> </form> <?php if(!empty($_GET("amountOFEntry")){ for($i = 0; $i < $_GET("a...

1
голосов
2ответов
3729 просмотров

Posting a form through popup in Rails

I have a model called Details, and two controller methods new and create. New method displays a form to create Details (in new.html.erb), which gets posted to the Create method that saves it. (when it succesffully saves, it it renders the new.html.erb file with the details.) This works as expecte...

2
голосов
2ответов
15475 просмотров

Java applet to upload a file

I am looking for a Java applet to read a file from client machine and creat a POST request for PHP server uploading. PHP script on server should receive the file as normal file upload in FORM submit. I am using the following code. The file contents are passed to PHP script but they are not cor...

0
голосов
1ответов
618 просмотров

Detect when autocomplete is visible

I am catching the enter on keypress in my form to prevent it from submitting the form unless it is the last input; otherwise, it acts as a tab (finds the next input and focuses on it). Any ideas on how to not trigger event.preventDefault() if the browser auto-complete is being selected?

16
голосов
4ответов
4386 просмотров

What restrictions should I impose on usernames

What restrictions should I impose on usernames? why? What restrictions should I not impose on usernames? why? P.S. db is via best-practice PDO so no risk of sql injection Thanks

0
голосов
3ответов
175 просмотров

How to implement automatically select item in a html and click submit?

I have a website, and username and password, and usually I will login the website with the username and password, and select some items in check boxes and submit them to execute actions. but right now i need to write a application to select the checkbox by some keywords and submit them automati...

1
голосов
1ответов
1894 просмотров

jQuery script doesn't work in safari when button is disabled

I wrote this simple piece of code to prevent a form from being submitted more than once. jQuery.fn.preventDoubleSubmit = function() { this.find(":submit").each(function() { $(this).click(function() { this.originalValue = this.value; this.disabled = true; this.beenClicked...

2
голосов
4ответов
1726 просмотров

How to prevent form submiting before DOM is ready?

I'm using javascript to validate the form, but can't handle the case when the form is submitted before DOM is ready I tried : <form method="POST" disabled="disabled"> <input type="submit" /> </form> But the form can still be submited.

0
голосов
5ответов
151 просмотров

mysql & php - query for record with all or fewer values, but not more

(SOLVED, SEE END) I need hints on the PHP or MySQL code structure for the following: Let's say you have X unique boxes, and Y types of fruit. Each box can contain one of each type of fruit. Some boxes might have only 2 types, some might have every type. All boxes have at least one type. For t...

0
голосов
1ответов
150 просмотров

change the return of to_param by action? or, terribly broken edit action if perma-url is returned instead of id

I did some stuff to have to_param return a perma-url so I'd have seo friendly links. Upon creation and update it will generate and return the perma-url in a to_param method that I put in the model. However this causing me some grief in other areas. I have a form that looks like this: <% @a...

1
голосов
2ответов
2842 просмотров

not getting radio button values in jquery ajaxform

I have a form which is binded to a JQuery Form (AjaxForm) object. In the form I have some radio buttons: <input type="radio" id="dialog_stranka_dodajuredi_tip_fizicna" name="dialog_stranka_dodajuredi_tip" value="2" /> Selection 2 <input type="radio" id="dialog_stranka_dodajuredi_tip_pr...

1
голосов
1ответов
142 просмотров

How do I use inline formsets to link two or more forms?

I have the following models and I'd like to use them to generate a contact form...now I know I'm suppossed to use inline formsets, but I've never been able to make heads or tails of how to make this work...I want to have the first name, last name, email, phone number, best time to contact, and th...

2
голосов
2ответов
1032 просмотров

Form calculator using Each() and Children() in jQuery

Im trying to build a form that calculates a total price based on a series of drop down boxes with string values such as "This option costs £30" i know this is not ideal but im putting this together as a hack for an existing script For the most part ive got it working however im not sure how to r...

4
голосов
3ответов
4875 просмотров

Strategies for preserving form data ( on tab/browser close )

I have an issue with a task management application where occasionally users close their browsers/tabs and the information which they type goes away because they accidentally close a browser/tab, resulting in the loss of the text which they've entered ( and some can spend half an hour entering in ...

5
голосов
4ответов
2587 просмотров

Is https retained on relative form action URLs?

Consider a page with a form that is visited via https. If the form action has a relative URL to the form page, is the https protocol retained? Ex: you visit: https://example.com/cart.html which contains the form tag: <form name="form1" method="post" action="SubmitOrder.aspx" id="form1"&g...

0
голосов
1ответов
565 просмотров

C# webbrowser sudden refresh

I use Visual studio 2008. In my form there is a System.Windows.Forms.WebBrowser control. I have a custom header in the form just above the webBrowser control. In the webBrowser there is a form with a select/drop-down thing made with html. When I click the drop-list and it overlaps the custom head...

0
голосов
5ответов
386 просмотров

Am I using onchange incorrectly?

I'm trying to have a value (key) that updates to correspond with a number in a textbox (angle) divided by a value (25). However, for some reason, the changeMe function doesn't seem to be executing. Am I using onchange incorrectly? <script type="text/javascript"> function changeMe(x) { var...

5
голосов
4ответов
9192 просмотров

How To ? Form Post to Multiple Locations

I have a form which I need to POST to multiple scripts. How can I do this the simplest way? I know it could be done with Javascript, Curl or Snoopy class, but really which is the most simplest and best way to do this. One of the scripts sends email and it's a php file, the other is hosted elsew...

0
голосов
1ответов
591 просмотров

Select element: Short and Long names without javascript?

Is there a non-javascript method to allow a element to show short display text when collapsed and longer text when expanded? I came across the "label" attribute for but it is only supported in IE7+. Example: The expanded menu would display: Philosophy 101 Religious Studies 202 Intro to Medi...

1
голосов
2ответов
2688 просмотров

C# - Make form semi-transparent while moving

Is there any way to make the form semi-transparent while it is being moved and then become opaque when it's not being moved anymore? I have tried the Form_Move event with no luck. I'm stuck, any help?

1
голосов
5ответов
116 просмотров

why this javascript is line is Right and the other isn't

javascript with> var customer=document.getElementById('custList').value; and that works... Why does it work BUT... var customer=(form1.custList.value); I get an error that form1 is not defined. Especially why would this work in IE, and Chrome but not Firefox. It seems just as clearly ...

0
голосов
1ответов
788 просмотров

C# - Form opacity is always 100%

For some reason, my form is always at 100% opacity. I've tried changing it by using the properties window. For example, I changed it to 40% but when I ran the program, it is 100%. Are there any known reasons for this? I've looked throughout my entire code and nothing is changing it to 100%. ...

0
голосов
1ответов
24 просмотров

Can I use a base class method to enable a variety of ui controls in .net?

I need to write a delegate for a worker thread that will handle a wide variety of form controls (buttons, textbox, list...) enable method. I'm thinking they must all be derived from a base class that handles the enable property, but I'm not finding any documentation, nor am I sure how to call the...

0
голосов
1ответов
993 просмотров

rails multiple form selects

I have a rails form with 2 selects where one of them depends on the the selected value of the other. So if I have 3 users and 5 items per user, once a user is selected I want the items selection to contain only the items specific to that user. Sounds pretty straightforward but I'm having a very...

13
голосов
2ответов
5042 просмотров

How can I avoid iphone safari first letter in caps

I am designing a small webpage targeted for the iPhone/iPod touch. I have a form that requires the user to enter a code. When you tap on the corresponding field, the iphone will automatically set the first letter to caps. Is there any way to avoid this? I want the whole field to be entered in sma...

4
голосов
2ответов
19165 просмотров

Drupal - Set default value in hook_form_alter?

Trying to prepopulate some of my form fields, and am using hook_form_alter(). I've tried a couple of different ways, but in both cases, the fields still come up empty. I'm assuming that I need to set default_value and not value because if the user changes what's in the field, I want that to upd...