• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Capture main window URL - not Modal frame URL

Capture main window URL - not Modal frame URL 12 years 1 week ago #22907

  • mo7
  • mo7's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hi,

I followed your tutorial for modal displays of forms, though what I wanted to do was replace the default K2 email link shown on an article with an RSForms email this page link (as I can choose the info, and pull off the emails/add captcha to the form).

I've successfully managed to get it working, though the whole point of the modal window is to email a link to the page, and using the URL/title capture tutorial, it only captures the URL/title of the form iframe window itself, not the parent page url/title.

Is this possible or do I have to revert to the default K2 email modal popup?
The administrator has disabled public write access.

Capture main window URL - not Modal frame URL 12 years 5 days ago #22970

  • mo7
  • mo7's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I've actually fixed this now.

For those who are interested in capturing the parent window's URL from a modal iframe window, use this code in your default value box:
//<code>
 
 $pageURL = $_SERVER['HTTP_REFERER'];
 return $pageURL;
 
//</code>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!