P
phocis
Hello, I'm writing a AJAX based content management system for kicks
(not for money), and I want to create a seemless integration of AJAX
and html forms.
Inorder to do this, I need to rewrite alot of the basic javascript
functionality of objects.
What I need to do... Is prototype the Form object's submit() function.
But I cannot figure out how.
E.G.
// This...
var new_string = 'asdf';
String.prototype.new_string_function = function () { alert('this is a
new string function'); };
// Yields an alert box whenever
new_string.new_string_function();
// Is called.
This method works for:
Window, Document, Object, and many other things. But not for Form. Why?
Am I just missing the Form's core class name? What could it be?
I've looked around for hacked core source codes of JS, but I can't find
any. So... Does anyone know how to nab this sucker's class name?
Many thanks,
Carl
(not for money), and I want to create a seemless integration of AJAX
and html forms.
Inorder to do this, I need to rewrite alot of the basic javascript
functionality of objects.
What I need to do... Is prototype the Form object's submit() function.
But I cannot figure out how.
E.G.
// This...
var new_string = 'asdf';
String.prototype.new_string_function = function () { alert('this is a
new string function'); };
// Yields an alert box whenever
new_string.new_string_function();
// Is called.
This method works for:
Window, Document, Object, and many other things. But not for Form. Why?
Am I just missing the Form's core class name? What could it be?
I've looked around for hacked core source codes of JS, but I can't find
any. So... Does anyone know how to nab this sucker's class name?
Many thanks,
Carl