Jump to content
  • 0
Sign in to follow this  
ALittle

Receiving Parameters In I-Frame From Parent Page

Question

I am trying to filter datapages that are embedded within a page that I show within an iframe and I can not seem to get the parameters to pass into the I-Frame when the parent page is loaded. 

 

I have a "Project" report with custom link to details page. This link passes Project_ID fine to datapages actually embedded on the target page. What I want to do is embed other pages (hosted on same domain) via IFrame and have the results of datapages embedded on the page shown in iframe filtered by the Project_ID.

 

I want to use I frames to reduce load time, data usage and also have the ability to refresh specific datapages when editing data.

 

Again, the parent page that hosts the Iframe is receiving the parameter fine, i just can not get the DPs within the embedded page to see the passed parameter.

 

Much help in advance!

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hello,

 

Have you tried receiving the parameter into the iframe as well, similar to the following:

 

Assume that the parameter was a query string parameter and the URL is such: http://www.somesite.com/report.html?User_ID=5

 

In the iframe add the parameter similar to the red text:

 

<iframe name="Report" title="Report" src="https://cxxxxxx.caspio.com/dp.asp?AppKey=d667300025da4ecdbaf64b77ae7a&User_ID=[@User_ID]">Sorry, but your browser does not support frames.</iframe>

 

Let me know if this helps at all.

Share this post


Link to post
Share on other sites
  • 0
On 1/15/2016 at 0:23 PM, ALittle said:

This works for me when using the URL deploy method but if I want to embed a datapage on another page in my site, then embed that page in the iframe, it does not pass :/

Try this:
 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...