Re: get object name from within object
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: get object name from within object

From: Richard Cornford <Richard@litotes.demon.co.uk>
Date: Sat Jul 23 2005 - 14:51:01 CEST

warteschlange wrote:
<snip>
> i create dynamic a jsfunction
> [JS]
> function trulyPHPFunc( arguments ){
> return call_HTTP_Request( {func:callee , args:arguments } );
> // where calle is the name
> }
> [/JS]

But when you dynamically create this function you must know its name in
order to output ' function trulyPHPFunc( ... ', so what is stopping you
dynamically inserting the same function name into a string within the
function?

> don't remind me:
> * this works only 'sync' and it can block the browser

It is not 'can block the browser', it is 'will block the browser'.
Blocking the browser is a bad idea that should be avoided. It is
particularly problematic when the network or server experience problems
as it blocks the browser until the request times out.

> * i know AJAX/XML_RPC/SOAP

The statement 'I know AJAX' seems somewhat vague. The 'A' in AJAX stands
for asynchronous so to 'know' AJAX should be to know how to handle
asynchronous background client-server interactions. Granted the term
'AJAX' appears to have been degraded to mean nothing more than using
HTTP request objects, and then quite often synchronously because the
thought and effort involved in coping with asynchronous operations
exceeds the willingness or the knowledge of those interested in applying
a buzzword to their own creations.

Richard.
Received on Tue Oct 18 03:00:20 2005