Yes, that will work nicely for Mr Rawlins.

 

Loving the choice of anchor name Dan (someone pays attention to Twitter
shenanigans) .. ;)

 

Happy New Year to you and all other Modelglue'ers by the way.

 

Looking forward to an exciting year of MG development.

 

---

James  Allen

E: [email protected]

Blog: http://jamesallen.name

Twitter: @CFJamesAllen (Coldfusion / Web development)

Twitter: @jamesallenuk (General)

Twitter: @JamesAllenVoice (Voiceover)

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Dan Wilson
Sent: 04 January 2011 15:07
To: [email protected]
Subject: Re: [Model-Glue] Jump to anchor tag after redirect

 

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
<http://localhost/mgtest/index.cfm?event=Orange&anchor=#fruity>
&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]
<mailto: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

-- 
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