473,394 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problems with javascript event lauch from VB.net control

27
Hi,

I want to display the cursor as an hourglass on the click of a button in the form and use the following line to achieve that

Me.btnRecherche.Attributes.Add("onclick", "document.body.style.cursor = 'wait'; ")

Sadly, it doesn't work. One strange thing is that when I write the following:

Me.btnRecherche.Attributes.Add("onclick", "document.body.style.cursor = 'wait'; alert(""ASASSAS"");")

I do get the alert, but the cursor doesn't change.

Is there something wrong with the line document.body.style.cursor = 'wait'; ?

Thanks,

P
Oct 16 '07 #1
33 2550
Frinavale
9,735 Expert Mod 8TB
Hi,

I want to display the cursor as an hourglass on the click of a button in the form and use the following line to achieve that

Me.btnRecherche.Attributes.Add("onclick", "document.body.style.cursor = 'wait'; ")

Sadly, it doesn't work. One strange thing is that when I write the following:

Me.btnRecherche.Attributes.Add("onclick", "document.body.style.cursor = 'wait'; alert(""ASASSAS"");")

I do get the alert, but the cursor doesn't change.

Is there something wrong with the line document.body.style.cursor = 'wait'; ?

Thanks,

P

Hmm interesting...

Try:

Me.btnRecherche.Attributes.Add("OnClick", "javascript:document.body.style.cursor = 'wait'; ")

This worked when I tested it in IE.
Oct 16 '07 #2
phfle1
27
Thanks, but same result.

If it can help you help me:

I'm using VS2005
It is a WEB asp .net application/form

I used the same line in VS2003 with a similar project and it worked just fine :S

Thanks,

P
Oct 16 '07 #3
Frinavale
9,735 Expert Mod 8TB
Thanks, but same result.

If it can help you help me:

I'm using VS2005
It is a WEB asp .net application/form

I used the same line in VS2003 with a similar project and it worked just fine :S

Thanks,

P
I was using VS2005 as well.
This is not a Server Side problem and doesn't really have anything to do with VS. It's a Client Side problem.

This could mean that you have JavaScript turned off...or could mean that your browser doesn't support this....

Maybe your page posts back before you really get a good look at the cursor?
Oct 16 '07 #4
phfle1
27
Javascript is enabled and this code works in my browser (IE 6). I have tried it with a simple html page calling the javascript function.

Maybe your page posts back before you really get a good look at the cursor?
Yeah I thought about that so I put an alert before and after the call :

Me.btnRecherche.Attributes.Add("onclick", "alert(""ASASSAS"");javascript:document.body.style .cursor = 'wait'; alert(""ASASSAS"");")

Both alert are launched, but I don't see the hourglass between them.
Maybe, as you say, it happens to fast, but it doesn't seem to be the case since when there is no alert I still have to wait to seconds to have post back and see the result.

Strange...
Oct 16 '07 #5
Frinavale
9,735 Expert Mod 8TB
Javascript is enabled and this code works in my browser (IE 6). I have tried it with a simple html page calling the javascript function.



Yeah I thought about that so I put an alert before and after the call :

Me.btnRecherche.Attributes.Add("onclick", "alert(""ASASSAS"");javascript:document.body.style .cursor = 'wait'; alert(""ASASSAS"");")

Both alert are launched, but I don't see the hourglass between them.
Maybe, as you say, it happens to fast, but it doesn't seem to be the case since when there is no alert I still have to wait to seconds to have post back and see the result.

Strange...
Ok try this:
Me.btnRecherche.Attributes.Add("OnClick", "javascript:document.body.style.cursor = 'wait'; return false;")

This should prevent the postback to the server from ever happening....
Oct 16 '07 #6
phfle1
27
It seems there's nothing that displays when I try this. As you said there is no post back so no answer :S.
Oct 16 '07 #7
Frinavale
9,735 Expert Mod 8TB
It seems there's nothing that displays when I try this. As you said there is no post back so no answer :S.

I'm going to ask the JavaScript experts to have a look at this question.
:)
We'll get to the bottom of this!

-Frinny
Oct 16 '07 #8
phfle1
27
thanks, really appreciated
Oct 16 '07 #9
acoder
16,027 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. document.body.style.cursor="wait";
should set the cursor to an hourglass. I'm not too familiar with .NET, so how does this code turn out in the browser (view source in the browser).
Oct 16 '07 #10
phfle1
27
Expand|Select|Wrap|Line Numbers
  1. document.body.style.cursor="wait";
should set the cursor to an hourglass. I'm not too familiar with .NET, so how does this code turn out in the browser (view source in the browser).
thanks, but that's what I used and didn't get any good result. I'll try to see the source.
Oct 16 '07 #11
Frinavale
9,735 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. document.body.style.cursor="wait";
should set the cursor to an hourglass. I'm not too familiar with .NET, so how does this code turn out in the browser (view source in the browser).
Does this work in all browsers?
Oct 16 '07 #12
drhowarddrfine
7,435 Expert 4TB
You are setting the style on <body>, correct? Then you must be within <body> for the 'wait' cursor to appear. Many times the full width/height of the body is covered with other elements. To test for this, move the style to some element like a <div> or <p> and see if it appears.
Oct 16 '07 #13
phfle1
27
You are setting the style on <body>, correct? Then you must be within <body> for the 'wait' cursor to appear. Many times the full width/height of the body is covered with other elements. To test for this, move the style to some element like a <div> or <p> and see if it appears.
The call is made via a vb.net file that adds the event to a button(control). I do not change anything in the asp .net file
Oct 17 '07 #14
Frinavale
9,735 Expert Mod 8TB
The call is made via a vb.net file that adds the event to a button(control). I do not change anything in the asp .net file

Drhowarddrfine is suggesting that you move the button into a panel with a set Height and Width.

A panel is rendered as a <div> tag when it is sent to the web browser (to verify this right click on the web page and selected "view source").

Once you've done this try the following:


Me.btnRecherche.Attributes.Add("onclick", "document.getElementById('" +PNL_ThePanelYourButtonIsIn.ClientID+"').style.cur sor = 'wait';")

