Extended View class raise exception.
Reported by Takeo TSUCHIDA | November 25th, 2008 @ 04:26 PM
I'd like to generate a view dynamic. I tried below code. It works on Safari 3.2, but it dosen't work on Firefox 3.0.4. Exception were rised.
Both software for Inte Mac.
var newView = SC.View.extend({emptyElement: '
'}); var aView = newView.create();Comments and changes to this ticket
-
-

Takeo TSUCHIDA December 5th, 2008 @ 02:52 AM
I did below code. var newView = SC.View.extend({emptyElement: '<tr><tr>'}); var aView = newView.create();
Firebug's log limit has been reached. %S entries not shown. Preferences uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://localhost:4020/static/spr... :: anonymous :: line 2061" data: no] definitions instead.$trace = ()()
-
Charles Jolley December 5th, 2008 @ 09:02 AM
- → Tag changed from bug to developer
- → State changed from new to invalid
there are two problems here:
- your HTML is invalid. It should have a closing slash:
< tr>< /tr>
- You can't simply generate and insert TR elements. Browser's won't allow you to build tables in this way unfortunately. Try using a different element type.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
SproutCore: JavaScript Application Framework
Source available from github
The Git repository resides at http://github.com/sproutit
Check out the current development trunk with:
git clone git://github.com/sproutit/sproutcore.git
Creating a bug report
When creating a bug report, be sure to include as much relevant information as possible. Post the code sample that causes the problem. Preferably, alter the unit tests and show through either changed or added tests how the expected behavior is not occuring.
Submitting Patches
Resist adding new tags, use the ones in the tag cloud already. If you are submitting a patch or a pull request from a fork, tag the ticket as a "patch". If you are submitting a new feature enhancement, tag it as "enhancement". If you are submitting a fix for a bug, tag it as "fix".
Thanks!
We're glad you're contributing. Feel free to drop by the Google Group as well to let us know you are involved.
