CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Registration Profile / iFrame - parent / Redirect URL
Pages: [1]

Author Topic: Registration Profile / iFrame - parent / Redirect URL  (Read 2589 times)

jmturner

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
Registration Profile / iFrame - parent / Redirect URL
July 27, 2010, 11:22:09 am
Due to circumstances beyond my control, I have the need to embed a User Registration Profile within an iFrame.  The regestration process is working just fine, but the problem lies in that after the registration, the specified redirect URL is opened within the iFrame. 

I really need to figure out where in the code I can intercept the call to refresh to the specified redirect URL and add some instructions to open that URL in the iFrame's parent window. 

I've been able to find out where the custom URLs get bundled into an array, but I can't figure out what happens after that so I can make my adjustments.

I'm running CiviCRM 3.0.2/Druapl 6.x.

Any helps is, as always, greatly appreciated.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Registration Profile / iFrame - parent / Redirect URL
July 27, 2010, 11:25:21 am
Not 100% clear what you're doing but you could put a check (using JS) in the redirect URL to see if it's in a frame. If so, then have it "break out" of that frame.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

jmturner

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
Re: Registration Profile / iFrame - parent / Redirect URL
July 27, 2010, 11:49:54 am
Well I know for certain that it is in an iFrame, and I know I need the Profile's Redirect URL to do just that, "break out" of the iFrame.

When I attempted to use some Javascript in the Redirect URL field (javascript:top.location.href='http://www.someplace.come/somedir/index.php') CiviCRM didn't pass the completed registration to that URL, it just stopped and presented itself with a white screen within the iFrame. 

When I attempted to view the source of the iFrame content, it had to reload, then presented me with an error stating that no gid was provided in the url. So that's when I began the process of finding out what happens to the specified Redirect URL value within the CiviCRM code.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Registration Profile / iFrame - parent / Redirect URL
July 27, 2010, 11:55:30 am
I was suggesting that http://www.someplace.come/somedir/BREAKOUTPAGE.php have:

<script>
javascript:top.location.href='http://www.someplace.come/somedir/index.php';
</script>

Something like that. Then your redirect is to somedir/BREAKOUTPAGE.php of course.

You get the idea?

CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

jmturner

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
Re: Registration Profile / iFrame - parent / Redirect URL
July 28, 2010, 05:30:57 am
That's perfect.  As always I seem inclined to do things the hard way first.  Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Registration Profile / iFrame - parent / Redirect URL

This forum was archived on 2017-11-26.