When using a date field or number field on a Word form, how can you limit keyboard input to numbers only? Setting the properties of to Date and setting a format (ie. dd-mm-yyyy) does not prevent users from using any other keys than numbers for this field. Even though the document will report an 'invalid date' when leaving the field, I wo...
Hey,
I'm building a small website with JQTouch and the first problem I've run into yet is with a form.
I have a form
<form action='action.php' class='jqt' id='ajax_post' method='post' name='pform'>
(where the name attribute is there when I tried to access it with document.pform)and within it is a ul list of a elements as follows:
...
i have created a form using visual c++. all im trying to do is this when a button is clicked the form is gone and new window will be showen. i don't know if i should repaint the window or there is another solution? please help
Rami
...
i know how to Start process with argument but im trying to create a program that uses this arguments. for example IE8 uses Process::Start( "IExplore.exe","google.com"); as a argument to open new window with url google.com. i want my program to use the argument are send it but i don't know how to get the the argument. like Process::Start(...
hi
is there a way to do an advanced filter for a Ext js datagrid
something like this :
smartclient library advanced filter
and many thanx
...
I have a series of forms in my html, the intention is that when the user clicks on the "continue" button, the current one disappears and the next one shows up. However I was wondering if there is a way of getting which "continue" button was pressed (that is, of which form) so to just have a piece of code that basically checks and hides t...
I normally use this function to sanitize my form inputs before storing them into my database:
//Function to sanitize values received from the form. Prevents SQL injection
function clean($str) {
$str = @trim($str);
if(get_magic_quotes_gpc()) {
$str = stripslashes($str);
}
return mysql_real_escape_string($str);
}
...
Hi,
I am using Forms Authentication in my VS-2005 website.
In case of wrong credentials or while explicitly requesting protected pages the website is able to redirect user to login page. However, when correct login credentials are provided the application is not able to redirect the user to the desired page.
While debugging I found tha...
My form has many textboxes. When one of the textboxes is changed, I want to send the textbox's name and its new value to a method. How do I go about this?
...
ok so I have the following problem i`ve looked around but I cant find a solution ...
lets say I have the following forms.py
from django import forms
class LoginForm(forms.Form):
_username = forms.CharField()
_password = forms.CharField()
and in views.py I have
def index(request):
if request.method == 'POST':
fo...
Occasionally, seemingly randomly, when I close a dialog form my main form seems to move back in the window order, disappearing behind the next application back (usually Visual Studio). It retains focus, so clicking it in the taskbar minimises it, requiring another click. Whenever this happens, the control colours seem to change a littl...
I am creating a Drupal 7 module. Currently my goal is to get the form to insert something into the database and then tell the user that it worked. I can get it to submit to the database just fine. Getting the form to rebuild and tell the user that their term has been submitted won't work. I keep getting variations on these alert errors: ...
Hey guys!
So, I'm writing something and I've come into a roadblock on how to do it (and what is the proper way of doing things). SO, explaining the situation will help be better understand the problem, and hopefully someone will know the answer :) Here it goes:
Basically, I'm writing up some dynamic forms in Python (more specifically D...
Hi,
This may be obvious but I can't figure out how to bind a static json object to to a FormPanel in extjs. I am new to ExtJs so I'm still learning. I have a TreePanel with various additional attributes contained on the node.attributes object. When a node is clicked id like to display the data in a form. Below is what I have. The data d...
What's the best way to have a text input field that displays instructions of what to enter in that field in gray. When you focus on that input field, the gray instruction text disappears and your input text appears black. If you erase your input text and focus away from that input, then the instruction gray text reappears.
I've tried ...
I want to create a form element that gonna output like this
select date: [day] [month] [year]
and each [box] is select box ...
how can I do it with Drupal Form api
I wouldn't want to use any fancy plugins / addons.
$form['dob'] = array(
'#type' => 'select',
'#title' => t('select date:'),
'#options' => array(1,2,3),
);
out...
Hi all,
I am working with ASP.NET MVC and have a view page with a simple text box and button to accompany it. I want AJAX to submit the form when the user clicks the search button. The response (search results) will be returned and displayed in a content div on the same page.
I have done this successfully with JQuery, but I need the sa...
I have a C# console application that runs nightly from a Scheduled Task to perform some maintenance. The application also displays a Form as a splash screen informing anyone on the system that the application is running, and shows the status.
To run the application with the correct permissions I need to run the Scheduled Task as anothe...
I often need to create html admin interfaces to administer data in tables. In other words, a page that lists all the records and lets you step through multiple pages of records, and perhaps sort or search them, along with the ability to add or delete a record, or update an existing one. Basic stuff.
I do not like to use big frameworks ...
I'm trying to display all form errors before the form using a ViewScript. Here is the code that I'm currently trying to use within my ViewScript:
<div class="errors">
<?php echo $this->formErrors($this->element->getMessages()); ?>
</div>
This call gives me an error message:
Warning: htmlspecialchars() expects parameter 1 to be str...