dasayu wrote:
> I have a custom object called gridWidget.
> I am consistantly getting an error in FireFox when I click on an href,
> which calls a function defined on the object.
Nobody can know about your custom object, so at least you should provide
its definition when there are problems with it.
> The generated link looks similar to:
Similar code does not help. Post actual code.
> javascript:gridWidget['PDDStyleSection'].editColumn(3, 3,
> 'PDDSectionForm', 'pdd_link', ..)
>
> The above works fine in IE.
Maybe. Maybe you have just not take notice of a yellow icon in the
status bar. Who knows ...
> The above works fine in FF when not used as an array,
This is a bracket property accessor. Since the property name is not
a number, this does not have anything to do with arrays. (Despite
rumors, there are no built-in associative arrays in ECMAScript
implementations.)
> for example:
> javascript:gridWidget.editColumn(3, 3, 'PDDSectionForm', 'pdd_link',
> ..)
gridWidget['PDDStyleSection'].editColumn
and
gridWidget.editColumn
are different references (not just different property accessor syntax), and
gridWidget['PDDStyleSection'].editColumn
and
> ERROR SHOWN IN VENKMAN CONSOLE:
> -----------------------------------------------------------------------
> [...] gridWidget['PDDStyleFitPOMSection'].editColumn [...]
are different, too. No wonder if
> [...] "gridWidget.PDDStyleFitPOMSection has no properties" [...]
because if that property is not defined, the reference evaluates to
`undefined'. And `undefined', the sole value of the Undefined type,
has no properties.
> Any help/pointers will greatly be appreciated.
Furthermore, don't use `javascript
:' here, see
<URL:http://jibbering.com/faq/#FAQ4_24>
PointedEars
--
http://members.ud.com/download/gold/
http://folding.stanford.edu/
http://alien.de/seti/
http://setiathome.ssl.berkeley.edu/