form

What's should setting an HTML textbox value to null do?

We have a JSON response which can contain null values (e.g. { myValue: null }) - we assign this value to a textbox on a form: (actually, we use JQuery, but this is equivalent var nullString = null; document.getElementById('myInput').value = nullString; If we assign this value to an HTML textbox value, the behaviour seems browser-depen...

CSS Multi-Column Forms in HTML/ASP.NET

I've researched for hours and still haven't found a robust, non-absolute-positioning solution for displaying multiple-column forms and values without using TABLE tags. Can someone point me to a resource specifically oriented towards reproducing table-based, multiple-column forms (like name and address forms) in CSS to standards? Most o...

windows form application

hello, i have a code in c++ of binary search trees & i want to include it to windows form application to do it by windows can any one help me how can i include the code and how to do it and any other code THANX........................ ...

submit form does not stop in jquery ajax call

I got following code : > $.ajax( > { > type: "POST", > async: false, > url: "CheckIdExist", > data: param, > success: function(result) { > if (result == tru...

How can I make form.select return a model in Rails?

I have a model called Contact which has_one guest like so. class Contact < ActiveRecord::Base has_one :guest, :class_name => "Contact", :foreign_key => "guest" end In my create view I'm using the select helper method to list all Contacts that can be chosen as a guest like so... <% form_for(@contact) do |f| %> <%= f.error_messages...

Serialize all fields

Hey, I checked out the jquery serialize docs and I am trying to find the best way too serialize all fields in my form and then print the output, the demo has something like: function showValues() { var str = $("form").serialize(); $("#results").text(str); } $(":checkbox, :radio").click(showValues); $("se...

WebClient.UploadValues Duplicate Key

I am having a bit of difficulty proxying a request on my site. In theory, this should work webClient.UploadValues(url, "POST", HttpContext.Current.Request.Form); Unfortunately, the form contains a duplicate key "elemKey" When I use HTTP Analyzer and look at the post data it shows that key three times, with three different values. Par...

Running .NET Form fullscreen

I'd like my application to be run as "fullscreen" much like a powerpoint presentation is ran. The title bar is gone and the menu bar is also gone. I dont think it should be too complicated but I just can't find how to do it ...

Javascript: Check if the user is navigating away with a form submit or a simple link click.

I need to do remind the users something when they are leaving the page, and that can be handled with the window.onUnload event. But I also need to check if the user is navigating away by submitting the form on the page, or by clicking the navigation links. I could use the form's onSubmit event to set a flag, and then check against that f...

Redirect from within an Ajax form post

I have an action method that depending on some conditions needs to return a partial view via ajax, or redirect to another Controller/Action. The correct view is returned but it is placing it in the Ajax forms UpdateTargetId rather than redirecting to a completely new page. Anyone have any idea how I can accomplish this? ...

How can I get the post data in a collection format in ASP.NET?

I am wondering how I can get the post data in a collection format? Say if I have a form and one textbox named firstname, normally i type var fn = txtFirstName.Text; to get the data from that textbox. but I am wondering when i click on submit data to post the form how i can get the collection of raw post data? thank you. I want to ge...

Firefox back button works only the first time, not the second time

Hi, I have a website where you can search on stuff with dates and more. When I post the form I get to a result-page, when I hit the back button I go back to my search-page and will refill the values. This works in IE and FF. however, whatever I do, when I search and go back again the second time, the values are lost in Firefox, while I...

PHP $_POST not working

I set up this test page up on my server. Please tell me why the $_POST array does not contain anything even when I submit the form. I have tried this in three different browsers and nothing happens. <?php print_r($_POST);?> <form method="post"> <p><label>Email: </label> <input type="text" id="login_email" /> </p> <p><label>Password: ...

what are some good css shorthands you can think of?

some that i can think of are font: bold 20px Verdana, sans-serif /* one line for variant, size, and family */ color: #336 /* short color code */ height: 0 /* no need to specify unit when 0 */ border: 0 /* same effect as border: none but shorter */ background: #ffc /* no need to use background-color if all is wanted is color *...

Automate form Submission

How to automate the submission of html form, with random text values using vbscript? ...

Adding a "remember me" box to an asp login form

Can anyone point me in the right direction for adding a remember me checkbox for a simple login page? It basically only uses a password, not a user name. Is this possible? Here's the code for the unprotected part of the login asp page: '****************** Begin UNprotected content **************************** ' ' Enter the content yo...

Strange issue with fixed form border styles in Vista

My previous post about this issue didn't got too many answers and it was kinda specific and hard to understand. I think I've managed to understand the problem better and I now believe it to be a Vista issue... The problem lies on all types of fixed border styles like FixedDialog, Fixed3D, FixedSingle and FixedToolWindow. It does not hap...

Styling form elements (select, checkbox, radio, etc)?

Styling form elements using css can be problematic since every browser render tag in different way (just like when safari render checkbox). Okay lets ignore safari for a while, skinning input and button are rather easy but how to completely skin select, checkbox, radio, etc. See this pages: Checkbox skinning Select skinning Radio skinn...

Drag a WPF Form around the desktop

Hi, i am trying to make a c# WPF form where i can drag it around the screen by clicking on it and moving with the mouse. the forms characteristics include being completely transparent and containing only one image. This being said the window style is none and it is not displayed in the taskbar. So essentially all you can see when the app...

Need File Input Element cloned from 1 form into another via PHP & Javascript

Ok, I have an in template function that get's submitted via method="POST". But I can't submit this normally, since this is all I want submitted, and there is already a tag defined above the code and than below the code, closing the form with that must remain there. Since, there is no way to have forms inside of forms, I am using Jav...