473,504 Members | 13,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JavaScript eror in FireFox "no properties error" works fine in IE

Hi,
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. The generated link looks
similar to:

javascript:gridWidget['PDDStyleSection'].editColumn(3, 3,
'PDDSectionForm', 'pdd_link', ..)

The above works fine in IE.

The above works fine in FF when not used as an array, for example:
javascript:gridWidget.editColumn(3, 3, 'PDDSectionForm', 'pdd_link',
...)

ERROR SHOWN IN VENKMAN CONSOLE:
-----------------------------------------------------------------------

Exception ``TypeError: gridWidget.PDDStyleFitPOMSection has no
properties'' thrown from function (null)() in
<javascript:gridWidget['PDDStyleFitPOMSection'].editColumn(3, 3,
'PDDStyleFitPOMSectionTemplateForm', 'pdd_save_pom_row_column_link',
'PDDStyleFitPOMSection');> line 1.
[e] message = [string] "gridWidget.PDDStyleFitPOMSection has no
properties"
Stopped for thrown exception.
#0: function (null)() in
<javascript:gridWidget['PDDStyleFitPOMSection'].editColumn(3, 3,
'PDDStyleFitPOMSectionTemplateForm', 'pdd_save_pom_row_column_link',
'PDDStyleFitPOMSection');> line 1
--------------------------------------------------------------------------

Any help/pointers will greatly be appreciated.

Thanks,
Shyam

May 12 '06 #1
1 2273
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/
May 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2178
by: TeknoCat | last post by:
Hey everyone, I may be repeating myself here, but if someone sent a reply then I missed it, and I can't get Outlook Express to download any messages more than 2 days old. Anyway, I'm having a...
3
10400
by: dricks dr | last post by:
Hi, I'm using the AxWebBrowser Control from microsoft in a C# application. It works fine, but i have many problems to hide the javascript error windows that appear when u visit a website with......
2
1469
by: Ben Fidge | last post by:
Hi I'm getting javascript errors when I use Validator controls on my checkout page which runs under SSL. This is only happening on Windows 2003 server though and not on my XP development...
1
2381
by: info | last post by:
I have a 'no properties error' (from Firefox's 1.5 javascript console) on: var position_pt = options.search(";") in the following segment of code. The strange thing is that I'm referencing the...
4
3085
by: Phil | last post by:
Hi, This code gives an javascript error: "Object required" and never let see the Alert window. in code-behind: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As...
2
6628
by: ZeeHseez | last post by:
Hi, I have written a webbrowser application in VB .net Framework 1.1. I would like to suppress javascript error messages. However, the silent property of the webbrowser control suppresses the...
5
10788
by: Nathan Sokalski | last post by:
I have an ASP.NET application which is giving the following JavaScript error: 'theForm' is undefined However, when I do a View Source one of the <scriptelements is as follows: <script...
7
3066
by: preeti13 | last post by:
i have a java script function with the pop up i want to update a database ow i am getting the erorr any one please help me with this. code is like this <script type="text/javascript"> ...
10
2600
by: Roger | last post by:
ms-access97 & sql server2005 two tables tblItem tblItemFeature form frmItem contains subform frmItemFeature each form is based on their respective table creating new record and filling in...
1
3121
by: aloksingh83 | last post by:
This error coming when i am using telerik grid.It works fine in asp.net grid what i am trying to do is taking values from textbox and show in grid view... here is the code: <script...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.