When testing this, make sure that your mouse is hovering over the panel that your button is in. To know where it is, I suggest setting the background colour of the panel to something like "Blue" so that you can see it.
Oct 17 '07 #15
phfle1
27
OK I'll try that. Thanks
Oct 17 '07 #16
acoder
16,027 Expert Mod 8TB
You are setting the style on <body>, correct? Then you must be within <body> for the 'wait' cursor to appear. Many times the full width/height of the body is covered with other elements. To test for this, move the style to some element like a <div> or <p> and see if it appears.
That makes sense. I tested on a pretty empty page with only one or two elements (which didn't have the hourglass cursor when I hovered over them).
Oct 17 '07 #17
phfle1
27
You are setting the style on <body>, correct? Then you must be within <body> for the 'wait' cursor to appear. Many times the full width/height of the body is covered with other elements. To test for this, move the style to some element like a <div> or <p> and see if it appears.
In fact, there is no body tag since I'm using an ascx file and not a aspx file. The tags are added by MS Sharepoint.

I changed the cursor, but it only changes when I hover on the control. Is there a way to do it for the whole page?
Oct 18 '07 #18
phfle1
27
Something strange is that my 2003 solution :

Me.btnRechercheOk.Attributes.Add("onclick", "document.body.style.cursor = 'wait';")

works just fine

but my 2005 solution is %&?&%
Oct 18 '07 #19
drhowarddrfine
7,435 Expert 4TB
Actually I shouldn't have said it that way. The 'wait' cursor should still show over all elements because all elements should be within the body element. But if you don't even have a body element then your whole page is invalid and of course it won't work. But some of this still depends on the styling of the elements themselves and without seeing the generated html/css, it's only a guess.
Oct 18 '07 #20
phfle1
27
Hi Doc,

Here the generated source. I don't know if it all was important so I put it all.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
Au départ
</title><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/style.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/conditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/NAconditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/style.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/conditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/NAconditions-entree.css" type="text/css" rel="stylesheet"/></head>
<body id="bodyMaster">
<form name="aspnetForm" method="post" action="conditions-entree.aspx?SimulProvenance=informationnel&amp;Sim ulRegion=QC&amp;Grp=&amp;SimulCodeProvenance=S&amp ;SimulMarqueCommerceAffaire=P&amp;SimulMarqueComme rceSysteme=4" id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTk5OTc5MDAxNA9kFgJmD2QW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wEFW WRvY3VtZW50LmJvZHkuc3R5bGUuY3Vyc29yID0gJ3dhaXQnOyB zdHlsZS5jdXJzb3IgPSAnd2FpdCc7REdBR19pbml0aWFsaXNlc lBhZ2VTb3VtaXNlKCk7ZAIDDxYCHwBoZAIDD2QWAgIBDw8WAh8 CBQdRdWl0dGVyFgIeB29uQ2xpY2sFc0RHQUdfaW5pdGlhbGlzZ XJQYWdlU291bWlzZSgpO2lmIChjb25maXJtKCdUb3V0ZXMgdm9 zIGRvbm7DqWVzIHNlcm9udCBwZXJkdWVzLiBRdWl0dGVyPycpI D09IGZhbHNlKXtyZXR1cm4gZmFsc2U7fTtkZE2hoNQuuGLGwsL/0iHrR8uiGzPB" />
</div>

<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->
</script>


<script src="/Transactionnel/WebResource.axd?d=9UPRyytQrWTIXk5uodr6FQ2&amp;t=63 3179571893544669" type="text/javascript"></script>

<script src='/Transactionnel/Includes/Transactionnel.js' type='text/javascript' ></script><script src='/Transactionnel/Includes/GererMenu.js' type='text/javascript' ></script><script language='JavaScript'> var activeField = null; function ClsTextbox_onKeyDown(fieldName) { var field = document.forms[0].elements[fieldName]; activeField = field; field.lastValue = field.value; } </script> <script language='JavaScript'> function ClsTextbox_onKeyUp(fieldName,nextFieldName,maxLeng th) { var field = document.forms[0].elements[fieldName]; var nextField = document.forms[0].elements[nextFieldName]; if (field == activeField && field.value != field.lastValue && field.value.length >= maxLength) nextField.focus(); activeField = null; } </script><script>var s_account="dgaglapersonnellecomdev";</script>
<script src="/Transactionnel/ScriptResource.axd?d=tGhE21--m-VReb4EY_OgpXmLaWuc-qSjk7PWCJgbzSz3YhrDJz15tbUiU7t7mFhqgbzJ2TzclP9QHJ1 UIxzDZEyAeiru84WUhendMDrJ5pI1&amp;t=63318015149713 6527" type="text/javascript"></script>
<script src="/Transactionnel/ScriptResource.axd?d=tGhE21--m-VReb4EY_OgpXmLaWuc-qSjk7PWCJgbzSz3YhrDJz15tbUiU7t7mFhqgbzJ2TzclP9QHJ1 UIxzDZGhdMTM-lvz6nWLl02as7vlDgSzE6QLtGogZ-jj_QVPI0&amp;t=633180151497136527" type="text/javascript"></script>
<div id="divMaster" class="ONLI">



<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00 $PlaceHolderMain$ascmScriptManager', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._upd ateControls(['tctl00$PlaceHolderMain$usrPageTransactionnelle$us rMessages$pnMessage','tctl00$PlaceHolderMain$usrPa geTransactionnelle$apnlGroupeSelectionEncadre','tc tl00$PlaceHolderMain$usrPageTransactionnelle$pnlQu estionSpecifiqueCanexEncadre'], ['ctl00$PlaceHolderMain$usrPageTransactionnelle$btn Recherche'], [], 90);
//]]>
</script>

<div id="contenuPage">
<div id="contenuPageExt">
<div id="contenuPageInt">
<div id="etape">
<div id="etapeExt">
<div id="etapeInt">
<ul><li id="nav-conditionentree"><a id="ctl00_PlaceHolderMain_usrGestionOnglet_Conditi onEntree" disabled="disabled" class="nav-actif">ConditionEntree</a></li><li id="nav-bien"><a id="ctl00_PlaceHolderMain_usrGestionOnglet_Bien" disabled="disabled" class="nav-off">Bien</a></li><li id="nav-assure"><a id="ctl00_PlaceHolderMain_usrGestionOnglet_Assure " disabled="disabled" class="nav-off">Assure</a></li><li id="nav-offre"><a id="ctl00_PlaceHolderMain_usrGestionOnglet_Offre" disabled="disabled" class="nav-off">Offre</a></li></ul>
</div>
</div>
</div>
<div id="contenuForm">
<div id="contenuFormExt">
<div id="contenuFormInt">
<div id="divPageTransactionnelle">


<div id="divMessages">
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrMessages_pnMessage">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrMessages_pnErreur">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrMessages_pnImgErreur">

</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrMessages_pnMsgErreur">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrMessages_ValidationSummary1">
<ul><li>Veuillez sélectionner le nombre de propriétaires dans la liste. (ER004301)</li></ul>
</div>
<ul id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrMessages_ulListErreur"></ul>

</div>

</div>




</div>



</div>


<div id="blocJeudechamp1" class="blocJeudechamp">
<div id="blocJeudechamp1Ext" class="blocJeudechampExt">
<div id="blocJeudechamp1Int" class="blocJeudechampInt">
<div id="blocJeudechamp1Haut" class="blocJeudechampHaut">
<div></div>
</div>
<div id="blocJeudechamp1Milieu" class="blocJeudechampMilieu">
<div>
<fieldset id="jeudechamp1" class="jeudechamp">
<div class="listeQuestion">
<div class='blocQuestion premier'></div>
<div id='blocQuestion001' class='blocQuestion '>
<div id='question001' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlCodePostal">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlCodePostalQ">
<label id='labelQuestion001' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _txtCodePostal'>

Code postal du bien à assurer*

</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlCodePostalR">
<fieldset id='jeudechampZoneReponse001' class='jeudechampZoneReponse'>
<input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$txtCodePostal" type="text" value="g1g1g1" maxlength="6" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ txtCodePostal" onclick="this.value = ''" />




<input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$hdnCodePostalActuel" type="hidden" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ hdnCodePostalActuel" />
</fieldset>
</div>

</div></div>
</div>
<div id='blocQuestion003' class='blocQuestion '>
<div id='question003' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlRechercheGroupe">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlRechercheGroupeQ">
<label id='labelQuestion003' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _txtRechercheGroupe'>
Inscrivez le nom de votre groupe et cliquez OK
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlAlignBoutonOk">
<fieldset id='jeudechampZoneReponse003' class='jeudechampZoneReponse'>
<input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$txtRechercheGroupe" type="text" value="canex" maxlength="100" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ txtRechercheGroupe" onkeypress="Enter(this.id);" />

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlBoutonOk">

<a onclick="wait();" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ btnRecherche" href="javascript:__doPostBack('ctl00$PlaceHolderMa in$usrPageTransactionnelle$btnRecherche','')"></a>

</div>


</fieldset>
</div>

</div></div>
</div>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ apnlGroupeSelectionEncadre">
<div id='blocQuestion004' class='blocQuestion '>
<div id='question004' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlGroupeSelection">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlGroupeSelectionQ">
<label id='labelQuestion004' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _ddlSelectionGroupe'>
Sélectionnez le groupe auquel vous appartenez :
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlGroupeSelectionR">
<fieldset id='jeudechampZoneReponse004' class='jeudechampZoneReponse'>
<select name="ctl00$PlaceHolderMain$usrPageTransactionnell e$ddlSelectionGroupe" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ ddlSelectionGroupe">
<option value="-1">Choisir</option>
<option selected="selected" value="299_835">CANEX - Civils</option>
<option value="300_836">CANEX - Militaires</option>
<option value="301_837">CANEX - Retraités</option>

</select>


</fieldset>
</div>

</div></div>
</div>

</span><div id='blocQuestion005' class='blocQuestion '>
<div id='question005' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlTypeTransaction">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlTypeTransactionQ">
<label id='labelQuestion005' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _ddlTypeTransaction'>
Veuillez indiquer laquelle des situations suivantes s'applique :
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlTypeTransactionR">
<fieldset id='jeudechampZoneReponse005' class='jeudechampZoneReponse'>
<select name="ctl00$PlaceHolderMain$usrPageTransactionnell e$ddlTypeTransaction" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ ddlTypeTransaction" onChange="CETraitementTypeTransaction(this.id)">
<option value="-1">Choisir</option>
<option selected="selected" value="PR">Propriétaire occupant</option>
<option value="LO">Locataire occupant</option>
<option value="CD">Copropriétaire occupant (condominium)</option>

</select>


</fieldset>
</div>

</div></div>
</div>
<div id='blocQuestion006' class='blocQuestion '>
<div id='question006' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlNombreAssure">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlNombreAssureQ">
<label id='labelQuestion006' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _ddlNombreAssure'>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ spnNombreProprio" style="display:;">
Nombre de propriétaires
</span>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ spnNombreLocataire" style="display:none;">
Nombre de locataires
</span>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ spnNombreCopro" style="display:none;">
Nombre de copropriétaires
</span>
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlNombreAssureR">
<fieldset id='jeudechampZoneReponse006' class='jeudechampZoneReponse'>
<select name="ctl00$PlaceHolderMain$usrPageTransactionnell e$ddlNombreAssure" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ ddlNombreAssure" style="display:;">
<option selected="selected" value="-1">Choisir</option>
<option value="1">1</option>
<option value="2">2</option>

</select>

</fieldset>
</div>

</div></div>
</div>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlQuestionSpecifiqueCanexEncadre">

</span><div id='blocQuestion008' class='blocQuestion '>
<div id='question008' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlDateEffective">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlDateEffectiveQ">
<label id='labelQuestion008' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _usrDateMultiDebut_Annee'>
Date à laquelle vous aimeriez que votre police d'assurance entre en vigueur?
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlDateEffectiveR">
<fieldset id='jeudechampZoneReponse008' class='jeudechampZoneReponse'>
<input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$usrDateMultiDebut$Annee" type="text" value="2009" maxlength="4" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrDateMultiDebut_Annee" class="Annee" onKeyDown="javascript:ClsTextbox_onKeyDown(this.id )" onFocus="this.select();" onKeyUp="javascript:ClsTextbox_onKeyUp(this.id,thi s.id.replace('_Annee','_Mois'),4)" AutoComplete="Off" /><span class="lblLigneObliqueGauche">&nbsp;/&nbsp;</span><input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$usrDateMultiDebut$Mois" type="text" value="04" maxlength="2" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrDateMultiDebut_Mois" class="Mois" onKeyUp="javascript:ClsTextbox_onKeyUp(this.id,thi s.id.replace('_Mois','_Jour'),2)" onKeyDown="javascript:ClsTextbox_onKeyDown(this.id )" onFocus="this.select();" AutoComplete="Off" /><span class="lblLigneObliqueDroite">&nbsp;/&nbsp;</span><input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$usrDateMultiDebut$Jour" type="text" value="06" maxlength="2" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrDateMultiDebut_Jour" class="Jour" onKeyUp="javascript:ClsTextbox_onKeyUp(this.id,thi s.id.replace('_Jour','_Jour'),2)" onKeyDown="javascript:ClsTextbox_onKeyDown(this.id )" onFocus="this.select();" AutoComplete="Off" />

</fieldset>
</div>

</div></div>
</div>

<div class='blocQuestion dernier'></div>
</div>
</fieldset>
</div>
</div>
<div id="blocJeudechamp1Bas" class="blocJeudechampBas">
<div></div>
</div>
</div>
</div>
</div>



<div id="blocJeudechamp2" class="blocJeudechamp">
<div id="blocJeudechamp2Ext" class="blocJeudechampExt">
<div id="blocJeudechamp2Int" class="blocJeudechampInt">
<div id="blocJeudechamp2Haut" class="blocJeudechampHaut">
<div></div>
</div>
<div id="blocJeudechamp2Milieu" class="blocJeudechampMilieu">
<div>
<a href="#">
<fieldset id="jeudechamp2" class="jeudechamp">
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ insElementsExclusion"></span>
</fieldset>
</a>
</div>
</div>
<div id="blocJeudechamp2Bas" class="blocJeudechampBas">
<div></div>
</div>
</div>
</div>
</div>




<div id="blocJeudechampSoumettre" class="blocJeudechampSoumettre">
<div id="blocJeudechampSoumettreExt" class="blocJeudechampSoumettreExt">
<div id="blocJeudechampSoumettreInt" class="blocJeudechampSoumettreInt">
<div id="blocJeudechampSoumettreHaut" class="blocJeudechampSoumettreHaut">
<div></div>
</div>
<div id="blocJeudechampSoumettreMilieu" class="blocJeudechampSoumettreMilieu">
<div>
<fieldset id="jeudechampSoumettre" class="jeudechampSoumettre">

<ul id="boutonListe" class="boutonListe">
<li id="boutonPremier" class="bouton premier"></li>

<li id="boutonSuivant" class="bouton">
<a onclick="document.body.style.cursor = 'wait'; style.cursor = 'wait';DGAG_initialiserPageSoumise();" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrBoutonsFormulaire_linkBtSuivant" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$PlaceHolderMai n$usrPageTransactionnelle$usrBoutonsFormulaire$lin kBtSuivant&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))">Suivant</a>
</li>

<li id="boutonDernier" class="bouton dernier"></li>
</ul>

</fieldset>
</div>
</div>
<div id="blocJeudechampSoumettreBas" class="blocJeudechampSoumettreBas">
<div></div>
</div>
</div>
</div>
</div>


<div id="boutonQuitter">
<a onclick="DGAG_initialiserPageSoumise();if (confirm('Toutes vos données seront perdues. Quitter?') == false){return false;};" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrBoutonsFormulaire_linkBtQuitter" href="javascript:__doPostBack('ctl00$PlaceHolderMa in$usrPageTransactionnelle$usrBoutonsFormulaire$li nkBtQuitter','')">Quitter</a>
</div>








































</div>
</div>
</div>
</div>
</div>
</div>
</div>

</div>

<script type="text/javascript">
<!--
var Page_ValidationSummaries = new Array(document.getElementById("ctl00_PlaceHolderMa in_usrPageTransactionnelle_usrMessages_ValidationS ummary1"));
// -->
</script>

<div>

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWFQKzsoTFAQKwtfv7AwL0ubuTDgKW7qWMAwKcqJanAQKCh76 ABgLZpPKKDAKYktPzBAK4u4mbAgLH49TBBwK049DcBwKg45zcB wKZ46jcBwLCu8/gDwLOu4PjDwLPu4PjDwLlvLyoCgLyy8nFBAKxupvpBQLt+dSuA wLG9Nj1BAIi2kayLubFEhYZEKg2Ro97A3Pz" />
</div>
<script src='/Transactionnel/Includes/s_code_remote.js'></script><script language='javascript' type='text/javascript'>
s.server="";
s.pageType="";
s.state="QC";
s.eVar33="QC";
s.prop33="QC";
s.zip="";
s.events="event6";
s.products="";
s.eVar18="";
s.purchaseID="";
s.prop18="";
s.prop1="laPersonnelle";
s.eVar1="laPersonnelle";
s.prop2="QC";
s.eVar2="QC";
s.prop3="FR";
s.eVar3="FR";
s.prop30="";
s.eVar30="";
s.prop31="";
s.eVar31="";
s.prop40="";
s.eVar40="";
var s_code=s.t();if(s_code)document.write(s_code);
</script>

<script type="text/javascript">
<!--
Sys.Application.initialize();
// -->
</script>
</form>
</body>
</html>
Oct 19 '07 #21
drhowarddrfine
7,435 Expert 4TB
A few things:
1) You should use code tags when you post to make your markup more readable.
2) The markup doesn't include the CSS so I wouldn't know if that's affecting this because:
3) I see the hourglass in Firefox so the next question is, do all browsers have the problem you describe?
4) You need to validate for your list of 13 html errors and any css errors there may be.
Oct 19 '07 #22
phfle1
27
1.sorry for the tags
2. I put in the code below the part of the css file that has a link with the panel containing the button.
3. I have the same problem on Firefox
4. 13 html errors?


javascript wait function
Expand|Select|Wrap|Line Numbers
  1. function wait()
  2.   {
  3.      document.body.style.cursor = 'wait';
  4.  
  5.   }
Function that straps the javascript event on the button
Expand|Select|Wrap|Line Numbers
  1. Private Sub Page_Load(ByVal vSender As Object, ByVal vEvent As System.EventArgs) Handles Me.Load
  2.         clsOutilsTrans.TracePerfoONLI("(TAL) LOAD Condition entree habitation", True)
  3.  
  4.         If Not clsOutilsTrans.EstModePilotage Then
  5.             GererToken()
  6.             GererInitialisations()
  7.             GererContexte()
  8.             GererParametresRecus()
  9.             GererChargementListes()
  10.             GererAffichageChamps()
  11.         Else
  12.             GererInitialisations()
  13.             GererChargementListes()
  14.             GererAffichageChamps()
  15.         End If
  16.  
  17.         'ajouter l'evenement javascript lors du click du bouton recherche
  18.         Me.btnRecherche.Attributes.Add("onclick", "wait()")
  19.         clsOutilsTrans.TracePerfoONLI("(TAL) LOAD Condition entree habitation", False)
  20.  
  21.     End Sub

part of the css
Expand|Select|Wrap|Line Numbers
  1. #pnlRechercheGroupe label { 
  2.     width: 25em;
  3.     padding-right: 2em;
  4. }
  5. #pnlCodePostal, #pnlNombreAssure, #pnlTypeTransaction, #pnlNombreAssure, #pnlGroupe, #pnlConfirmationGroupe, #pnlConfirmationGroupeRadioButton, #pnlRechercheGroupe, #pnlGroupeSelection, #pnlQuestionSpecifiqueCanex { 
  6.     margin-bottom: 20px;
  7. }
