Difference between revisions of "Talk:IGB Javascript Methods"

From Backstage Lore Wiki
Jump to: navigation, search
(New page: data type of expected arguments should be included. Also examples and a proper method signature notation. The current representation is not a proper method signature.)
 
Line 1: Line 1:
 
data type of expected arguments should be included.  Also examples and a proper method signature notation.  The current representation is not a proper method signature.
 
data type of expected arguments should be included.  Also examples and a proper method signature notation.  The current representation is not a proper method signature.
 +
 +
----
 +
 +
 +
There is no :: operator in JavaScript.
 +
 +
This is a syntax error:
 +
 +
<tt><button type="button" onClick="Client.ShowRouteTo(30003276::30000380)">Show Route</button>
 +
</tt>
 +
 +
Is the example missing quotes?
 +
 +
<tt><button type="button" onClick="Client.ShowRouteTo('30003276::30000380')">Show Route</button>
 +
</tt>
 +
 +
I'd prefer if ShowRouteTo would just support two parameters (and was probably renamed to reflect the order of arguments):
 +
 +
<tt><button type="button" onClick="Client.ShowRouteFromTo(30003276, 30000380)">Show Route</button>
 +
</tt>
 +
 +
--[[Contributor name:Haskell|Haskell]] 14:37, 5 October 2009 (UTC)

Revision as of 08:37, 5 October 2009

data type of expected arguments should be included. Also examples and a proper method signature notation. The current representation is not a proper method signature.



There is no :: operator in JavaScript.

This is a syntax error:

<button type="button" onClick="Client.ShowRouteTo(30003276::30000380)">Show Route</button>

Is the example missing quotes?

<button type="button" onClick="Client.ShowRouteTo('30003276::30000380')">Show Route</button>

I'd prefer if ShowRouteTo would just support two parameters (and was probably renamed to reflect the order of arguments):

<button type="button" onClick="Client.ShowRouteFromTo(30003276, 30000380)">Show Route</button>

--Haskell 14:37, 5 October 2009 (UTC)

Personal tools
Namespaces

Variants
Actions
Navigation
Tools