-
Javascript sintax error
hi,
does anyone see a js sintax error in this if statement
if (event.shiftKey) {
var sel = this.getSelected();
if (sel.length>0) {
var first = sel[0], last = sel[sel.length-1];
var mark = false;
this.entries.each( function(d, i) {
if (d==first) mark = true;
if (d==last) throw $break;
if (mark && !this.selected[i]) Assets.select(d);
}.bind(this));
}
}
my debuger sais there is one and IE displays one as well and the script doesnt function
-
Product Designer
that is not the full script..
anyhow try viewing the page with Firefox and open the Javascript Consolle.
It will show you any JS errors, if you click on each it will mostly point the actual line that killed the execution.
Hope this helps...
Altruism does not exist. Sustainability must be made profitable.
-
the full script is 500 lines i loose count reading it and i wrote most of it! can immagine how could a person who reads it for the first time find an erroer in it.
for debuging i am using "1st javascript editor"
the script works fine in firefox. its not working at all in internet explorer!
the sintax error is exactly in this part of the code
-
Product Designer
change
Code:
this.entries.each( function(d, i) {
to
Code:
this.entries.each( function(d,i) ) {
what is this?
Altruism does not exist. Sustainability must be made profitable.
-
this is a method from prototype.js javascript framework. its ok
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|