view source of page


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>
Au départ
</title><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/style.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/conditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/NAconditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/style.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/conditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/NAconditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/style.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/conditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/Styles/NAconditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/style.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/conditions-entree.css" type="text/css" rel="stylesheet"/><link href="/Transactionnel/Themes/LaPersonnelle/FR/QC/Styles/NAconditions-entree.css" type="text/css" rel="stylesheet"/></head>
<body id="bodyMaster">
<form name="aspnetForm" method="post" action="conditions-entree.aspx?SimulProvenance=informationnel&amp;Sim ulRegion=QC&amp;Grp=&amp;SimulCodeProvenance=S&amp ;SimulMarqueCommerceAffaire=P&amp;SimulMarqueComme rceSysteme=4" id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTk5OTc5MDAxNA9kFgJmD2QWAgIDD2QWAgIDD2QWAgI FD2QWBgICD2QWAmYPZBYCZg9kFgQCAQ8PFgIeB1Zpc2libGVoZ GQCAw8PFgIfAGhkZAIED2QWDgIBD2QWAgIDD2QWBAIBDw9kFgI eB29uY2xpY2sFD3RoaXMudmFsdWUgPSAnJ2QCAw8PFgIfAGhkZ AICDw8WAh8AaGRkAgMPZBYGZg8PFgIfAGhkFgICAw9kFgICAQ9 kFgQCAQ8QZBYCHgVDbGFzcwUTY3NzSW5wdXRSYWRpb0J1dHRvb hYCHgVjbGFzcwUOY3NzUmFkaW9CdXR0b25kAgMPEGQWAh8CBRN jc3NJbnB1dFJhZGlvQnV0dG9uFgIfAwUOY3NzUmFkaW9CdXR0b 25kAgEPZBYCAgMPZBYEAgMPDxYCHwBoZGQCBQ9kFgICAQ8PZBY CHwEFBndhaXQoKWQCAg9kFgJmD2QWAgIBDw8WAh8AaGQWAgIDD 2QWAgIBDxBkZBYAZAIED2QWAgIDD2QWBAIBDxAPZBYCHghvbkN oYW5nZQUkQ0VUcmFpdGVtZW50VHlwZVRyYW5zYWN0aW9uKHRoa XMuaWQpEBUEB0Nob2lzaXIWUHJvcHJpw6l0YWlyZSBvY2N1cGF udBJMb2NhdGFpcmUgb2NjdXBhbnQmQ29wcm9wcmnDqXRhaXJlI G9jY3VwYW50IChjb25kb21pbml1bSkVBAItMQJQUgJMTwJDRBQ rAwRnZ2dnFgFmZAIDDw8WAh8AaGRkAgUPZBYEAgEPZBYGAgEPF gIeBXN0e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];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->
</script>


