Hi, I've writen a servlet that builds an html page showing the content of a database. The code is:
Statement st = (Statement) conexion.createStatement();
ResultSet rs = st.executeQuery("select * from audiolist" );
while (rs.next())
{
contador++;
out.println("<tr>");
String k = rs.getString("Tittle");
...
I am trying to accomplish something along the lines of this:
http://devblog.jasonhuck.com/assets/infiniteformrows.html
But... I want to display a dropdown select field, with values 1 to 20, and depending on which value gets selected in that field that's how many input fields I will display to a user to fill out on the page (without ref...
I can't get Safari to submit forms to a page that is protected by .htaccess.
I have reduced my test page to:
<html>
<body>
<?php
if(isset($_REQUEST["name"]))
echo "<p>You entered: ", $_REQUEST["name"], "</p>";
?>
<form method='post' action='index.php'>
<p><input type='text' NAME='name'>
<input type='submit' name='send'...
The title is a little vague, but I can't explain it in the character limit.
I'm creating a little splash screen with dialogues that appear as you hover over certain triggering links. Two of these contain forms (log-in prompt and a registration form). At present, if you hover over either the link or the dialogues themselves they remain a...
I've been searching around this morning and I'm not finding any simple solutions... basically, I want to capture a change in an input element, but also know the previous value.
Here's a change event and an input element in its simplest form. Clearly, I can get the new value with $(elem).val(), but is there a sneaky method I'm missing f...
Is there a way to specify what forms are Locked when opening a Modal Dialog?
I want to have a specific form available even if a Modal dialog is opened.
The form in question is a child form (Accessible from the Windows application bar), that is created from the main application form. The Modal Dialog should only lock the main applica...
I have two forms for my application, that are visible in the Windows taskbar. When a modal dialog is popped up on the main form, the secondary form is locked. However, when the user clicks on the secondary form on the taskbar, it appears over the modal dialog box, and is basically frozen.
Is there a way to ensure that the modal dialo...
I'm using the jQuery Form plugin to do an 'ajax' submit of my form, which consists of about 4 radio selects. However, I want the form to not submit if none of the radio buttons have been selected.
Here's my attempt so far, helped by so code I've found in another SO answer and the plugin docs:
$(document).ready(function() {
var option...
How would one create a form element/button that can be styled/scripted to behave as a sliding/toggle button, similar to:
example toggle gif
By clicking on the arrow, it would submit the form and change the status to "on" if it was off, or "off" it was on, updating the visual representation accordingly.
...
I'm not able to get this to work at all.
Getting not defined for all of the available functions.
Everything is loaded correctly too.
Here is the link to the example.
Thanks,
Mike
...
Hi, I'm trying to create an auto complete field (using the script.aculo.us plugin) in a form for a category select, but I want the auto complete list to display a number next to each category (the number of other things in the same category). This is similar to the Tags field on stack overflow.
Right now I can display the number I wa...
I have 3 .blur's and only the first one works for some reason. here's the jquery code:
<script type='text/javascript'>
$(document).ready(function() {
$("#user_name").blur(function() {
if ($(this).val().length > 4) {
$("#usernamecheckbox").html("<img src='images/checkmark.png' alt='' />");
} else {
$("#...
I have a table for a subscription list in Oracle with several columns where one is a NUMBER (0/1) since Oracle doesn't have a boolean type.
It might look something like this
| NAME | FLAG | DATESENT |
+-------+-------+----------+
| Feed1 | true | 07/22/09 |
+-------+-------+----------+
| Feed2 | false | 07/22/09 |
+-------+-------+-...
Hi, I was wondering if it is possible to "automate" the task of typing in entries to search forms and extracting matches from the results. For instance, I have a list of journal articles for which I would like to get DOI's (digital object identifier); manually for this I would go to the journal articles search page (e.g., http://pubs.acs...
In one of my projects I have used input[type="button"] to apply a style to all the buttons. It works fine in all browsers except Internet Explorer 6. It doesn't style the buttons.
Is there a solution for this, like creating some class for the button and applying it to all buttons?
I want to apply that class to all buttons but not manua...
I have a registration form which I need to validate before submit. The form has the following fields:name,email, and password. I need the name to have a value, the email to have the correct format, and the password to be at least 6 characters.
What is the best way to do all this validation and hightlight incorrect fields live before sub...
I have multiple fields both asp:DropDownList's and asp:TextBox's. I also have a number of user roles that change the Visible property of certain controls so the user cannot edit them. All of this data is saved with a stored procedure call on PostBack. The problem is when I send in the parameters and the control was not on the page obviou...
Im Looking for a simple solution to stop a login form from submitting with empty input fields. The code for the form is below. I would like to use a simple Javascript soluiton if possible.
<form id="login" method="post" action="">
<input type="text" name="email" id="email" />
<input type="password" name="pwd" id="pwd" />
...
How can I get form inputs real time and use them to change the background color of elements?
I have an input field that will accept six digit hex values:
<input name="acct-bcolor" id="acct-bcolor" class="color" value="141414">
Thanks in advance.
-B
...
When a user submits a form and leaves certain fields blank, they get saved as blank in the DB. I would like to iterate through the params[:user] collection (for example) and if a field is blank, set it to nil before updating attributes. I can't figure out how to do this though as the only way I know to iterate creates new objects:
col...