Zum Inhalt springen

powermail validation problem

Erstellt am 29. April 2009 · 8 Antworten · letzte Antwort am 30. April 2009

Tags: Frage

Rupali ·

hallo,
mein powermail seite hat folgende fehlermeldung (firebug🙂:
validation is not defined:
var valid = new Validation('kontaktformular', {immediate : true, onFormValidate : formCallback});

IE7 sagt: undefined validation.

quelltext von diese Seite sieht so aus:

<script src="typo3conf/ext/powermail/js/mandatoryjs/lib/prototype.js" type="text/javascript"></script>
	<script src="typo3conf/ext/powermail/js/mandatoryjs/src/effects.js" type="text/javascript"></script>

	<script src="typo3conf/ext/powermail/js/mandatoryjs/fabtabulous.js" type="text/javascript"></script>
	<script src="typo3conf/ext/powermail/js/checkbox/checkbox.js" type="text/javascript"></script>
<div class="tx-powermail-pi1">

		
	<div class="tx-powermail-pi1_formwrap tx-powermail-pi1_formwrap_477">
		<form name="kontaktformular" id="kontaktformular" action="de/agentur-pp/gewinnspiel?tx_powermail_pi1[mailID]=477#c477" method="post" class="tx_powermail_pi1_form" enctype="multipart/form-data">
			
			
				<fieldset class="tx-powermail-pi1_fieldset tx-powermail-pi1_fieldset_bilder tx-powermail-pi1_fieldset_36" id="tx-powermail-pi1_fieldset_36">
					<legend>Bilder</legend>
					
	<div id="powermaildiv_uid151" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_html tx_powermail_pi1_fieldwrap_html_151 even">
		<img src="fileadmin/templates/images/bild1.gif" alt="" />
		
	</div>

	<div id="powermaildiv_uid152" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_radio tx_powermail_pi1_fieldwrap_html_152 odd">

		<p class="tx_powermail_pi1_fieldwrap_html_radio_title">Frage1<span class="powermail_mandatory">*</span></p>
		 
				<div class="powermail_radio_inner powermail_radio_inner_uid152_0">
                    <label for="uid152_0">Events</label>
					<input type="radio" name="tx_powermail_pi1[uid152]" value="Events" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid152 powermail_subuid152_0" id="uid152_0" tabindex="2" />
                </div>
            
				<div class="powermail_radio_inner powermail_radio_inner_uid152_1">
                    <label for="uid152_1">Home</label>

					<input type="radio" name="tx_powermail_pi1[uid152]" value="Home" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid152 powermail_subuid152_1" id="uid152_1" tabindex="3" />
                </div>
            
				<div class="powermail_radio_inner powermail_radio_inner_uid152_2">
                    <label for="uid152_2">Philosophie</label>
					<input type="radio" name="tx_powermail_pi1[uid152]" value="Philosophie" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid152 powermail_subuid152_2" id="uid152_2" tabindex="4" />
                </div>
            
	</div>

	<div id="powermaildiv_uid162" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_html tx_powermail_pi1_fieldwrap_html_162 even">

		<p>&nbsp;</p>
		
	</div>

	<div id="powermaildiv_uid153" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_html tx_powermail_pi1_fieldwrap_html_153 odd">
		<img src="fileadmin/templates/images/bild2.gif" alt="" />
		
	</div>

	<div id="powermaildiv_uid154" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_radio tx_powermail_pi1_fieldwrap_html_154 even">
		<p class="tx_powermail_pi1_fieldwrap_html_radio_title">frage2<span class="powermail_mandatory">*</span></p>

		 
				<div class="powermail_radio_inner powermail_radio_inner_uid154_0">
                    <label for="uid154_0">Referenzen</label>
					<input type="radio" name="tx_powermail_pi1[uid154]" value="Referenzen" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid154 powermail_subuid154_0" id="uid154_0" tabindex="7" />
                </div>
            
				<div class="powermail_radio_inner powermail_radio_inner_uid154_1">
                    <label for="uid154_1">Analyse &amp; Beratung</label>
					<input type="radio" name="tx_powermail_pi1[uid154]" value="Analyse & Beratung" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid154 powermail_subuid154_1" id="uid154_1" tabindex="8" />

                </div>
            
				<div class="powermail_radio_inner powermail_radio_inner_uid154_2">
                    <label for="uid154_2">Promotions</label>
					<input type="radio" name="tx_powermail_pi1[uid154]" value="Promotions" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid154 powermail_subuid154_2" id="uid154_2" tabindex="9" />
                </div>
            
	</div>

	<div id="powermaildiv_uid163" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_html tx_powermail_pi1_fieldwrap_html_163 odd">
		<p> &nbsp; </p>

		
	</div>

	<div id="powermaildiv_uid155" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_html tx_powermail_pi1_fieldwrap_html_155 even">
		<img src="fileadmin/templates/images/bild3.gif" alt="" />
		
	</div>

	<div id="powermaildiv_uid156" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_radio tx_powermail_pi1_fieldwrap_html_156 odd">
		<p class="tx_powermail_pi1_fieldwrap_html_radio_title">frage3<span class="powermail_mandatory">*</span></p>
		 
				<div class="powermail_radio_inner powermail_radio_inner_uid156_0">

                    <label for="uid156_0">Leistung</label>
					<input type="radio" name="tx_powermail_pi1[uid156]" value="Leistung" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid156 powermail_subuid156_0" id="uid156_0" tabindex="12" />
                </div>
            
				<div class="powermail_radio_inner powermail_radio_inner_uid156_1">
                    <label for="uid156_1">Erfolgskontrolle</label>
					<input type="radio" name="tx_powermail_pi1[uid156]" value="Erfolgskontrolle" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid156 powermail_subuid156_1" id="uid156_1" tabindex="13" />
                </div>
            
				<div class="powermail_radio_inner powermail_radio_inner_uid156_2">

                    <label for="uid156_2">Sales Forces</label>
					<input type="radio" name="tx_powermail_pi1[uid156]" value="Sales Forces" class="validate-one-required powermail_kontaktformular powermail_radio powermail_uid156 powermail_subuid156_2" id="uid156_2" tabindex="14" />
                </div>
            
	</div>

	<div id="powermaildiv_uid164" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_html tx_powermail_pi1_fieldwrap_html_164 even">
		<p> &nbsp; </p>
		
	</div>

				</fieldset>
			
				<fieldset class="tx-powermail-pi1_fieldset tx-powermail-pi1_fieldset_personalinformation tx-powermail-pi1_fieldset_34" id="tx-powermail-pi1_fieldset_34">
					<legend>Personal Information</legend>
					
	<div id="powermaildiv_uid139" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_select tx_powermail_pi1_fieldwrap_html_139 odd">
		<label for="uid139">Anrede<span class="powermail_mandatory">*</span></label>
		<select name="tx_powermail_pi1[uid139]" id="uid139" class="required powermail_kontaktformular powermail_select powermail_uid139" tabindex="16" >
		 
		 		<option value=""></option>

		 	
		 		<option value="Herr">Herr</option>
		 	
		 		<option value="Frau">Frau</option>
		 	
		 </select>
	</div>

	<div id="powermaildiv_uid140" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_text tx_powermail_pi1_fieldwrap_html_140 even">
		<label for="uid140">Titel</label>
		<input type="text" name="tx_powermail_pi1[uid140]" value="" class="powermail_kontaktformular powermail_text powermail_uid140" id="uid140" tabindex="17" />

	</div>

	<div id="powermaildiv_uid141" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_text tx_powermail_pi1_fieldwrap_html_141 odd">
		<label for="uid141">Vorname</label>
		<input type="text" name="tx_powermail_pi1[uid141]" value="" class="powermail_kontaktformular powermail_text powermail_uid141" id="uid141" tabindex="18" />
	</div>

	<div id="powermaildiv_uid142" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_text tx_powermail_pi1_fieldwrap_html_142 even">
		<label for="uid142">Name<span class="powermail_mandatory">*</span></label>

		<input type="text" name="tx_powermail_pi1[uid142]" value="" class="required powermail_kontaktformular powermail_text powermail_uid142" id="uid142" tabindex="19" />
	</div>

	<div id="powermaildiv_uid143" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_text tx_powermail_pi1_fieldwrap_html_143 odd">
		<label for="uid143">Firma</label>
		<input type="text" name="tx_powermail_pi1[uid143]" value="" class="powermail_kontaktformular powermail_text powermail_uid143" id="uid143" tabindex="20" />
	</div>

	<div id="powermaildiv_uid146" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_text tx_powermail_pi1_fieldwrap_html_146 even">

		<label for="uid146">E-Mail Adresse<span class="powermail_mandatory">*</span></label>
		<input type="text" name="tx_powermail_pi1[uid146]" value="" class="required powermail_kontaktformular powermail_text powermail_uid146" id="uid146" tabindex="21" />
	</div>

	<div id="powermaildiv_uid157" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_check tx_powermail_pi1_fieldwrap_html_157 odd">
		 <p class="tx_powermail_pi1_fieldwrap_html_checkbox_title">Teilnahmebedingungen akzeptieren<span class="powermail_mandatory">*</span></p>
		 
				<div class="powermail_check_inner powermail_check_inner_uid157_0">

					<label for="check_uid157_0">Hiermit akzeptiere ich die Teilnahmenbedingungen*</label>
					<input type="checkbox" name="check_uid157_0" onclick="checkbox('uid157_0'); " id="check_uid157_0" class="validate-one-required powermail_kontaktformular powermail_check powermail_uid157 powermail_subuid157_0" tabindex="22" />
					<input type="hidden" value="Hiermit akzeptiere ich die Teilnahmenbedingungen*"  name="value_uid157_0" />
					<input type="hidden" id="uid157_0" name="tx_powermail_pi1[uid157][0]" value=""/>
				</div>
		 	
	</div>

	<div id="powermaildiv_uid158" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_html tx_powermail_pi1_fieldwrap_html_158 even">
		<p> &nbsp; </p>

<h4>Teilnahmebedingungen:</h4>
Teilnahmeschluss ist der 1. Juni 2009. <br/>
Es entscheidet das Los.<br/>
Der Rechtsweg ist ausgeschlossen.<br/>
Teilnehmer müssen über 18 Jahre alt sein.

		
	</div>

	<div id="powermaildiv_uid159" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_captcha tx_powermail_pi1_fieldwrap_html_159 odd">
		<label for="uid159">Sicherheitsabfrage<span class="powermail_mandatory">*</span></label>

		<input type="text" value="" name="tx_powermail_pi1[uid159]" class="required powermail_kontaktformular powermail_captcha powermail_uid159" id="uid159" tabindex="24" />
		<img class="tx-srfreecap-pi2-image" id="tx_srfreecap_pi2_captcha_image_f7315" src="typo3conf/ext/sr_freecap/pi1/captcha.php?id=125&amp;L=0" alt="CAPTCHA Bild zum Spamschutz" style="vertical-align: middle; "/>
		<span class="tx-srfreecap-pi2-cant-read">Wenn Sie das Wort nicht lesen können, <a href="#" onclick="this.blur();newFreeCap('f7315', 'Sorry, we cannot autoreload a new image. Submit the form and a new image will be loaded.');return false;">bitte hier klicken</a>.</span>
		
        <div class="tx_powermail_pi1_fieldwrap_html_captcha_description"></div>
	</div>

	<div id="powermaildiv_uid160" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_label tx_powermail_pi1_fieldwrap_html_160 even">
		*Pflichtfelder
		
	</div>

	<div id="powermaildiv_uid161" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_submit tx_powermail_pi1_fieldwrap_html_161 odd">
		<input type="submit" value="Abschicken" class="powermail_kontaktformular powermail_submit powermail_submit_uid161" tabindex="26" />
	</div>

				</fieldset>
			
			
			
		</form>
		
			<script type="text/javascript">
				function formCallback(result, form) {
					window.status = "valiation callback for form '" + form.id + "': result = " + result;
				}
				var valid = new Validation('kontaktformular', {immediate : true, onFormValidate : formCallback});
			</script>
		
	</div>

	</div>

woran liegt das?

Danke u. Grüße,
Rupali

einpraegsam.​net ·

If mootools && powermail:
- in powermail über constants auf mootools stellen ODER
- mootools lib auf der powermail Seite ausschalten ODER
- auf powermail JS Validierung verzichten

Rupali ·

ok,
validierung brauchen wir jeden falls, also dann:

was ist einfacher von die erste beiden und wie mach ich das?
- in powermail über constants auf mootools stellen ODER
- mootools lib auf der powermail Seite ausschalten ODER

Danke u. Grüße, Rupali

Rupali ·

hallo,
ich habe es von constant editor gemacht: plugin.powermail.libraryToUse = mootools

seitequelltext:
<script src="typo3conf/ext/powermail/js/mootools/mootools-1.2.1-packed.js" type="text/javascript"></script>
<script src="typo3conf/ext/powermail/js/checkbox/checkbox.js" type="text/javascript"></script>

und fehlermeldung ist immer noch da.