How does the smarty template assign values to the <iframe> embedded part of html?
Source: Internet
Author: User
How does the smarty template assign values to the & lt; iframe & gt; embedded part of html? For example, set the php variable $ example
$ Smarty-> assign ('example ', $ example );
$ Smarty-> display('index.html ');
$Examplecan be passed to the index.html page and displayed, but How can I obtain this variable in the right sidebar of an embedded webpage? <Br/> Please contact smarty for advice <p> </p> <br/> reply to the discussion (solution) <p class = "sougouAnswer"> besides writing to iframe using js, iframe content comes from an independent url </p> <p class = "sougouAnswer"> You are inside the nested iframe <{$ example}> <br/> </p> <p class = "sougouAnswer"> <iframe> is another ?? Face, in iframe? Face? You can. </P> <p class = "sougouAnswer"> <p class = "yy"> You are in the nested iframe <{$ example}> </p> <br/> can I write it directly? After the page is opened, <{$ example}> </p> <p class = "sougouAnswer"> <p class = "yy"> <iframe> is another?? Face, in iframe? Face? You can. </P> <br/> However, after the page is opened, the <{$ example}> such code cannot output the expected value </p> <p class = "sougouAnswer "> <p class =" yy "> besides using js to write to iframe, iframe content comes from an independent url </p> <br/> So what should I do? </P> <p class = "sougouAnswer"> How do you write an independent page? </P> <p class = "sougouAnswer"> in my opinion, let alone Smarty and talk about your business needs first. <Br/> Why is this variable obtained? When will this variable be obtained? <Br/> variables can be passed through the embedded <iframe> url parameters.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service