Could I possibly make the recommendation that there be a 'Save, then compile' option down at the bottom as opposed to just 'Compile'? I had a compilation error in the layout I was trying to create, so the entire thing got wiped and I have to start over. It's not too much of a big deal because I'm mostly just copying and pasting from current styles, but had I created it entirely from scratch I'd be very very upset right now.
[I know this isn't directed at you yourself, but figured you would know to whom it should go.]
4. Triple-quoted strings allow you to use quotation marks without escaping them. These are useful for when you're dealing with a lot of HTML. For example, these are equivalent:
Woops, just got the notification email for this one; hadn't thought to check the entire page to see if the others were answered. Thanks for the other Language and core links too. :)
Aha, so basically it negates the need to escape the internal double-quotes? Gotcha, that makes much more sense. ', ", and """. :: goes back to looking through the styles ::
Are tags being stripped for a reason? I'm trying the Color Hover style, and it's no longer working properly. I haven't touched the preferences on my machine, so it's unlikely that all of a sudden it's not allowing JavaScript, but I'm not sure what else could be causing it. The section isn't even showing in the source code (View->Source) anymore, though it's still in the layout source code itself.
I haven't looked at the code extensively, but I'm guessing it's being stripped just like LiveJournal strips javascript to prevent malicious people from using javascript's cookie-grabbing "features" to steal people's login cookies.
Then that style's useless. :P It was working only a couple of hours ago, that's why I asked. I was surprised it changed so quickly, and rendered an already-created style pretty much pointless, that's all.
Wheee, it's off to Dublin I go, you're all free of me for probably at least 10 hours. ;)
From what I can tell, system layouts are "trusted" so they can include javascript. User layouts, however, are untrusted, so they can't include javascript.
It's not too much of a big deal because I'm mostly just copying and pasting from current styles, but had I created it entirely from scratch I'd be very very upset right now.
[I know this isn't directed at you yourself, but figured you would know to whom it should go.]
Reply
Reply
1 and 2. The core layer defines all built-in functions and classes used. You can browse all global functions, classes, members, and their methods at http://fb.callete.com/site/tech/layerbrowse?id=core1 .
3. $.blah does indeed mean $this.blah. The -> operator is used to call functions in classes. See the language reference at http://www.livejournal.org/s2/LanguageReference for more info.
4. Triple-quoted strings allow you to use quotation marks without escaping them. These are useful for when you're dealing with a lot of HTML. For example, these are equivalent:
"
( ... )
Reply
Reply
These are equivalent:
"
( ... )
Reply
Reply
Reply
Reply
Reply
Wheee, it's off to Dublin I go, you're all free of me for probably at least 10 hours. ;)
Reply
Reply
/unrelated
Thanks to both of you (asciident and supersat)! This is really fun!
Reply
Leave a comment