[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

multiple choice display content in IFRAME

Posted on 2004-10-28
6
Medium Priority
?
235 Views
Last Modified: 2008-03-06
Hi there

I have 2 files here but would like to find a way of selecting from multiple menus the values and display in Iframe. This iframe should be local and not sever side.

Also update per menu not 1 that refeshes and resets other values of choice. Segmented in a way.

here are the files

main form

<html>
<head>
<title> No title</title>
<meta name="description" content="Blank document with no style.">
</head>
<body>

<table border="1" width="100%">
    <tr>
        <td width="562" height="312" rowspan="3"><p>&nbsp;<font face="Arial"><IFRAME SRC="refresh-frame.html" WIDTH="680" HEIGHT="500" scrolling="yes"></IFRAME></font></p>
        </td>
        <td width="88" height="83">
            <p>Content1</p>
        </td>
        <td width="83" height="83">
            <form name="form1">
                <p><select name="content1" size="6">
                <option value="info here">content1</option>
                <option value="even more info">content1b</option>
                <option value="tons of info">content1c</option>
                </select></p>
            </form>
            <p>select %TITLE%</p>
        </td>
        <td width="51" height="83">
            <form name="form4">
                <p><select name="template" size="1">
                <option value="template1.html">template1</option>
                <option value="template2.html">template2</option>
                </select></p>
            </form>
            <p>select str_replace</p>
            <p>template1</p>
            <p>template 2</p>
        </td>
    </tr>
    <tr>
        <td width="367" colspan="3">
            <form name="form5">
                <p>Content 2 &nbsp;<select name="content2" size="1">
                <option value="displayme">content2</option>
                <option value="display even more">content2b</option>
                <option value="display even more info">content2c</option>
                </select></p>
            </form>
            <p>str_replace %CONTENT% from template X</p>
        </td>
    </tr>
    <tr>
        <td width="88">
            <form name="form2">
                <p><input type="submit" name="create"></p>
            </form>
            <p>&nbsp;</p>
        </td>
        <td width="83">
            <p>&nbsp;</p>
        </td>
        <td width="51">
            <p>&nbsp;</p>
        </td>
    </tr>
</table>
<p>Display pull down menu content and read template %TAG% display in IFRAME
then on submit download iframe content as a file</p>
</body>
</html>

template file

<html>

<head>
<title>No title</title>
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p>%TITLE%</p>
<p>%CONTENT%</p>
<p>%INFO%</p>
</body>

</html>

So really all it is doing is search and replacing data via tags with a template then the values of the pull down menus fill in the gaps of the iframe
This question will be in multiple parts so it could be worth 2000 points to anyone.

thanks
0
Comment
Question by:playstat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 12441546
You cannot open local files using php. You have to use clientside scripting in order to do that. ActiveX is the only clientside way I know to achieve this.

Regards

-r-
0
 

Author Comment

by:playstat
ID: 12442923
can javascripting do it
0
 

Author Comment

by:playstat
ID: 12442940
how about a random folder server side once that is stored then hit the submit and downloads the output
0
 
LVL 49

Accepted Solution

by:
Roonaan earned 2000 total points
ID: 12449274
Using serverside languages you can do a lot. I think it could also provide with what you are searching for now.

Easier would be to have the templates stored in db, and provide users with a editor of some way, such that they don't have to work with ftp etc.

-r-
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question