<script src="/Transactionnel/WebResource.axd?d=9UPRyytQrWTIXk5uodr6FQ2&amp;t=63 3179571893544669" type="text/javascript"></script>

<script src='/Transactionnel/Includes/Transactionnel.js' type='text/javascript' ></script><script src='/Transactionnel/Includes/GererMenu.js' type='text/javascript' ></script><script language='JavaScript'> var activeField = null; function ClsTextbox_onKeyDown(fieldName) { var field = document.forms[0].elements[fieldName]; activeField = field; field.lastValue = field.value; } </script> <script language='JavaScript'> function ClsTextbox_onKeyUp(fieldName,nextFieldName,maxLeng th) { var field = document.forms[0].elements[fieldName]; var nextField = document.forms[0].elements[nextFieldName]; if (field == activeField && field.value != field.lastValue && field.value.length >= maxLength) nextField.focus(); activeField = null; } </script><script>var s_account="dgaglapersonnellecomdev";</script>
<script src="/Transactionnel/ScriptResource.axd?d=tGhE21--m-VReb4EY_OgpXmLaWuc-qSjk7PWCJgbzSz3YhrDJz15tbUiU7t7mFhqgbzJ2TzclP9QHJ1 UIxzDZEyAeiru84WUhendMDrJ5pI1&amp;t=63318015149713 6527" type="text/javascript"></script>
<script src="/Transactionnel/ScriptResource.axd?d=tGhE21--m-VReb4EY_OgpXmLaWuc-qSjk7PWCJgbzSz3YhrDJz15tbUiU7t7mFhqgbzJ2TzclP9QHJ1 UIxzDZGhdMTM-lvz6nWLl02as7vlDgSzE6QLtGogZ-jj_QVPI0&amp;t=633180151497136527" type="text/javascript"></script>
<div id="divMaster" class="ONLI">



