[tutorial] A Simple Start -- Setting Up & Making A Simple Layer

Nov 19, 2002 01:57

  1. Create account on http://fb.callete.com.
  2. Go to "Manage Account".
  3. Go to "Galleries".
  4. Go to "Create Gallery".
  5. Enter a name and fill in other fields if desired.

Leave a comment

eefster November 19 2002, 03:26:56 UTC
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.]

Reply

eefster November 19 2002, 04:51:06 UTC
More thoughts (I have them occasionally, but they never seem to come at the same time ( ... )

Reply

supersat November 19 2002, 05:03:06 UTC
To answer your questions:

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

eefster November 19 2002, 05:37:17 UTC
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. :)

Reply

supersat November 19 2002, 05:04:37 UTC
Erm, let me try this again!

These are equivalent:

"
... )

Reply

eefster November 19 2002, 05:08:30 UTC
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 ::

Reply

Re: supersat November 19 2002, 05:10:46 UTC
Yes indeedy!

Reply

eefster November 19 2002, 05:50:27 UTC
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.

Reply

Re: supersat November 19 2002, 05:57:15 UTC
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.

Reply

eefster November 19 2002, 06:00:15 UTC
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. ;)

Reply

supersat November 19 2002, 06:03:30 UTC
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.

Reply

ruakh November 19 2002, 13:55:01 UTC
That's my understanding as well.

/unrelated
Thanks to both of you (asciident and supersat)! This is really fun!

Reply


Leave a comment

Up