Click here to Skip to main content
16,011,950 members
Home / Discussions / Web Development
   

Web Development

 
GeneralCannot update asp3.0 , mdb Pin
Hesham Amin8-Jul-03 22:42
Hesham Amin8-Jul-03 22:42 
GeneralRe: Cannot update asp3.0 , mdb Pin
Roger Wright8-Jul-03 23:03
professionalRoger Wright8-Jul-03 23:03 
GeneralSolved !! Pin
Hesham Amin9-Jul-03 1:35
Hesham Amin9-Jul-03 1:35 
GeneralRe: Solved !! Pin
Roger Wright9-Jul-03 6:17
professionalRoger Wright9-Jul-03 6:17 
Generalonfiltered event Pin
Firas Rashid8-Jul-03 22:37
Firas Rashid8-Jul-03 22:37 
GeneralRe: onfiltered event Pin
-- NA --13-Jul-03 4:04
-- NA --13-Jul-03 4:04 
GeneralProgrammatically adding multiple functions to one event handler (JS) Pin
Domenic Denicola8-Jul-03 10:49
Domenic Denicola8-Jul-03 10:49 
GeneralRe: Programmatically adding multiple functions to one event handler (JS) Pin
basementman9-Jul-03 9:57
basementman9-Jul-03 9:57 
Perhaps you can create a single set of functions that serve as an event dispatcher and bundle them up as a .js:

function HookEvent(oElement, cEventName, fFunction) {
var iIndex = -1;

if (oElement.EventList == null)
  oElement.EventList = new Array();
else
  iIndex = FindEventIndex(oElem, cEventName);

SetEventFunction(oElement, cEventName, iIndex, fFunction);
}


function FindEventIndex(oElem, cEventName) {
var aEvents = oElem.EventList;
if (aEvents != null)
  {
    for (var iLup = 0; iLup < aEvents.length; iLup++)
      {
        if (aEvents[iLup][0] == cEventName)
          return iLup;
      }
  }

return -1;
}

function SetEventFunction(oElement, cEventName, iIndex, fFunction) {
if (iIndex > -1)
  {
    var aEventFcns = oElement.EventList[iIndex][1];
    aEventFcns[aEventFcns.length] = fFunction;
  }
else
  {
    oElement.EventList[oElement.EventList.length] = new Array(cEventName, new Array(fFunction))
  }

eval("oElement." + cEventName + " = ProcessEventHandlers");
}

function ProcessEventHandlers() {
var oElem = window.event.srcElement;
var cEvent = "on" + window.event.type;

var iIndex = FindEventIndex(oElem, cEvent);
if (iIndex > -1)
  {
    var aFcns = oElem.EventList[iIndex][1];
    if (aFcns == null)
      return;
    
    for (var iLup = 0; iLup < aFcns.length; iLup++)
      {
        eval(aFcns[iLup]);
      }
  }
}


NOTE: THis is just something i typed in and is not guaranteed to work. Just for example purposes.


 onwards and upwards... 
GeneralRe: Programmatically adding multiple functions to one event handler (JS) Pin
Bjoern Graf9-Jul-03 18:33
Bjoern Graf9-Jul-03 18:33 
GeneralNeed help with HTML tags ... I think Pin
David Chamberlain8-Jul-03 10:16
David Chamberlain8-Jul-03 10:16 
GeneralRe: Need help with HTML tags ... I think Pin
basementman9-Jul-03 10:03
basementman9-Jul-03 10:03 
GeneralRe: Need help with HTML tags ... I think Pin
David Chamberlain9-Jul-03 10:24
David Chamberlain9-Jul-03 10:24 
GeneralRe: Need help with HTML tags ... I think Pin
basementman9-Jul-03 10:33
basementman9-Jul-03 10:33 
GeneralRe: Need help with HTML tags ... I think Pin
Not Active9-Jul-03 10:31
mentorNot Active9-Jul-03 10:31 
GeneralChanging Text Pin
Mardigin8-Jul-03 9:41
Mardigin8-Jul-03 9:41 
GeneralRe: Changing Text Pin
Hesham Amin8-Jul-03 20:39
Hesham Amin8-Jul-03 20:39 
GeneralRe: Changing Text Pin
ZoogieZork9-Jul-03 1:56
ZoogieZork9-Jul-03 1:56 
QuestionHow to Perl script in Windows 2000 Pro? Pin
mittalpa8-Jul-03 8:54
mittalpa8-Jul-03 8:54 
AnswerRe: How to Perl script in Windows 2000 Pro? Pin
Roger Wright8-Jul-03 9:30
professionalRoger Wright8-Jul-03 9:30 
AnswerRe: How to Perl script in Windows 2000 Pro? Pin
Bjoern Graf9-Jul-03 18:36
Bjoern Graf9-Jul-03 18:36 
GeneralDuplicate saving ASP 3.0 Pin
Hesham Amin8-Jul-03 5:17
Hesham Amin8-Jul-03 5:17 
GeneralRe: Duplicate saving ASP 3.0 Pin
Nino_18-Jul-03 21:17
Nino_18-Jul-03 21:17 
GeneralRe: Duplicate saving ASP 3.0 Pin
Dave McRae9-Jul-03 18:40
Dave McRae9-Jul-03 18:40 
GeneralRe: Duplicate saving ASP 3.0 Pin
Hesham Amin9-Jul-03 21:04
Hesham Amin9-Jul-03 21:04 
GeneralRe: Duplicate saving ASP 3.0 Pin
Dave McRae9-Jul-03 21:10
Dave McRae9-Jul-03 21:10 

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.