Comments (5)
Thanks, I just fixed all the jslint errors.
And that stack trace looks interesting... I guess there is some difference in IE
behavior. I will have to look at that later tonight.
Basically that exception is thrown when there's an undefined template variable
during
expansion. But none of the other browsers see it as undefined.
http://json-template.googlecode.com/svn/trunk/doc/testTableExample-001.js.html
Original comment by [email protected]
on 31 Mar 2009 at 9:30
- Changed title: Live example doesn't work in IE6
from json-template.
The major reason IE6 is not working is that the String.prototype.split method
does
not return captured groups in the result. For reference see
http://blog.stevenlevithan.com/archives/cross-browser-split.
The other reason is that IE6 does not let you index strings as an array, so
"token[0]" needs to be replaced with "token.charAt(0)" in function "_Compile".
These two changes make it work in IE6
Original comment by [email protected]
on 6 Apr 2009 at 10:48
from json-template.
Great thanks. I'm not sure if it's better to include that fix or just write a
loop
by hand to tokenize it... the regex is pretty simple, so maybe we can get rid
of it.
I will look at it this week (patches are welcome too).
Original comment by [email protected]
on 6 Apr 2009 at 4:25
- Changed state: Accepted
from json-template.
Didn't have time to look into it further, just thought i'd let you know where
the
problem arises.
I think if you'd do a "match" instead of a "split" it is basically fixed...
I will see if i have some time to look into it..
Original comment by [email protected]
on 6 Apr 2009 at 5:06
from json-template.
Thanks, your suggestions were spot on.
Original comment by [email protected]
on 20 Apr 2009 at 8:10
- Changed state: Fixed
from json-template.
Related Issues (20)
- Unbalanced section push and pop in the Java implementation HOT 3
- Add a LISP-style "let" statement
- A predicate containing the text 'or' results in a template parsing error
- typo in UrlParamsJsonTemplateFormatter HOT 2
- Error in JsonTemplateModule::FromFile() HOT 1
- Iteration over dictionary - Patch for /python/jsontemplate/_jsontemplate.py HOT 1
- Iteration over dictionary - Patch for /python/jsontemplate/_jsontemplate.py HOT 1
- cannot pip install json-template
- Javascript within JSON templates HOT 1
- <img> src being ignored. HOT 1
- Possibly a typo introduced by revision cc10d7e78b94 HOT 1
- HTML formatter doesn't work for numeric values HOT 2
- expand sometime return blank HOT 1
- Patch for /jesyll-doc/__config.json
- token_re_cache in javascript implementation doesn't do anything? HOT 2
- Setup.py dependency chaining broken; fix enclosed HOT 1
- Python 3 diff HOT 1
- json data formte with metdata of object HOT 1
- Iteration over dictionary (patch) HOT 2
- saite de filmes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-template.