Link to home
Start Free TrialLog in
Avatar of adam1h
adam1hFlag for Belgium

asked on

White space generated at the top of my coldfusion page for no reasons

Hello experts,

I have a very weird problem, that I really can't solve now that I've tried all sorts of coldfusion tags.

A white space is generated at the top of my page, and there is no reasons for it to be like it is.

Really puzzled there...

Many thanks for your precious help
Vincent.

<script type="text/javascript">
// Formatage d'un champs mail
// àâäãçéèêëìîïòôöõùûüñ&\'
function valid_mail(evt) {
	var keyCode = evt.which ? evt.which : evt.keyCode;
	var interdit = '*?!:;\t#~"^¨%$£?²¤§%*()[]{}<>|\\/`';
	if (interdit.indexOf(String.fromCharCode(keyCode)) >= 0) {
		return false;
	}
}
// Formatage d'un champs mail
function valid_shop(evt) {
	var keyCode = evt.which ? evt.which : evt.keyCode;
	var interdit = '*?!:;\t#~"^¨%$£?²¤§%*()[]{}<>|\\/`azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN';
	if (interdit.indexOf(String.fromCharCode(keyCode)) >= 0) {
		return false;
	}
}
</script>

<form action="new_login_process.cfm" method="post">
	<table width="856" align="center">
		<tr>
		  <td colspan="3" class="title_range">Request a new login</td>
		  <td width="125" align="left" valign="top" class="Informal_text_dynamic">&nbsp;</td>
		  <td width="127" align="left" valign="top" class="Informal_text_dynamic">&nbsp;</td>
	  </tr>
		<tr>
			<td width="183" align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Name of the organisation: </span></td>
			<td width="205" align="left" valign="top"><input type="text" name="new_businessName" value="private" onKeypress="return valid_mail(event);">*</td>
		  <td width="192" align="left" valign="top" class="Informal_text_dynamic">If you are a personal shopper, please enter 'private'</td>
	  </tr>
		<tr>
			<td width="183" align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Type of the organisation: </span></td>
				<td width="205" align="left" valign="top"><input type="text" name="new_businessCat" value="(jewellery/clothes/gifts/other)" onKeypress="return valid_mail(event);"></td>
		  <td width="192" align="left" valign="top" class="Informal_text_dynamic">&nbsp;</td>
	  </tr>
		<tr>
			<td width="183" align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Number of shop: </span></td>
				<td width="205" align="left" valign="top"><input type="text" name="new_businessNumber" value="" size="2" onKeypress="return valid_shop(event);"></td>
		  <td width="192" align="left" valign="top" class="Informal_text_dynamic">&nbsp;</td>
	  </tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Type of organisation: </span></td>
			<td colspan="2" align="left" valign="top">
			  <span class="Informal_text_dynamic">
			  <input type="radio" name="new_businessType" value="consumer" checked="checked">
			  Consumer (Personal shopper)<br />
			  <input type="radio" name="new_businessType" value="wholesaler">
			  Retailer (Minimum quantity is Packs(trade only !) <br />
			  <input type="radio" name="new_businessType" value="bulk">
			  Distributor (Miminum quantity 12 x 1 pack)(trade only !)<br />
			  <input type="radio" name="new_businessType" value="AP">
			  Museum/theme park (trade only !) </span></td>
		  <td width="125" align="left" valign="top" class="Informal_text_dynamic">&nbsp;</td>
		</tr>
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic">Please note that to be a &quot;non-consumer&quot; customer</td>
			<td align="left" valign="top" class="Informal_text_dynamic">you have to buy £600 per year</td>
		  <td width="192" align="left" valign="top" class="Informal_text_dynamic">&nbsp;</td>
		</tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">VAT number: </span></td>
			<td align="left" valign="top"><input type="text" name="new_vat" value="0000" onKeypress="return valid_mail(event);">
			* </td>
			<td align="left" valign="top" class="Informal_text_dynamic">If you are a trader not registered to VAT,or UK trader,<br />or a personal shopper, please type in &quot;0000&quot;</td>
	  </tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">First name: </span></td>
			<td align="left" valign="top"><input type="text" name="new_firstName" value="" onKeypress="return valid_mail(event);">*</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Last name: </span></td>
			<td align="left" valign="top"><input type="text" name="new_lastName" value="" onKeypress="return valid_mail(event);">*</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Street: </span></td>
			<td align="left" valign="top"><input type="text" name="new_street" value="" onKeypress="return valid_mail(event);">*</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Post code: </span></td>
			<td align="left" valign="top"><input type="text" name="new_pcode" value="" onKeypress="return valid_mail(event);">*</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Town: </span></td>
			<td align="left" valign="top"><input type="text" name="new_town" value="" onKeypress="return valid_mail(event);">*</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">State/Region: </span></td>
			<td align="left" valign="top"><input type="text" name="new_region" value="" onKeypress="return valid_mail(event);"></td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<BR />
		<tr> 
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Country: </span></td>
			<td align="left" valign="top">
			<cfparam name="Session.country" default="uk">
			<cfquery name="carriers" datasource="joecool_web">
				select carriage_id,	destination from jccarriage order by destination asc
			</cfquery>
			<select name="new_country" required="yes" message="Please enter the destination of your order">
			<cfoutput query="carriers">
					<option value="#carriage_id#" <cfif #Session.country# IS "#carriage_id#">selected="selected"</cfif> >#destination#</option>
			</cfoutput>
			</select>
				  <!---<option value="australia" <cfif #Session.country# IS "australia">selected="selected"</cfif> >Australia</option>
				  <option value="austria" <cfif #Session.country# IS "austria">selected="selected"</cfif> >Austria</option>
				  <option value="belgium" <cfif #Session.country# IS "belgium">selected="selected"</cfif> >Belgium</option>
				  <option value="spainb" <cfif #Session.country# IS "spainb">selected="selected"</cfif> >Balearics (Spain)</option>
				  <option value="canada" <cfif #Session.country# IS "canada">selected="selected"</cfif> >Canada</option>
				  <option value="spainc" <cfif #Session.country# IS "spainc">selected="selected"</cfif> >Canaries (Spain)</option>
				  <option value="cr" <cfif #Session.country# IS "cr">selected="selected"</cfif> >Czech Replublic</option>
				  <option value="denmark" <cfif #Session.country# IS "denmark">selected="selected"</cfif> >Denmark</option>
				  <option value="eire" <cfif #Session.country# IS "eire">selected="selected"</cfif> >Eire</option>
				  <option value="finland" <cfif #Session.country# IS "finland">selected="selected"</cfif> >Finland</option>
				  <option value="france" <cfif #Session.country# IS "france">selected="selected"</cfif> >France</option>
				  <option value="germany" <cfif #Session.country# IS "germany">selected="selected"</cfif> >Germany</option>
				  <option value="greece" <cfif #Session.country# IS "greece">selected="selected"</cfif> >Greece(Mainland)</option>
				  <option value="holland" <cfif #Session.country# IS "holland">selected="selected"</cfif> >Holland</option>
				  <option value="hk" <cfif #Session.country# IS "hk">selected="selected"</cfif> >Hong Kong</option>
				  <option value="italy" <cfif #Session.country# IS "italy">selected="selected"</cfif> >Italy</option>
				  <option value="japan" <cfif #Session.country# IS "japan">selected="selected"</cfif> >Japan</option>
				  <option value="lr" <cfif #Session.country# IS "lr">selected="selected"</cfif> >La Reunion (France)</option>
				  <option value="eire" <cfif #Session.country# IS "ni">selected="selected"</cfif> >Northern Ireland</option>
				  <option value="poland" <cfif #Session.country# IS "poland">selected="selected"</cfif> >Poland</option>
				  <option value="portugal" <cfif #Session.country# IS "portugal">selected="selected"</cfif> >Portugal</option>
				  <option value="spain" <cfif #Session.country# IS "spain">selected="selected"</cfif> >Spain</option>
				  <option value="sweden" <cfif #Session.country# IS "sweden">selected="selected"</cfif> >Sweden</option>
				  <option value="switzerland" <cfif #Session.country# IS "switzerland">selected="selected"</cfif> >Switzerland</option>
				  <option value="uk" <cfif #Session.country# IS "uk">selected="selected"</cfif> >UK</option>
				  <option value="usa" <cfif #Session.country# IS "usa">selected="selected"</cfif> >USA</option>
				  <option value="eu" <cfif #Session.country# IS "eu">selected="selected"</cfif> >Other EEC (please specify)</option>--->
			</td>
			<td align="left" valign="top">*&nbsp;</td>
		</tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Phone number: </span></td>
			<td align="left" valign="top"><input type="text" name="new_phone" value="" onKeypress="return valid_mail(event);">*</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<BR />
		<!---<tr>
		  <td align="left" valign="top" class="Informal_text_dynamic">Language : </td>
		  <td colspan="2" align="left" valign="top"><p class="Informal_text_dynamic">
			<input type="radio" name="new_language" value="EN" checked="checked">
		  English
		  <input type="radio" name="new_language" value="FR">
		  Français
		  <input type="radio" name="new_language" value="SP">
		  Español 
		  <input type="radio" name="new_language" value="IT">
		  Italiano 
		  <input type="radio" name="new_language" value="GE">
		  Deutsch * </p>		      </td>
	  </tr>--->
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Fax number: </span></td>
			<td align="left" valign="top"><input type="text" name="new_fax" value="" onKeypress="return valid_mail(event);"></td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<BR />
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Email: </span></td>
			<td align="left" valign="top"><input type="text" name="new_email" id="emailCreated" value="" onKeypress="return valid_mail(event);">*</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<tr>
			<td align="left" valign="top" class="Informal_text_dynamic"><span class="style7">Please retype your email: </span></td>
			<td align="left" valign="top"><input type="text" name="new_email2" id="emailCreated" value="" onKeypress="return valid_mail(event);">*</td>
			<td align="left" valign="top">&nbsp;</td>
		</tr>
		<tr>
		  <td align="left" valign="top" class="Informal_text_dynamic">How did you find us ? </td>
		  <td colspan="2" align="left" valign="top"><span class="Informal_text_dynamic">
			<input type="radio" name="new_howDidYouFindUs" value="google" checked="checked">
Google
<input type="radio" name="new_howDidYouFindUs" value="google_adwords">
Google adwords
<input type="radio" name="new_howDidYouFindUs" value="yahoo">
Yahoo
<input type="radio" name="new_howDidYouFindUs" value="trade_show">
Trade show
<input type="radio" name="new_howDidYouFindUs" value="wordofmouth">
Word of mouth
*<BR />
<input type="radio" name="new_howDidYouFindUs" value="other"> 
Other :
<label>
<input type="text" name="new_how_did_u_find_us" onKeypress="return valid_mail(event);">
</label>
</span></td>
		  <td width="125" align="left" valign="top" class="Informal_text_dynamic">&nbsp;</td>
	  </tr>
		<BR />
		<tr>
			<td>
				<input type="submit" name="create_new_account" value="Create" alt="Create your Joe Cool Account">
			</td>
			<td>* = required fields.</td>
		  <td width="192" align="left" valign="top" class="Informal_text_dynamic">&nbsp;</td>
		</tr>
  </table>
</form>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ronan1979
ronan1979

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ronan1979
ronan1979

note: i used firefox add-on to see it : firebug <-- very good!!
Avatar of adam1h

ASKER

Many thanks Ronan, it worked perfectly. I was always looking at the top of the page, and not between the cells themselves...

You are a star !

A zillion thanks, and thanks for the firebug tip.

Vincent.