You can do this by adding a variable into the event, then using the append
attribute of the result. This will stick the value of the event variable in
the URL.

Suppose you have an anchor named fruity. You want to add a result that
redirects and adds the named anchor reference to the URL. Here's the
important parts of the code:


LINK: http://localhost/mgtest/index.cfm?event=Orange&anchor=#fruity


RESULT XML:
<result do="Fruitlicious" append="anchor" redirect="true" />



That'll work for you.



DW



















On Tue, Jan 4, 2011 at 9:48 AM, Sir Rawlins <
[email protected]> wrote:

> Hello Guys,
>
> I'm used to using HTML links to jump to anchor tags like this:
>
> <a href="#codeword">Link to Jump</a>
>
> <div id="codeword">Some Content</div>
>
> However, I'm wondering if there is a way of doing this in addition to
> a model glue event redirect. So for instance, once a user has
> submitted a form, the controller processes it and the user is then
> redirected to another event, perhaps to view the content they just
> submitted, the view loads with a given #anchor_tag_id appended to the
> url so that the browser jumps down to that given content.
>
> Is this something anyone has done? I'm sure it can be achieved using
> some jQuery magic but wasn't sure if there was something native in the
> framework that'd make it easier.
>
> Thanks guys,
>
> Robert
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en




-- 
Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to