[albatross-users] popview example from documentation

Dave Cole djc at object-craft.com.au
Mon May 12 15:02:26 EST 2003


>>>>> "Sheila" == Sheila King <sheila at thinkspot.net> writes:

Sheila> Hello, I'm just familiarizing myself with Albatross. I've
Sheila> finished reading a large part of the documentation, and have
Sheila> tried out some of the examples.

Sheila> I have a question about the POPview1 example from the
Sheila> documentation.

Sheila> I don't completely get why it is using an image tag for the
Sheila> link to the "details" page for viewing individual
Sheila> messages...but getting past that...

Since the session is purely client side we need the client to send the
session when a message is selected.  The cheap trick used in the
example is to place each message in the list in a form.  When the
image input is clicked the __albstate__ will be sent as part of the
browser submission.

This could have been done with some Javascript:

     <al-form method="post" name="item">
      <a href="#" onClick="item.submit();">View</a>
      <al-input type="hidden" name="msgnum" expr="m.value().msgnum">
     </al-form>

Sheila> I am able to view the individual messages just fine with IE
Sheila> 5.0.

Sheila> In Mozilla 1.3 it does't work at all. Clicking on the image
Sheila> link to view the individual messages just returns me to the
Sheila> list page, repeatedly.

Odd.  The only time I have ever seen this is when I fiddled around
with the application and started using an Application/Execution
context class that assumed the session was somewhere else.

Sheila> Has anyone else encountered this behavior? It concerns me, as
Sheila> I will soon be working on a project which requires session
Sheila> management and login authentication, and cross-browser
Sheila> compatibility is very important. So, I'd like to understand
Sheila> what is going on here...

Make sure that you place important values in underscore prefixed
variables.  The request merging will refuse to place browser supplied
values prefixed by '_' in ctx.locals.

- Dave

-- 
http://www.object-craft.com.au




More information about the Albatross-users mailing list