Jump to content
  • 0
Sign in to follow this  
DataCobalt

Passing Multiple Parameters With Iframe Source

Question

Good afternoon all,

 

I am changing the source of an iframe based on a button press that runs a script.

 

The url of the page the button is on is as follows:

 

https://www.mysite.com/job-dash.html?Job_RID=1&Market_RID=1&Port_RID=1

 

 

And the javascript changes the iframe source to:

 

src=https://c0eru288.caspio.com/dp.asp?AppKey=[redacted]?Job_RID=[@Job_RID]&Market_RID=[@Market_RID]&Port_RID=[@Port_RID]

 

 

 

 

Now it is receiving the Job_RID no problem, but is unable to capture the Market or Port RID’s

 

 

Is there some trick I am missing in passing parameters from the URL into the iframe? The datapage itself is set to receive these parameters.

 

I have made the fields on the datapage visible to ensure that it wasn't the page (they work fine in previews) but I am encountering this issue in multiple places when it comes to multiple parameters and iframes.

 

Any and all help is much appreciated.

 

 

Thank you!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Feel free to comment if you have any more tips, but I finally found out right after posting this that iframes use "%" instead of "&" to separate multiple parameters.

 

Mind=Blown

 

Sorry to have taken up any front page space!

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...