Oh, I see. The Action is built around sending people to pages or
folders within your site. The JavaScript to do this is extremely
simple. If you apply the Protaculous Action to the page, and follow a
couple of simple steps in Freeway, you could have this done in a moment.
Make your login page. Add a password field to the page by using
Insert / Text Field while you have a flashing text cursor where you
want the field to appear. (You may also want to add a Username field,
just to make it look official, we’ll be ignoring that in this approach.)
Click once on the field to select it, click over to the third tab from
the left in the Inspector and check the Password box; then give this
field a meaningful name in the Name field (I’m using myName in this
example, use your own variable name, and make sure the following bits
of code that rely on it all match up).
Finally, while the text field is still selected, choose Item /
Extended from the main menu. Make sure the tab is selected,
click New, and in the resulting dialog, enter:
Okay out of the stack of dialogs.
I just want to stress the only important part of this exercise so far
– naming things.
-
Your password field needs to have a valid name. (Valid names begin
with an alphabet character, traditionally lower-case, and do not
contain any punctuation besides the underscore character. They may
include numerals, as long as you are past the first character.)
-
The ID must be exactly the same as the name, case-sensitive, or poor
old IE will start muttering to itself in the corner.
-
There must be no other element on the page with that same ID or Name
attribute. You can verify this by previewing into a browser, using
View Source, and then using the Find command to search for your field
name. There should be exactly one hit for the name attribute and one
hit for the ID if you’ve done everything correctly.
Now for the JavaScript. Click on the page, so you see the Page Actions
in your Actions palette. Click on the Protaculous tab (or apply the
Action if you haven’t already). Set the Library picker to prototype-
packed, and click on the top Function Body button. Paste in the
following, making sure that if you didn’t name your field myName, you
change this code to reflect the name you actually entered.
That’s the whole thing. As you can see, the explanation takes longer
than the code itself. Please let me know how it goes for you.
Walter
On Mar 4, 2011, at 9:36 AM, Dan Demetriad wrote:
I know it is an old issue, the password.
On my site www.demetriad.com, my clients can see their sessions by
going to “My Photo Session” tab and entering their password that
takes them to the server. The first part of the password (the
address of the server) is always the same: http://
myphotosession.com/. After the forward slush the client adds the
given password, for example: http://www.myphotosession.com/Ridgewood
Country Club 2010, or
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options