A
andresjv
Hello there! I'm an old school javascript programmer, and recently
found this code:
# AIM = {
#
# frame : function(c) {
#
# var n = 'f' + Math.floor(Math.random() * 99999);
# var d = document.createElement('DIV');
# d.innerHTML = '<iframe style="display:none"
src="about:blank" id="'+n+'" name="'+n+'" onload="AIM.loaded(\''+n
+'\')"></iframe>';
# document.body.appendChild(d);
#
# var i = document.getElementById(n);
# if (c && typeof(c.onComplete) == 'function') {
# i.onComplete = c.onComplete;
# }
#
# return n;
# },
#
# form : function(f, name) {
# f.setAttribute('target', name);
# },
#
# submit : function(f, c) {
# AIM.form(f, AIM.frame(c));
# if (c && typeof(c.onStart) == 'function') {
# return c.onStart();
# } else {
# return true;
# }
# } ... more code
Could someone please tell me what is AIM? a class? a what? also, what
are frame, form and submit? are they events or something like that?
Could you please also tell me where I can learn this syntax?
thanks a lot...
found this code:
# AIM = {
#
# frame : function(c) {
#
# var n = 'f' + Math.floor(Math.random() * 99999);
# var d = document.createElement('DIV');
# d.innerHTML = '<iframe style="display:none"
src="about:blank" id="'+n+'" name="'+n+'" onload="AIM.loaded(\''+n
+'\')"></iframe>';
# document.body.appendChild(d);
#
# var i = document.getElementById(n);
# if (c && typeof(c.onComplete) == 'function') {
# i.onComplete = c.onComplete;
# }
#
# return n;
# },
#
# form : function(f, name) {
# f.setAttribute('target', name);
# },
#
# submit : function(f, c) {
# AIM.form(f, AIM.frame(c));
# if (c && typeof(c.onStart) == 'function') {
# return c.onStart();
# } else {
# return true;
# }
# } ... more code
Could someone please tell me what is AIM? a class? a what? also, what
are frame, form and submit? are they events or something like that?
Could you please also tell me where I can learn this syntax?
thanks a lot...