View Single Post
  #11  
Old 04-06-2011, 08:41 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Deas_Voice View Post
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.
__________________
Quote:
Reply With Quote