Using ASP.NET 2.0.
I'm using Forms Authentication on two sites. The two sites have the same machine key and thus it is possible to log into one site and go directly to a URL on the other site without the need to log in again.
However, I now wish to call a web service on the other site from the code behind on the current site. I need ...
Is there a way to submit an HTML form using JavaScript that is guaranteed to work in all situations?
I elaborate. The common approach seems to be:
formElement.submit()
That is all good and well except for one thing. Fields of a form are available as attributes of formElement, so if there is a field with name or id "text1", it can be ...
Lately I've been using client-side jQuery scripts to fill in forms when users edit records in a custom CMS I've built. Server side script is PHP.
How to do it isn't my issue. My question to you is opinion seeking. My clients have to have javascript turned on to use my CMS which so far hasn't been a problem as most users don't take i...
Problem: I have a comment page with each comment box having a 'reply' button. Now the reply buttons have a jquery live click binding on them which when triggered loads the appropriate comment form via ajax. Besides the usual fields, each form contains a captcha input also. After the form submits successfully (or otherwise), i refresh the...
All,
I can reset all my form elements using the following JQuery Syntax:
('#myform')[0].reset();
How can I modify this to exclude the reset of "select box" values?
Thanks
...
I've been looking at the new options available in HTML5 forms, such as declaring input types as "email", "url", and "number", as described here.
How can I use these in conjunction with the rails form builders? I have tried
<% form_for @user do |f| %>
<%= f.email :email, {:placeholder => '[email protected]'} %>
<% end %>
But that does...
Hi There,
Is there an easy way to populate one form field with duplicate content from another form field? Maybe using jQuery or javascript?
Thanks,
Jack
...
I am porting a Delphi application to FPC/Lazarus and this application shows info in splash screen. When unit has initialization section then this initialization section calls something like:
Splash.Info(unit_name)
This works in Delphi, but when I compiled this using FPC/Lazarus then I got exception when I create form with splash scre...
Hi all,
I have the following view code:
def activate( request = '', actkey = "" ):
message = ""
if len( actkey ) != 40:
message += str( len(actkey))
if request.method == 'POST':
form = ActivateForm( request.POST )
if form.is_valid():
actkey = request.POST['actkey']
...
I'm using the JQuery validate plug-in to validate my form. I have 4 fields that are related: ev_start, ev_end, ev_starttime and ev_endtime. The first two are dates, are required, and ev_end must be after ev_start. The second two are times and may or may not be required, but ev_endtime must be after ev_starttime if they are entered.
If...
As part of a subscriber acquisition I am looking to grab user entered data from a html form and write it to a tab delimited text file using php.The data written needs to be separated by tabs and appended below other data.
After clicking subscribe on the form I would like it to remove the form and display a small message like "thanks fo...
I'm writing a contact form in ASP.NET MVC. The user will have the ability to attach regular files (using normal file / browse functions) as well as the ability to search for a particular person and attach files related to that person. The first part is simple enough, but the second part is what's giving me headaches.
For the second part...
Im having problems understanding the app logic to this password reset code i found below on the web.
A user receives a an email with a
link with some reset code.
After clicking on this they go to
the action below called reset
The user is found in the db by
referencing the reset code.
The form to change password is shown
and the user e...
I have a form on my PHP page which performs some ajax validation (that's working). Here's a snippet (the live form has more fields than this)
<form name="form" onSubmit="return validate_form();" action="submitform.php" method="post">
<table border="0" cellpadding="5" bgcolor="#000000">
<tr>
<td width="175...
Today, I have looked into HTML code of facebook.com, and found something like this:
<input type="hidden" value="€,´,€,´,水,Д,Є" name="charset_test"/>
It's repeated two times inside the <form>...</form>.
Any idea what this code might be useful for - some kind of server-side client charset detection? As far as I know, browser charset is...
I'm trying to compile a module from forms, with included header files. First, if I have the module in a source file, everything works fine.
user.hrl
-record(user, {name :: string()}).
zed.erl
-module(zed).
-export([f/1]).
-include("user.hrl").
f(User) ->
User#user.name.
shell
1> compile:file(zed, [return]).
{ok,zed,[]}
2> rr...
Hi All,
I'm trying to build a form field that can either accept a text entry, or select an option from a dropdown. In rails, the autocomplete plugin is close to what I need, except I want the dropdown to be available before the user types anything in the text field. Is there an example of this out there somewhere?
thx for the help,
-...
hello- I am working on an application in which there is one main form and several other forms that can be used concurrently. when A user clicks to open another form, I'd like to make it so that clicking the button for the form does not open the form up again if it is already open.
showDialog wont work because the user still needs to ha...
Design question for RESTful APIs: one of the input parameters to my API (that is, the data sent from the client to my API) is a dictionary (hash / key-value pairs). What's the best way to encode this so that the API can be easily invoked from web pages as well as scripts/programming languages?
My first thought was to json encode the obj...
I have built a multistep form using CCK, however I have a couple of issues outstanding but, not sure if CCK can help.
In one step of the form I have 2 select boxes, the first is auto populated from the vocabulary table with the following code and all woks well.
$category_options = array();
$cat_res = db_query('select vid, name from voc...