Re: Appending hash for page anchor to next url
Re: Appending hash for page anchor to next url
- Subject: Re: Appending hash for page anchor to next url
- From: Johann Werner <email@hidden>
- Date: Fri, 07 Dec 2012 15:34:53 +0100
You could add the logic from WOHyperlink to ERXPatcher.DynamicElementsPatches.SubmitButton and make a pull request ;-)
jw
Am 07.12.2012 um 15:11 schrieb Daniele Corti <email@hidden>:
> Hi Johann,
> for WOHyperlink, it's ok, but I have also some WOSubmitButtons that i would like to give an anchor.
>
> I've seen submit buttons do not have the fragmentIdentifier binding. Is there a way to do this?
>
>
>
>
> 2012/12/7 Johann Werner <email@hidden>
> Hi Daniele,
>
> WOHyperlink has the binding fragmentIdentifier for this.
>
> jw
>
>
> Am 07.12.2012 um 12:59 schrieb Daniele Corti <email@hidden>:
>
> > Hi list,
> >
> > as I've written in subject, is there a way to append a string to the next open url, in order to scroll to an anchor in the next page?
> >
> > I mean:
> >
> > I click on a WOHyperLink:
> >
> > <wo:link action = "$myAction">Click Me!</wo:link>
> >
> > And in $myAction binding:
> >
> > public WOActionResult myAction(){
> >
> > //Do something
> >
> > /**
> > Here goes the code to append an hash
> > */
> >
> > return null;
> > }
> >
> > My idea is to append the hash and the ID of the element I want to display. I know I can do this through Javascript, generating a JS code for the right ancor, but I want to know if there is a way to do it server side.
> >
> > Bye & thanks!
> > --
> > Daniele Corti
> > --
> > I DON'T DoubleClick
>
>
>
>
> --
> Daniele Corti
> --
> I DON'T DoubleClick
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden