Link to home
Start Free TrialLog in
Avatar of Eddie Shipman
Eddie ShipmanFlag for United States of America

asked on

CFTree and Frames problem

I have a CFTree in a three frame page with the target set to the larger frame. When trying the links in the tree, in NS4.7, it will either open the link in a new window or it breaks out of the frames in the same window.

If I name the target "_parent" or "_main", it opens in the same window, anything else, it opens a new window.

It works fine in IE5.

{I don't have access to the code right now as I am in a FastTrack to ColdFusion class and not at work!}
Avatar of Nathan Stanford Sr
Nathan Stanford Sr
Flag of United States of America image

When you can post the code so we can work on it.

I wish I could have taken a CLASS on ColdFusion......  :(

Nathan Stanford
Mr. ColdFusion
==========================
Check out my e-ZINE
ColdFusion Tips Plus
http://www.nsnd.com/cftips
or send a blank email to
subscribe-cftips@nsnd.com
Avatar of Eddie Shipman

ASKER

I'm trying to get a co-worker to send it to my web-based mail account so I
can post it. Maybe later today...
ASKER CERTIFIED SOLUTION
Avatar of Nathan Stanford Sr
Nathan Stanford Sr
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Where does the new frame come in???
load each of these files and test it out. If you can't I will do it on my server.

when they select the final item and click on submit.  then it goes over to the new frame.

However I think I could make it where when you select it it does the submit.
I was unable to get the frame code sent
to me but here is the tree code:
The file CFFAQ_Template is the file that
has the frames in in similar to your frames page. The body frame is called _MAIN.

<html>
<head>
      <title>eMDs FAQ</title>
</head>
  <body>  
    <CFFORM ACTION="CFFAQ_Template.CFM" METHOD="POST" NAME="FAQs" TARGET="_Main">
      <CFTREE NAME="FAQTREE" HIGHLIGHTHREF="YES" HEIGHT="585" WIDTH="275" HSCROLL="NO" VSCROLL="NO">
        <CFTREEITEM VALUE="eMDs FAQ" IMG="FOLDER" EXPAND="YES" TARGET="_Main">
        <CFTREEITEM VALUE="Sales" PARENT="eMDs FAQ" HREF="sales.htm" TARGET="_Main">
          <CFTREEITEM VALUE="Software" PARENT="Sales" IMG="DOCUMENT" HREF="salessoftware.htm" TARGET="_Main">
          <CFTREEITEM VALUE="Hardware" PARENT="Sales" IMG="DOCUMENT" HREF="saleshardware.htm" TARGET="_Main">
        <CFTREEITEM VALUE="Technical" PARENT="eMDs FAQ" HREF="technical.htm" TARGET="_Main">
          <CFTREEITEM VALUE="Network" PARENT="Technical" IMG="DOCUMENT" HREF="technicalnetwork.htm" TARGET="_Main">
          <CFTREEITEM VALUE="Hardware" PARENT="Technical" IMG="FOLDER" HREF="technicalhardware.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Specifications" PARENT="Hardware" IMG="DOCUMENT" HREF="technicalhardwarespecs.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Installation" PARENT="Hardware" IMG="DOCUMENT" HREF="technicalhardwareinstall.htm" TARGET="_Main">
        <CFTREEITEM VALUE="Implementation" PARENT="eMDs FAQ" IMG="FOLDER" HREF="implementation.htm" TARGET="_Main">
          <CFTREEITEM VALUE="Training" PARENT="Implementation" IMG="DOCUMENT" HREF="implementationtrain.htm" TARGET="_Main">
          <CFTREEITEM VALUE="Support" PARENT="Implementation" IMG="DOCUMENT" HREF="implementationsupport.htm" TARGET="_Main">
        <CFTREEITEM VALUE="Applications" PARENT="eMDs FAQ" IMG="FOLDER" TARGET="_Main">
          <CFTREEITEM VALUE="topsChart" PARENT="Applications" IMG="FOLDER" HREF="applicationChartBeg.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Beginning With topsChart" PARENT="topsChart" IMG="FOLDER" HREF="applicationChartBeg.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Entering New Patients" PARENT="Beginning With topsChart" IMG="DOCUMENT" HREF="applicationChartEnter.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Opening Charts & Notes" PARENT="Beginning With topsChart" IMG="DOCUMENT" HREF="applicationChartOpen.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Messages" PARENT="Beginning With topsChart" IMG="DOCUMENT" HREF="applicationChartMessages.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Creating SOAP Notes" PARENT="topsChart" IMG="FOLDER" TARGET="_Main">
              <CFTREEITEM VALUE="General Template Information" PARENT="Creating SOAP Notes" IMG="DOCUMENT" HREF="applicationChartGenTemplate.htm" TARGET="_Main">
              <CFTREEITEM VALUE="Subjective" PARENT="Creating SOAP Notes" IMG="DOCUMENT" HREF="applicationChartSOAP-S.htm" TARGET="_Main">
              <CFTREEITEM VALUE="Objective" PARENT="Creating SOAP Notes" IMG="DOCUMENT" HREF="applicationChartSOAP-O.htm" TARGET="_Main">
              <CFTREEITEM VALUE="Assessment" PARENT="Creating SOAP Notes" IMG="DOCUMENT" HREF="applicationChartSOAP-A.htm" TARGET="_Main">
              <CFTREEITEM VALUE="Plan" PARENT="Creating SOAP Notes" IMG="DOCUMENT" HREF="applicationChartSOAP-P.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Using ICD-9 Search" PARENT="topsChart" IMG="DOCUMENT" HREF="applicationChartICD-9.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Writing Prescriptions" PARENT="topsChart" IMG="DOCUMENT" HREF="applicationChartRx.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Health Summary" PARENT="topsChart" IMG="DOCUMENT" HREF="applicationChartHealth.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Chart View Functions" PARENT="topsChart" IMG="DOCUMENT" HREF="applicationChartView.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Installation" PARENT="topsChart" IMG="DOCUMENT" HREF="applicationChartInstallation.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Miscellaneous" PARENT="topsChart" IMG="DOCUMENT" HREF="applicationChartMisc.htm" TARGET="_Main">
          <CFTREEITEM VALUE="topsBill" PARENT="Applications" IMG="FOLDER" TARGET="_Main">
            <CFTREEITEM VALUE="Installation" PARENT="topsBill" IMG="DOCUMENT" HREF="applicationBillInstall.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Demographics" PARENT="topsBill" IMG="DOCUMENT" HREF="applicationBillDemographics.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Posting" PARENT="topsBill" IMG="DOCUMENT" HREF="applicationBillPost.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Claims" PARENT="topsBill" IMG="DOCUMENT" HREF="applicationBillClaim.htm" TARGET="_Main">
            <CFTREEITEM VALUE="Reports" PARENT="topsBill" IMG="DOCUMENT" HREF="applicationBillReport.htm" TARGET="_Main">
<!---            
            <CFTREEITEM VALUE="Reference" PARENT="topsBill" IMG="DOCUMENT" HREF="applicationChartMisc.htm">
            <CFTREEITEM VALUE="Set Up" PARENT="topsBill" IMG="DOCUMENT" HREF="applicationChartMisc.htm">
            <CFTREEITEM VALUE="Miscellaneous" PARENT="topsBill" IMG="DOCUMENT" HREF="applicationChartMisc.htm">
           
 --->          <CFTREEITEM VALUE="topsSchedule" PARENT="Applications" IMG="DOCUMENT" HREF="applicationSchedule.htm" TARGET="_Main">
          <CFTREEITEM VALUE="topsSearch ICD-9" PARENT="Applications" IMG="DOCUMENT" HREF="applicationSearch.htm" TARGET="_Main">
      </CFTREE>
    </CFFORM>
  </body>
</html>
TARGET="BODY"
What is the NAME of the Frame you are wanting to replace OR are you wanting to replace the Whole Page?
I want the links in the tree to display n the _MAIN frame. But, like I said, in
NS it either breaks out of the frame and displays in the entire window or opens a new window depending upon the target.

I tried the source you presented with my CFTree.cfm as the src for the second frame and the document is coming up EMPTY! No frames, nothing!!!



If the name of the FRAME is MAIN then you need to try target="MAIN"

I'm not sure if MAIN is a reserved word or not but if that does not work try...

Changing the Name of the Frame to
MAIN1

then

target="MAIN1"


NO '_' in front of it.
Oh yes by the way it is CASE SENSITIVE as well.

I have tested this again and it works...

I built another frame unit with the frames wizard and it worked in NS and IE.

The code looks EXACTLY the same as my other code, word for word, exact punctuation too.

Don't know why it wouldn't work but it does now no matter what I call the main frame.

Thanks...