Click here to Skip to main content
15,914,444 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Html View Pin
Lijo Rajan17-Apr-07 1:52
Lijo Rajan17-Apr-07 1:52 
GeneralRe: Html View Pin
enjoycrack17-Apr-07 4:39
enjoycrack17-Apr-07 4:39 
QuestionDatalink Connection dialog in asp.net Pin
dtamils17-Apr-07 0:01
dtamils17-Apr-07 0:01 
QuestionASP.NET Ajax v1.0 Pin
DGtech16-Apr-07 23:40
DGtech16-Apr-07 23:40 
AnswerRe: ASP.NET Ajax v1.0 Pin
Christian Graus16-Apr-07 23:45
protectorChristian Graus16-Apr-07 23:45 
GeneralRe: ASP.NET Ajax v1.0 Pin
DGtech16-Apr-07 23:54
DGtech16-Apr-07 23:54 
GeneralRe: ASP.NET Ajax v1.0 Pin
Christian Graus17-Apr-07 0:07
protectorChristian Graus17-Apr-07 0:07 
Questionjavascript events Pin
Russell Jones16-Apr-07 23:31
Russell Jones16-Apr-07 23:31 
i've written the following code. it doesn't yet do what it needs to i'm just getting the events set up at the moment. what's meant to happen is that the controls are paired so we have xxxxCyyyy and xxxxDyyyy where xxxx and yyyy could be any alpha text. onblur from xxxxCyyyy some things have to be done to xxxxDyyyy. basically there's a reversible function that describes the relationship between the values contained in the two controls, if you enter data in one, the other should be calculated and the cell disabled.

function RegisterAmountValidation()<br />
{<br />
var form = document.forms[0];<br />
   for(i = 0;i < form.elements.length;i++)<br />
   {<br />
      var controlId = form.elements[i].id;<br />
      if (controlId.substring(0,7) == 'jed_amt')<br />
      {<br />
         var suffix = controlId.substring(9);<br />
         var targetControl = '';<br />
        <br />
         if(controlId.substring(7,8)=="C")<br />
         {<br />
            targetControl = controlId.substring(0,7) + "D" + suffix;<br />
         }<br />
         else<br />
        {<br />
            targetControl = controlId.substring(0,7) + "C" + suffix;<br />
        }<br />
         alert (controlId + " | " +targetControl );<br />
         form.elements[i].onblur = function() {Validate(targetControl);};<br />
      }<br />
   }<br />
}<br />
function Validate(cellToEffect)<br />
{<br />
      alert(cellToEffect);<br />
}<br />
window.onload = RegisterAmountValidation;


this line of code shows what i would expect
alert (controlId + " | " +targetControl );

however when i exit a control on the form only the one that was registered last gets fired and it gets fired for every control. Have i misunderstood JS events?

Thanks

Russell
AnswerRe: javascript events Pin
Russell Jones17-Apr-07 0:53
Russell Jones17-Apr-07 0:53 
Questionjavascript visible true/false Pin
pradeep kumarappagari16-Apr-07 23:21
pradeep kumarappagari16-Apr-07 23:21 
AnswerRe: javascript visible true/false Pin
Christian Graus16-Apr-07 23:34
protectorChristian Graus16-Apr-07 23:34 
AnswerRe: javascript visible true/false Pin
gauthee16-Apr-07 23:35
gauthee16-Apr-07 23:35 
AnswerRe: javascript visible true/false Pin
Sylvester george16-Apr-07 23:37
Sylvester george16-Apr-07 23:37 
GeneralRe: javascript visible true/false Pin
pradeep kumarappagari16-Apr-07 23:38
pradeep kumarappagari16-Apr-07 23:38 
QuestionMaintain application's to run only one at a time Pin
Lappalainen Antti16-Apr-07 23:12
Lappalainen Antti16-Apr-07 23:12 
AnswerRe: Maintain application's to run only one at a time Pin
Christian Graus16-Apr-07 23:21
protectorChristian Graus16-Apr-07 23:21 
GeneralRe: Maintain application's to run only one at a time Pin
Lappalainen Antti16-Apr-07 23:45
Lappalainen Antti16-Apr-07 23:45 
QuestionCustomising the Login Control Pin
Brendan Vogt16-Apr-07 23:06
Brendan Vogt16-Apr-07 23:06 
Questionchange text value in textbox in file upload control Pin
sivainfo16-Apr-07 22:57
sivainfo16-Apr-07 22:57 
AnswerRe: change text value in textbox in file upload control Pin
Christian Graus16-Apr-07 23:22
protectorChristian Graus16-Apr-07 23:22 
QuestionError: Server tag is not well formed Pin
Jay_se16-Apr-07 22:53
Jay_se16-Apr-07 22:53 
AnswerRe: Error: Server tag is not well formed Pin
Colin Angus Mackay16-Apr-07 23:13
Colin Angus Mackay16-Apr-07 23:13 
GeneralRe: Error: Server tag is not well formed Pin
Jay_se16-Apr-07 23:18
Jay_se16-Apr-07 23:18 
GeneralRe: Error: Server tag is not well formed Pin
thomasa16-Apr-07 23:26
thomasa16-Apr-07 23:26 
GeneralRe: Error: Server tag is not well formed Pin
Jay_se16-Apr-07 23:53
Jay_se16-Apr-07 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.