Anchor, url and a callback...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Anchor, url and a callback...

cbeler
Hi

I have a link to an external page and I'd like to assign a variable when
the link is hitten.

What I did is:

html anchor
         callback: [waitFlag:= true];
         url: 'http://217.167.210.130/carto/sup_georef_enit.php?_k='
            , (html context request at: '_k') , '&_s='
            , (html context request at: '_s') , '&lang=2';
         with: 'Positionnez l''événement...'.


but it seems the callback is not done (or maybe #url: is transformed
into a callback ??)

Can you help me to make it work...

thx
Cédrick

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anchor, url and a callback...

cbeler
Forget it, just solved...

html anchor
         callback: [
                waitFlag:= true.
                self session redirectTo:
'http://217.167.210.130/carto/sup_georef_enit.php?_k='
            , (html context request at: '_k') , '&_s='
            , (html context request at: '_s') , '&lang=2'];
         with: 'Positionnez l''événement...'.

So I think url: was doing the callback... Can we know some combination
of selectors are not working ?


Cédrick



Cédrick Béler a écrit :

> Hi
>
> I have a link to an external page and I'd like to assign a variable
> when the link is hitten.
>
> What I did is:
>
> html anchor
>         callback: [waitFlag:= true];
>         url: 'http://217.167.210.130/carto/sup_georef_enit.php?_k='
>            , (html context request at: '_k') , '&_s='
>            , (html context request at: '_s') , '&lang=2';
>         with: 'Positionnez l''événement...'.
>
>
> but it seems the callback is not done (or maybe #url: is transformed
> into a callback ??)
>
> Can you help me to make it work...
>
> thx
> Cédrick
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anchor, url and a callback...

Philippe Marschall
You can not combine url and callback because callbacks sets the url.
That's how the callback mechanism works in Seaside.

Philippe

2006/8/22, Cédrick Béler <[hidden email]>:

> Forget it, just solved...
>
> html anchor
>          callback: [
>                 waitFlag:= true.
>                 self session redirectTo:
> 'http://217.167.210.130/carto/sup_georef_enit.php?_k='
>             , (html context request at: '_k') , '&_s='
>             , (html context request at: '_s') , '&lang=2'];
>          with: 'Positionnez l''événement...'.
>
> So I think url: was doing the callback... Can we know some combination
> of selectors are not working ?
>
>
> Cédrick
>
>
>
> Cédrick Béler a écrit :
> > Hi
> >
> > I have a link to an external page and I'd like to assign a variable
> > when the link is hitten.
> >
> > What I did is:
> >
> > html anchor
> >         callback: [waitFlag:= true];
> >         url: 'http://217.167.210.130/carto/sup_georef_enit.php?_k='
> >            , (html context request at: '_k') , '&_s='
> >            , (html context request at: '_s') , '&lang=2';
> >         with: 'Positionnez l''événement...'.
> >
> >
> > but it seems the callback is not done (or maybe #url: is transformed
> > into a callback ??)
> >
> > Can you help me to make it work...
> >
> > thx
> > Cédrick
> >
> > _______________________________________________
> > Seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside