forty4org Posted May 7, 2015 Report Share Posted May 7, 2015 Thanks in advance. This is a school/classroom application. I have a search result set for Students. On the result table, I have an HTML block with the following: <a href="https://b6.caspio.com/dp.asp?AppKey=7e4d30007043f4ce0dc44c099960&Student_ID=[@field:Students_Student_ID]">Edit in Tab</a> I then have a HTML Datapage. This datapage holds 3 tabs, including a separate Student EDIT datapage inside Tab 1. How do I get the Student ID passed from the search result above into the ID parameter needed inside Tab 1 for the student edit? Thx again, Matt Quote Link to comment Share on other sites More sharing options...
0 Aurora Posted March 23, 2017 Report Share Posted March 23, 2017 Hello! There are few ways to receive parameters : 1) On load 2) Filter by pre-defined criteria 3) Directly to Iframe Please take a look at this posts: http://howto.caspio.com/parameters/receiving-parameters/ Quote Link to comment Share on other sites More sharing options...
0 Flowers4Algernon Posted April 29, 2022 Report Share Posted April 29, 2022 Hello, just wanted to share this similar forum post: Quote Link to comment Share on other sites More sharing options...
0 Kurumi Posted April 29, 2022 Report Share Posted April 29, 2022 Hi - To pass URL query string parameter to an iFrame, you may do the following: 1. Add an id attribute on your iFrame, like add id="myiframe". The deployment code should be like this: <iframe name="Some iFrame" title="Some iFrame" src="https://c1234567.caspio.com/dp/xxxxxxxxxxxxxxxxxxx" id="myiframe" >Sorry, but your browser does not support frames. Please, contact us.</iframe> 2. Once the id is added, copy and paste the code below in your webpage: <script language="javascript"> var iframe = document.getElementById('myiframe'); iframe.src = iframe.src + window.location.search; </script> You can change the name of the iframe id depending on your preference. What that code/script does is get the parameter query string of the current page and add the same query string to the iframe src. Hope it helps! Quote Link to comment Share on other sites More sharing options...
Question
forty4org
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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.