<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00 $PlaceHolderMain$ascmScriptManager', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._upd ateControls(['tctl00$PlaceHolderMain$usrPageTransactionnelle$us rMessages$pnMessage','tctl00$PlaceHolderMain$usrPa geTransactionnelle$apnlGroupeSelectionEncadre','tc tl00$PlaceHolderMain$usrPageTransactionnelle$pnlQu estionSpecifiqueCanexEncadre'], ['ctl00$PlaceHolderMain$usrPageTransactionnelle$btn Recherche'], [], 90);
//]]>
</script>

<div id="contenuPage">
<div id="contenuPageExt">
<div id="contenuPageInt">
<div id="etape">
<div id="etapeExt">
<div id="etapeInt">
<ul><li id="nav-conditionentree"><a id="ctl00_PlaceHolderMain_usrGestionOnglet_Conditi onEntree" disabled="disabled" class="nav-actif">ConditionEntree</a></li><li id="nav-bien"><a id="ctl00_PlaceHolderMain_usrGestionOnglet_Bien" disabled="disabled" class="nav-off">Bien</a></li><li id="nav-assure"><a id="ctl00_PlaceHolderMain_usrGestionOnglet_Assure " disabled="disabled" class="nav-off">Assure</a></li><li id="nav-offre"><a id="ctl00_PlaceHolderMain_usrGestionOnglet_Offre" disabled="disabled" class="nav-off">Offre</a></li></ul>
</div>
</div>
</div>
<div id="contenuForm">
<div id="contenuFormExt">
<div id="contenuFormInt">
<div id="divPageTransactionnelle">


<div id="divMessages">
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrMessages_pnMessage">






</div>



</div>


<div id="blocJeudechamp1" class="blocJeudechamp">
<div id="blocJeudechamp1Ext" class="blocJeudechampExt">
<div id="blocJeudechamp1Int" class="blocJeudechampInt">
<div id="blocJeudechamp1Haut" class="blocJeudechampHaut">
<div></div>
</div>
<div id="blocJeudechamp1Milieu" class="blocJeudechampMilieu">
<div>
<fieldset id="jeudechamp1" class="jeudechamp">
<div class="listeQuestion">
<div class='blocQuestion premier'></div>
<div id='blocQuestion001' class='blocQuestion '>
<div id='question001' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlCodePostal">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlCodePostalQ">
<label id='labelQuestion001' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _txtCodePostal'>

Code postal du bien à assurer*

</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlCodePostalR">
<fieldset id='jeudechampZoneReponse001' class='jeudechampZoneReponse'>
<input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$txtCodePostal" type="text" maxlength="6" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ txtCodePostal" onclick="this.value = ''" />




<input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$hdnCodePostalActuel" type="hidden" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ hdnCodePostalActuel" />
</fieldset>
</div>

</div></div>
</div>
<div id='blocQuestion003' class='blocQuestion '>
<div id='question003' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlRechercheGroupe">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlRechercheGroupeQ">
<label id='labelQuestion003' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _txtRechercheGroupe'>
Inscrivez le nom de votre groupe et cliquez OK
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlAlignBoutonOk">
<fieldset id='jeudechampZoneReponse003' class='jeudechampZoneReponse'>
<input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$txtRechercheGroupe" type="text" maxlength="100" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ txtRechercheGroupe" onkeypress="Enter(this.id);" />

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlBoutonOk">

<a onclick="wait();" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ btnRecherche" href="javascript:__doPostBack('ctl00$PlaceHolderMa in$usrPageTransactionnelle$btnRecherche','')"></a>

</div>


</fieldset>
</div>

</div></div>
</div>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ apnlGroupeSelectionEncadre">

</span><div id='blocQuestion005' class='blocQuestion '>
<div id='question005' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlTypeTransaction">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlTypeTransactionQ">
<label id='labelQuestion005' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _ddlTypeTransaction'>
Veuillez indiquer laquelle des situations suivantes s'applique :
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlTypeTransactionR">
<fieldset id='jeudechampZoneReponse005' class='jeudechampZoneReponse'>
<select name="ctl00$PlaceHolderMain$usrPageTransactionnell e$ddlTypeTransaction" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ ddlTypeTransaction" onChange="CETraitementTypeTransaction(this.id)">
<option selected="selected" value="-1">Choisir</option>
<option value="PR">Propriétaire occupant</option>
<option value="LO">Locataire occupant</option>
<option value="CD">Copropriétaire occupant (condominium)</option>

</select>


</fieldset>
</div>

</div></div>
</div>
<div id='blocQuestion006' class='blocQuestion '>
<div id='question006' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlNombreAssure">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlNombreAssureQ">
<label id='labelQuestion006' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _ddlNombreAssure'>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ spnNombreProprio" style="display:none;">
Nombre de propriétaires
</span>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ spnNombreLocataire" style="display:none;">
Nombre de locataires
</span>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ spnNombreCopro" style="display:none;">
Nombre de copropriétaires
</span>
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlNombreAssureR">
<fieldset id='jeudechampZoneReponse006' class='jeudechampZoneReponse'>
<select name="ctl00$PlaceHolderMain$usrPageTransactionnell e$ddlNombreAssure" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ ddlNombreAssure" style="display:none;">
<option selected="selected" value="-1">Choisir</option>
<option value="1">1</option>
<option value="2">2</option>

</select>

</fieldset>
</div>

</div></div>
</div>
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlQuestionSpecifiqueCanexEncadre">

