IOWA again

Hi,

Another IOWA issue but more likely, a "me" issue.

I have a header than contains the code:

    Logged in as: @user<br/>

I have a LeftNav panel that includes

    def foo_page
        '/foo' # mapfile.conf --> /foo: Run::Foo
    end

'foo' includes the LeftNav and the header. However, I am not sure of how
to pass @user via the LeftNav. If I change LeftNav to:

    def foo_page
        newPage = page_named("Run::Foo")
        newPage.user = @user
        yield newPage
    end

I get an error

  <a href="
  no block given
  (eval):39:in `credit_page'

Any ideas on how to pass the @user to the LeftNav?

BTW, @user is correctly defined and available LeftNav.

Many thanks,

···

--
-mark. (probertm @ acm dot org)

Yeah. You can see an example of this in the webrick demo. However, your
snippet of code up there is exactly what you want.

foo_page() should create the new page, assign @user to it, and then yield
it, exactly as you are doing.

The change you need to make is in your HTML:

Instead of this:

<a href="@foo_page">Goto foo</a>

you want this:

<a oid="foo_page">Goto Foo</a>

Make sense?

Kirk Haines

···

On Fri, 10 Sep 2004 06:55:04 +0900, Mark Probert wrote

I have a LeftNav panel that includes

    def foo_page
        '/foo' # mapfile.conf --> /foo: Run::Foo
    end

'foo' includes the LeftNav and the header. However, I am not sure
of how to pass @user via the LeftNav. If I change LeftNav to:

    def foo_page
        newPage = page_named("Run::Foo")
        newPage.user = @user
        yield newPage
    end

I get an error

  <a href="
  no block given
  (eval):39:in `credit_page'

Any ideas on how to pass the @user to the LeftNav?

Hi, Kirk.

···

"Kirk Haines" <khaines@enigo.com> wrote:

<a oid="foo_page">Goto Foo</a>

Make sense?

Got it. Thanks.

BTW, you mentioned once before but I can't find the reference.
awake() is triggered on page initialisation. What is triggered
each time the page is referenced?

--
-mark. (probertm @ acm dot org)

setup()

From http://enigo.com/projects/iowa/tutorial/remainder_toolbox.html, in the
Main.iwa section..

David
http://homepages.ihug.com.au/~naseby/

···

-----Original Message-----
From: Mark Probert [mailto:probertm@nospam-acm.org]

BTW, you mentioned once before but I can't find the reference.
awake() is triggered on page initialisation. What is triggered
each time the page is referenced?

That would be setup().

Thanks,

Kirk Haines

···

On Fri, 10 Sep 2004 08:55:03 +0900, Mark Probert wrote

Hi, Kirk.

"Kirk Haines" <khaines@enigo.com> wrote:
>
> <a oid="foo_page">Goto Foo</a>
>
> Make sense?
>
Got it. Thanks.

BTW, you mentioned once before but I can't find the reference.
awake() is triggered on page initialisation. What is triggered
each time the page is referenced?

Thanks, David.

I missed that paragraph ..

···

"David Naseby" <david.naseby@eonesolutions.com.au> wrote:

http://enigo.com/projects/iowa/tutorial/remainder_toolbox.html

--
-mark. (probertm @ acm dot org)