codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  HELP! 3-frame dilemma for troubleshooter  sonpudong at 11:54 on Wednesday, May 24, 2006
 

Hello guys

im now in a little rut and i just cant figure out what to do...
i am doing a troubleshooter, that now has 3 frames...
with the splits done like this, top and bottom...
with the bottom part split into 2 frames...left and right

the top frame and right most frame is just a common page...the tool depends on what happens on the left frame...if an option is clicked on the left frame, the left frame and right frame changes to the next troubleshooting step...

everything was working fine until we decided to add a feature that will copy the text the button has, as a log (for we need to log all steps taken during a call)... i had it working also for the left frame...

but we need it to show up on another frame and on a step by step summary of all the steps taken...so instead of splitting up the bottom frame into 2 we decided to split it into three

so how can i do this:
...if an option is clicked on the left frame, the left frame and middle frame changes to the next troubleshooting step... then the log of the step taken will be logged into the right frame on a text area with a button that will copy all text put into it into the clipboard

...here is a sample code of the left frame...

<html>
<head>
<script language="JavaScript">
function TargetFrames(url1,url2)
{
parent.leftframe.location.href= url1;
parent.rightframe.location.href= url2;
<!--- HOW DO YOU CALL OUT THE MIDDLE FRAME?--->
}
</script>

<--- THIS IS FOR THE BUTTON TEXT COPY--->
<script language="JavaScript" type="text/javascript">
function Add(obj,tar)
{
var tar=document.getElementById(tar);
var txt=obj.value+',';
if (tar.innerHTML.match(txt))
{
tar.innerHTML=tar.innerHTML.replace(txt,'');
}
else
{
tar.innerHTML+=txt;
}
}
//-->
</script>
</head>

<body>

Troubleshooting step:

<-- THIS IS FOR THE BUTTON OPTION, THE RIGHT FRAME WILL BE MOVED INTO THE MIDDLE FRAME -->
<form method="POST" action="javascript:TargetFrames('<LEFT FRAME NEXT STEP>','<RIGHT FRAME NEXT STEP>')">
<input type="submit" name="" value="CHOICE 1" onclick="Add(this,'Summary');">
</form>
<form method="POST" action="javascript:TargetFrames('<LEFT FRAME NEXT STEP>','<RIGHT FRAME NEXT STEP>')">
<input type="submit" name="" value="CHOICE 2" onclick="Add(this,'Summary');">
</form>

<!-- THIS IS WHERE THE COPIED BUTTON TEXT GOES, SHOULD BE GOING INTO THE RIGHT FRAME TXT BOX WITH THE COPY TO CLIPBOARD-->
<div id="Summary"></div>

</body>
</html>








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  session time out
•  Scroll To Not Fully working in IE...
•  Re: document.write in IE and Mozilla/Netscape.
•  Re: info out of an video example
•  Re: Help: Trouble with z-Index and SELECT lists
•  perl siganl handling in Term::Readline
•  position of a page inside a pop-up in javascript
•  Ugent Help needed
•  java help questions


Recent Articles
Javascript OnMouseDown
Pointer types and Arrays
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts


© Copyright codetoad.com 2001-2006