</span><div id='blocQuestion008' class='blocQuestion '>
<div id='question008' class='question'>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlDateEffective">

<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlDateEffectiveQ">
<label id='labelQuestion008' class='labelQuestion' for='ctl00_PlaceHolderMain_usrPageTransactionnelle _usrDateMultiDebut_Annee'>
Date à laquelle vous aimeriez que votre police d'assurance entre en vigueur?
</label>
</div>
<div id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ pnlDateEffectiveR">
<fieldset id='jeudechampZoneReponse008' class='jeudechampZoneReponse'>
<input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$usrDateMultiDebut$Annee" type="text" value="2009" maxlength="4" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrDateMultiDebut_Annee" class="Annee" onKeyDown="javascript:ClsTextbox_onKeyDown(this.id )" onFocus="this.select();" onKeyUp="javascript:ClsTextbox_onKeyUp(this.id,thi s.id.replace('_Annee','_Mois'),4)" AutoComplete="Off" /><span class="lblLigneObliqueGauche">&nbsp;/&nbsp;</span><input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$usrDateMultiDebut$Mois" type="text" value="04" maxlength="2" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrDateMultiDebut_Mois" class="Mois" onKeyUp="javascript:ClsTextbox_onKeyUp(this.id,thi s.id.replace('_Mois','_Jour'),2)" onKeyDown="javascript:ClsTextbox_onKeyDown(this.id )" onFocus="this.select();" AutoComplete="Off" /><span class="lblLigneObliqueDroite">&nbsp;/&nbsp;</span><input name="ctl00$PlaceHolderMain$usrPageTransactionnell e$usrDateMultiDebut$Jour" type="text" value="06" maxlength="2" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrDateMultiDebut_Jour" class="Jour" onKeyUp="javascript:ClsTextbox_onKeyUp(this.id,thi s.id.replace('_Jour','_Jour'),2)" onKeyDown="javascript:ClsTextbox_onKeyDown(this.id )" onFocus="this.select();" AutoComplete="Off" />

</fieldset>
</div>

</div></div>
</div>

<div class='blocQuestion dernier'></div>
</div>
</fieldset>
</div>
</div>
<div id="blocJeudechamp1Bas" class="blocJeudechampBas">
<div></div>
</div>
</div>
</div>
</div>



<div id="blocJeudechamp2" class="blocJeudechamp">
<div id="blocJeudechamp2Ext" class="blocJeudechampExt">
<div id="blocJeudechamp2Int" class="blocJeudechampInt">
<div id="blocJeudechamp2Haut" class="blocJeudechampHaut">
<div></div>
</div>
<div id="blocJeudechamp2Milieu" class="blocJeudechampMilieu">
<div>
<a href="#">
<fieldset id="jeudechamp2" class="jeudechamp">
<span id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ insElementsExclusion"></span>
</fieldset>
</a>
</div>
</div>
<div id="blocJeudechamp2Bas" class="blocJeudechampBas">
<div></div>
</div>
</div>
</div>
</div>




<div id="blocJeudechampSoumettre" class="blocJeudechampSoumettre">
<div id="blocJeudechampSoumettreExt" class="blocJeudechampSoumettreExt">
<div id="blocJeudechampSoumettreInt" class="blocJeudechampSoumettreInt">
<div id="blocJeudechampSoumettreHaut" class="blocJeudechampSoumettreHaut">
<div></div>
</div>
<div id="blocJeudechampSoumettreMilieu" class="blocJeudechampSoumettreMilieu">
<div>
<fieldset id="jeudechampSoumettre" class="jeudechampSoumettre">

<ul id="boutonListe" class="boutonListe">
<li id="boutonPremier" class="bouton premier"></li>

<li id="boutonSuivant" class="bouton">
<a onclick="document.body.style.cursor = 'wait'; style.cursor = 'wait';DGAG_initialiserPageSoumise();" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrBoutonsFormulaire_linkBtSuivant" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$PlaceHolderMai n$usrPageTransactionnelle$usrBoutonsFormulaire$lin kBtSuivant&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))">Suivant</a>
</li>

<li id="boutonDernier" class="bouton dernier"></li>
</ul>

</fieldset>
</div>
</div>
<div id="blocJeudechampSoumettreBas" class="blocJeudechampSoumettreBas">
<div></div>
</div>
</div>
</div>
</div>


<div id="boutonQuitter">
<a onclick="DGAG_initialiserPageSoumise();if (confirm('Toutes vos données seront perdues. Quitter?') == false){return false;};" id="ctl00_PlaceHolderMain_usrPageTransactionnelle_ usrBoutonsFormulaire_linkBtQuitter" href="javascript:__doPostBack('ctl00$PlaceHolderMa in$usrPageTransactionnelle$usrBoutonsFormulaire$li nkBtQuitter','')">Quitter</a>
</div>








































</div>
</div>
</div>
</div>
</div>
</div>
</div>

</div>

<div>

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWEQKh4MePBwKwtfv7AwL0ubuTDgKW7qWMAwKcqJanAQLH49T BBwK049DcBwKg45zcBwKZ46jcBwLCu8/gDwLOu4PjDwLPu4PjDwLlvLyoCgLyy8nFBAKxupvpBQLt+dSuA wLG9Nj1BOnyUNWSVm0LndVKa0JRsZxFsjsu" />
</div>
<script src='/Transactionnel/Includes/s_code_remote.js'></script><script language='javascript' type='text/javascript'>
s.server="";
s.pageType="";
s.state="";
s.eVar33="";
s.prop33="";
s.zip="";
s.events="event6";
s.products="";
s.eVar18="";
s.purchaseID="";
s.prop18="";
s.prop1="laPersonnelle";
s.eVar1="laPersonnelle";
s.prop2="QC";
s.eVar2="QC";
s.prop3="FR";
s.eVar3="FR";
s.prop30="";
s.eVar30="";
s.prop31="";
s.eVar31="";
s.prop40="";
s.eVar40="";
var s_code=s.t();if(s_code)document.write(s_code);
</script>

