Hi Michael
I am trying to figure out how the iframe URL is created - when I have the iframe URL added to my page URL).
The URL would usually look like this:
https://www.legstadaleit.com/tng/familygroup.php?familyID=F1013&tree=Tree2
Once it is in the iframe the URL looks like this:
https://www.legstadaleit.com/test/?iframe=www.legstadaleit.com/tng/familygroup.php%3FfamilyID%3DF1013%26tree%3DTree2
So the ? is replaced by %3F, and = is replaced by %3D, right?
Is it possible to control this setup?
Best regards
Rakel
Hi,
What have you configured?
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/add-iframe-url-to-parent
Because this is how it needs to look like! iframe is the parameter then the = and then the url of the iframe url encoded! If this is not done like this you would have a invalid url. e.g. if %26 would be & then the browser would treat this as a new parameter and the url would be different.
If you don't like such a long url please check the other options of the demo. you can use a hash as well. Then the url looks like
https://www.legstadaleit.com/test/?iframe=2D3
Hello again
My setting for this is:
add_iframe_url_as_param="same"
So my shortcode looks like this:
[ advanced_iframe use_shortcode_attributes_only="true" src="https://www.legstadaleit.com/tng/searchform.php" width="100%" height="600" add_iframe_url_as_param="same" onload_resize="true"]
The reason I am asking this is because the program that is displayed in the iframe (a genealogy webbased program) can create a sitemap for me. BUT the URL is not correct, so I have to do "search and replace" to fix the URLs that are in the sitemap.
Here is an example of how the URLs in the sitemap can look:
https://www.legstadaleit.com/database/showmedia.php?mediaID=4086 https://www.legstadaleit.com/database/andlitsmyndir/1894-06-03-JonValdimarsson.jpg https://www.legstadaleit.com/database/familygroup.php?familyID=F1013&tree=Tree2 https://www.legstadaleit.com/database/getperson.php?personID=I14686&tree=Tree2
And I have to make them look something like this:
The first part of the URL is easy to fix, but the final part with "=" and "?" is a little bit more tricky - but it is do-able. I'm just wondering if the URL encoding of the advanced iframe can be controlled so I don't have to do so much editing to get the correct URL in the sitemap.
Best regards
Rakel
Hi,
Please read my last post again. The url is 100% o.k. If it would NOT be encoded it would look like:
And this url would be completely wrong! You would have 2 ? = invalid!
and &tree=Tree2 would not belong to iframe= anymore! So the url in the iframe would be different.
Best regards, Michael
Ok I see what you mean now. THanks for your help!