DelphiFAQ Home Search:

ExtJS , Store object, lastOptions error messages

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

I get error messages in Internet Explorer when I use ExtJs in my project. Firefox (version 2) shows no issues.

Internet Explorer (version 6) says 'object expected'.

Answer:

Does your code by any chance read parameter values as if they were a sub-parameter? See the example code. The parameter 'export' should be read as shown in the second part of the code snippet.

// This works in Firefox:

  if (storeItems.lastOptions.params.export) {

// This works both in FF and in IE 
// (and does the same, important :-)

  if (storeItems.lastOptions.params['export']) 

Content-type: text/html

Comments:

2008-08-08, 09:33:30
[hidden] from Germany  
That is the case, because 'export' is reserved word in JavaScript. There are *many* keywords in JavaScript that are reserved for future usage. 'export' is one of them. E.g. http://javascript.a..served.htm has a list of this reserved words.

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: