Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame will not Refresh 1

Status
Not open for further replies.

LyndonOHRC

Programmer
Sep 8, 2005
603
US
I'm trying to get a frame to reload from the original page. The left frame reloads fine but the right bottom will not???
Where I commented out I even tried setting the location.href to the original file name and nothing happens either way; no error or refresh.

Code:
<script language="JavaScript">
<!---  
 //var ReloadFile='right_bottom_frame.cfm';
 parent.leftFrame.location.reload(); 
 //parent.rightBottomFrame.location.href = ReloadFile; 
 parent.rightBottomFrame.location.reload(); 
--->
</script>

During the use of the page the bottom right frame gets loaded with a PDF document with the following code:

Code:
<script language="JavaScript">
<!-- 
function show_pdf_page(doc2show,DisplayName) {
parent.rightBottomFrame.location.href = doc2show+'#page=1';
    }
-->
</script>

<a ref="javascript:show_pdf_page'#Session.TargetFile#','#Session.DisplayFile#')">
#FileList.name#<a>

Maybe the PDF is the trouble? I'm stumped.

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
OK, I’m convinced about my html discipline. I’m going to close this thread and get all of my code validated and, hopefully, eliminate DOM issues related to bad design.

I’ve been fortunate that all of my applications are only accessed on corporate clients with known configurations. If an application worked in my browser it works for every potential user. I’ve never had to produce anything for the general WWW. I’m just an old XBase programmer that choose ColdFusion to replace millions of lines of the legacy code and bring our agency into the GUI world. Now, I’m trying to extend ColdFusion with XHTML and I’m so far out of standard that debugging is becoming impossible.

Now I find myself with tens of thousands of lines of code and a lazy approach to defining the DOM. I’m going to have to correct both my style and all the existing code.

I’ll return with more questions, I’m sure, after this little foray. I hope my describing my situation will be of help to others.

Thanks for all the advice.

If anyone with Coldfusion experience could share a starting page template that works for them I’d be glad to see it.


Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top