Quote:
Originally Posted by Deas_Voice
there's your parameters right there.
it want's an object, documention failure. (<- future reference, i know it have been solved already)
|
Well it ultimately finds the object (object/string magic still stands) whether you pass it the reference or it's name anyway.
I.e:
PHP Code:
function onCreated() {
temp.req = requesturl("http://google.ca");
temp.requestname = temp.req.name; // Just for example, don't actually do it this way.
this.catchevent(temp.requestname, "onReceiveData", "onWebData");
}
function onWebData() {
echo("Data received!");
}
Passing an object still looks better in the end though.