<script type="text/javascript">
<!--
Sys.Application.initialize();
// -->
</script>
</form>
</body>
</html>[/code]
Oct 22 '07 #23
phfle1
27
Hum... seems there is a problem with my previous post
Oct 22 '07 #24
phfle1
27
Why is this blank. When I click reply, I see the content, but it is not displayed in the thread
Oct 22 '07 #25
drhowarddrfine
7,435 Expert 4TB
You are missing your ending [/quote] tag. I can't fix it but you can. That might be faster than me contacting a mod.
Oct 22 '07 #26
drhowarddrfine
7,435 Expert 4TB
A vertical bar is no a valid character allowed in names, classes or ids.
If you don't know how to validate for html and css errors, see the article about validation under Articles->HTML above.
Oct 22 '07 #27
phfle1
27
1.sorry for the tags
2. I put in the code below the part of the css file that has a link with the panel containing the button.
3. I have the same problem on Firefox
4. 13 html errors?


javascript wait function
Expand|Select|Wrap|Line Numbers
  1. function wait()
  2.   {
  3.      document.body.style.cursor = 'wait';
  4.  
  5.   }
Function that straps the javascript event on the button
Expand|Select|Wrap|Line Numbers
  1. Private Sub Page_Load(ByVal vSender As Object, ByVal vEvent As System.EventArgs) Handles Me.Load
  2.         clsOutilsTrans.TracePerfoONLI("(TAL) LOAD Condition entree habitation", True)
  3.  
  4.         If Not clsOutilsTrans.EstModePilotage Then
  5.             GererToken()
  6.             GererInitialisations()
  7.             GererContexte()
  8.             GererParametresRecus()
  9.             GererChargementListes()
  10.             GererAffichageChamps()
  11.         Else
  12.             GererInitialisations()
  13.             GererChargementListes()
  14.             GererAffichageChamps()
  15.         End If
  16.  
  17.         'ajouter l'evenement javascript lors du click du bouton recherche
  18.         Me.btnRecherche.Attributes.Add("onclick", "wait()")
  19.         clsOutilsTrans.TracePerfoONLI("(TAL) LOAD Condition entree habitation", False)
  20.  
  21.     End Sub


part of the css
Expand|Select|Wrap|Line Numbers
  1. #pnlRechercheGroupe label { 
  2.     width: 25em;
  3.     padding-right: 2em;
  4. }
  5. #pnlCodePostal, #pnlNombreAssure, #pnlTypeTransaction, #pnlNombreAssure, #pnlGroupe, #pnlConfirmationGroupe, #pnlConfirmationGroupeRadioButton, #pnlRechercheGroupe, #pnlGroupeSelection, #pnlQuestionSpecifiqueCanex { 
  6.     margin-bottom: 20px;
  7. }
Oct 22 '07 #28
phfle1
27
Hi Dr,

There is no | in any class or id name. There are 2 | in the file and they are javascript ||.

For the validation, it seems the article you were talking about only gives addresses that need that your site is available online which is not yet my case. It is only available locally. I looking for html validators that take text as an input. If you have any address or program name :).
Oct 22 '07 #29
drhowarddrfine
7,435 Expert 4TB
The W3C validator has a tab at the top for direct input of html and css. In Firefox, you can install the html-tidy extension. (You are using Firefox, correct?)
Oct 22 '07 #30
phfle1
27
Thanks,

Sorry, I hadn't seen the tabs.
My VS2005 is attach to a internet explorer. I use firefox after to see if all is ok.
Oct 22 '07 #31
drhowarddrfine
7,435 Expert 4TB
That's backwards. Never, ever use any version of IE to initially test a web page. It is nine years behind web standards or wrong in its imlementation. Always, always use a modern browser, such as Firefox, Opera or Safari. Then, if necessary, the markup can be hacked to get IE to work.
Oct 23 '07 #32
phfle1
27
Ok,

I just realized that the problem was that there was an ajax call on the click of the button so there wasn't any post back. So the cursor could not be changed back to default.

Thanks, for the help
Oct 25 '07 #33
Frinavale
9,735 Expert Mod 8TB
Ok,

I just realized that the problem was that there was an ajax call on the click of the button so there wasn't any post back. So the cursor could not be changed back to default.

Thanks, for the help

I'm glad you solved your problem.
Oct 29 '07 #34

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: euler | last post by:
why did the keydown event not fire in this simple example? <HTML> <HEAD><title>keydown_div</title> <script type="text/javascript"> function keydown() { alert("keydown"); } </script>
2
by: jascraig | last post by:
Here's my dilemma. I'm working with a frameset with 3 frames (header,content,control). My control frame contains a select list with buttons for next and previous. When the next button is pushed...
8
by: moondaddy | last post by:
I have a form for entering a user's address and all fields have a required validating control associated with them and the error msg for each field displays right next to it. The normal behavior...
0
by: jonathan.beckett | last post by:
I have been working on a client project recently that is using winforms ..NET user controls within web pages in Internet Explorer, and need to find out how to make the user control communicate back...
1
by: clickon | last post by:
Forget about the controlParameter for the moment, for testing purposes i have created the following Markup: <asp:Table ID="tblSelectRoute" runat="server" CssClass="asp-table"> <asp:TableRow>...
6
by: den 2005 | last post by:
Hi everybody, Question 1: How do you set the values from server-side to a client-side control or how do you execute a javascript function without a button click event? Question 2: How do you...
8
by: rn5a | last post by:
I have gone through a no. of posts in this NewsGroup regarding my problem but alas, couldn't come across one which would have helped me in resolving the issue. My problem is this: An ASPX Form...
3
by: John Kotuby | last post by:
Hi all... I am trying to do a simple thing and maybe am missing something elementary. I have created a Javascript function at the top of a page which is meant to enable editing of an HTML input...
1
by: kret | last post by:
Hi, this is my first post so first of all I would like to say hello :) Now getting to my problem. In my job I have to create an ActiveX control in .NET 1.1 that can be lunched from IE....
0
by: rahulsengar | last post by:
Hey how can i lauch my application on incoming call notification in windows mobile . hey can u please help me how to launch my application automatically when an incoming call occurs. Is there any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.