localhorst
Und daran, dass es ein Passwortfeld ist, kann es nicht liegen oder?
LTB
Login-Formular:
$form->addElement('text', 'username', array(
'size' => $size,
'class' => 'formular',
'value' => 'Benutzername',
'onclick' => 'javascript:this.value=""'));
$username = new Zend_Form_Element_Text('username');
$username->addFilter('StringToLower');
$username->addValidator('regex', false, array('/^[a-z]/i'));
$username->setRequired(true);
$form->addElement('password', 'password', array(
'size' => $size+2,
'class' => 'formular',
'value' => 'Passwort',
'onclick' => 'javascript:this.value=""'));
$password = new Zend_Form_Element_Text('password');
$password->setRequired(true);
Register-Formular:
$form->addElement('text', 'username', array(
'size' => $size,
'class' => 'formular',
'value' => 'Benutzername',
'onclick' => 'javascript:this.value=""'));
$username = new Zend_Form_Element_Text('username');
$username->addFilter('StringToLower');
$username->addValidator('regex', false, array('/^[a-z]/i'));
$username->setRequired(true);
$form->addElement('text', 'email', array
'size' => $size,
'class' => 'formular',
'value' => 'Email',
'onclick' => 'javascript:this.value=""'
));
$email = new Zend_Form_Element_Text('email');
$username->addFilter('StringToLower');
$username->addValidator('regex', false, array('/^[a-z]/i'));
$email->setRequired(true);
localhorst
Also ansich habe ich alles so gemacht, wie ihr mir gesagt habt
(das sind jetzt nur ausschnitte):
PHP:Login-Formular: $form->addElement('text', 'username', array( 'size' => $size, 'class' => 'formular', 'value' => 'Benutzername', 'onclick' => 'javascript:this.value=""')); $username = new Zend_Form_Element_Text('username'); $username->addFilter('StringToLower'); $username->addValidator('regex', false, array('/^[a-z]/i')); $username->setRequired(true); $form->addElement('password', 'password', array( 'size' => $size+2, 'class' => 'formular', 'value' => 'Passwort', 'onclick' => 'javascript:this.value=""')); $password = new Zend_Form_Element_Text('password'); $password->setRequired(true); Register-Formular: $form->addElement('text', 'username', array( 'size' => $size, 'class' => 'formular', 'value' => 'Benutzername', 'onclick' => 'javascript:this.value=""')); $username = new Zend_Form_Element_Text('username'); $username->addFilter('StringToLower'); $username->addValidator('regex', false, array('/^[a-z]/i')); $username->setRequired(true); $form->addElement('text', 'email', array 'size' => $size, 'class' => 'formular', 'value' => 'Email', 'onclick' => 'javascript:this.value=""' )); $email = new Zend_Form_Element_Text('email'); $username->addFilter('StringToLower'); $username->addValidator('regex', false, array('/^[a-z]/i')); $email->setRequired(true);
EDIT: @ MyBad Glückwunsch zu deinem dreijährigen Jubiläum hier.
me.drinkCoffee();
Hm das ist ja doof... weiß immer noch keiner eine Lösung oder Ursache für das Problem?
$form->addElement('password', 'password', array(
'size' => $size+2,
'class' => 'formular',
'value' => 'Passwort',
'onclick' => 'javascript:this.value=""'));
$password = new Zend_Form_Element_Password('password');
$password->setRequired(true);
me.drinkCoffee();
<label id="Login-Password-Label" for="Login_password">Passwort</label>
<input onfocus="this.hasfocus='yes';" class="text" type="password" name="password" id="Login_password" value="" /><br/>
LTB
$form->addElement('text', 'username', array(//'label' => 'Benutzername:',
'size' => $size,
'class' => 'formular',
'value' => 'Benutzername',
'onclick' => 'javascript:this.value=""'));
$username = new Zend_Form_Element_Text('username');
$username->addFilter('StringToLower');
$username->addValidator('regex', false, array('/^[a-z]/i'));
$username->setRequired(true);
$form->addElement('password', 'password', array('label'=> 'Passwort',
'size' => $size+2,
'class' => 'formular',
'value' => 'Passwort',
'onclick' => 'javascript:password.value=""'));
$password = new Zend_Form_Element_Password('password');
$password->setRequired(true);
$form->addElement('password', 'password', array('label'=> 'Passwort',
'for' => 'Login_password',
'size' => $size+2,
'class' => 'formular',
'value' => 'Passwort',
'id' => 'Login_password',
'onclick' => 'javascript:password.value=""'));
$password = new Zend_Form_Element_Password('password');
$password->setRequired(true);
me.drinkCoffee();
$form->addElement('password', 'password', array('label'=> 'Passwort',
'for' => 'Login_password',
'size' => $size+2,
'class' => 'formular',
'value' => 'Passwort',
'id' => 'Login_password',
'onclick' => 'javascript:password.value=""'));
$password = new Zend_Form_Element_Password('password');
$password->setRequired(true);
localhorst
#Login_password{ background: url(bild.gif); }
#Login_password:focus{ background: none; }
LTB
$form->addElement('text', 'label', array('label' => 'Passwort',
'for' => 'Login_password'
};
me.drinkCoffee();
...
CSS
...HTML:#Login_password{ background: url(bild.gif); } #Login_password:focus{ background: none; }
...
Hm mit jQuerys hab ich noch gar nicht gearbeitet.. ^^"
...
me.drinkCoffee();
Na gut, dann wird es daran scheitern, weil ich mich mit Javascript (noch) nicht auskenne.
Willkommen auf PSD-Tutorials.de
In unseren Foren vernetzt du dich mit anderen Personen, um dich rund um die Themen Fotografie, Grafik, Gestaltung, Bildbearbeitung und 3D auszutauschen. Außerdem schalten wir für dich regelmäßig kostenlose Inhalte frei. Liebe Grüße senden dir die PSD-Gründer Stefan und Matthias Petri aus Waren an der Müritz. Hier erfährst du mehr über uns.
Nächster neuer Gratisinhalt
Statistik des Forums