1

We have a page with a form in OpenACS, and we'd like to redirect users to an external site/URL containing a totally different page/form.

How is it best done (on either the OpenACS-side or AOLServer-side)?

Charles
  • 50,943
  • 13
  • 104
  • 142
Nikki Erwin Ramirez
  • 9,676
  • 6
  • 30
  • 32

3 Answers3

1

With OpenACS, here are some suggestions, starting with util_httppost:

http://openacs.org/forums/message-view?message_id=17963

I don't have privs to post more than one hyperlink, but inside this one there are links to other posts that discuss ns_returnredirect or just Javascript on the front end as a possible solution.

Tom H
  • 83
  • 6
  • I'm afraid the requirement is much simpler than that -- it's really just a mere URL redirection. Preferably invisible to the user. – Nikki Erwin Ramirez Dec 15 '09 at 08:41
  • 1
    then maybe Javascript on the page is more what you need? That way you won't have to hack with either AOLserver or OpenACS... – Tom H Dec 15 '09 at 18:08
  • I can no longer verify if any of the OpenACS answers work. I vaguely remember that my colleague who used to work on this chose the JavaScript redirect solution, so I'm accepting this answer. – Nikki Erwin Ramirez Apr 04 '12 at 07:08
1

I'd say go with ad_returnredirect http://openacs.org/api-doc/proc-view?proc=ad_returnredirect It's recommended over ns_returnredirect for the reasons described on the API link.

TrojanName
  • 4,853
  • 5
  • 29
  • 41
1

This an example, I hope this will be usefull for you:

ad_form -name form1 -form {

    ....

} -after_submit {

      ad_returnredirect -allow_complete_url "http://www.google.com/"
}
JERC
  • 1,584
  • 3
  • 17
  • 38