actions and path

classic Classic list List threaded Threaded
5 messages Options
sebastianconcept sebastianconcept
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

actions and path

This post has NOT been accepted by the mailing list yet.
Hi guys,

I want to play a little bit with Iliad and I need to do an action based on a path, possible?

Let's say I want the counter to increase when the request has a path like:
blahblah/counter/add

and decrease
blahblah/counter/subtract

possible? yes? how?

:)

seb

o/
ZuLuuuuuu ZuLuuuuuu
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: actions and path

If you just want a Smalltalk code to be executed and the current page is not changed when a new url is entered then I dont know if it is possible and I guess it should be done using the normal way like in the counter example.

But if you dont mind page reloading then just create a controller named "add" in your application class like this:

add [
    <category: 'controllers'>

    counter := counter + 1.

    ^pageContents
]
Canol Gökel
sebastianconcept sebastianconcept
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: actions and path

This post has NOT been accepted by the mailing list yet.
Iliad simplicity is #win




On Sat, Oct 1, 2011 at 6:43 AM, ZuLuuuuuu [via Smalltalk] <[hidden email]> wrote:
If you just want a Smalltalk code to be executed and the current page is not changed when a new url is entered then I dont know if it is possible and I guess it should be done using the normal way like in the counter example.

But if you dont mind page reloading then just create a controller named "add" in your application class like this:

add [
    <category: 'controllers'>

    counter := counter + 1.

    ^pageContents
]
Canol Gökel



If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/actions-and-path-tp3859596p3862442.html
To start a new topic under Iliad, email [hidden email]
To unsubscribe from Iliad, click here.

ZuLuuuuuu ZuLuuuuuu
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: actions and path

That's right. By the way, I guess you are not registered to Iliad Google group, that's why only forum.world.st users can see your messages. If you register to Google group your messages will be seen by everybody:

http://groups.google.com/group/iliad



sebastianconcept wrote
Iliad simplicity is #win




On Sat, Oct 1, 2011 at 6:43 AM, ZuLuuuuuu [via Smalltalk] <
[hidden email]> wrote:

> If you just want a Smalltalk code to be executed and the current page is
> not changed when a new url is entered then I dont know if it is possible and
> I guess it should be done using the normal way like in the counter example.
>
> But if you dont mind page reloading then just create a controller named
> "add" in your application class like this:
>
> add [
>     <category: 'controllers'>
>
>     counter := counter + 1.
>
>     ^pageContents
> ]
> Canol Gökel
>
Canol Gökel
sebastianconcept sebastianconcept
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: actions and path

I've subscribed now :)

double checking..

yeah, the google groups UI offers the unsuscribe





On Mon, Oct 3, 2011 at 3:12 AM, ZuLuuuuuu [via Smalltalk] <[hidden email]> wrote:
That's right. By the way, I guess you are not registered to Iliad Google group, that's why only forum.world.st users can see your messages. If you register to Google group your messages will be seen by everybody:

http://groups.google.com/group/iliad



sebastianconcept wrote:
Iliad simplicity is #win




On Sat, Oct 1, 2011 at 6:43 AM, ZuLuuuuuu [via Smalltalk] <
[hidden email]> wrote:

> If you just want a Smalltalk code to be executed and the current page is
> not changed when a new url is entered then I dont know if it is possible and
> I guess it should be done using the normal way like in the counter example.
>
> But if you dont mind page reloading then just create a controller named
> "add" in your application class like this:
>
> add [
>     <category: 'controllers'>
>
>     counter := counter + 1.
>
>     ^pageContents
> ]
> Canol Gökel
>
Canol Gökel


If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/actions-and-path-tp3859596p3866668.html
To start a new topic under Iliad, email [hidden email]
To unsubscribe from Iliad, click here.

Loading...