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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting URL from a frame

Status
Not open for further replies.

Tim2525

Technical User
Feb 7, 2005
51
0
0
US
Hi All,

Trying to figure out how to get the url contents from another frame. The frames url changes evertime the user makes a selection from a series of drop down menus. This is what I have so far.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>

<SCRIPT language="JavaScript" src="thuleConfig.js"></SCRIPT>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<TITLE>thuleConfigurator.htm</TITLE>
</HEAD>
<FRAMESET ROWS="100%, 1%" frameborder=no width="100">
	<FRAME SRC="[URL unfurl="true"]http://milo.tpcomm.com/thule/fg_vehicle.asp"[/URL] name="config"></FRAME>
	<FRAME onload="urlChecker()">
	
</HTML>

JS code.
Code:
function urlChecker() {
	var cnt = 0;
	do {
		alert("HERE 1");
		var myhref = window.location.href;
		alert("myhref is ... " + myhref);
		alert("HERE 2");
		cnt = cnt + 1;		
	} while (cnt < 2);
}

My JS is reading thuleConfigurator.htm url. I ned it to read the frame "config" urll. How would I do this?

TIA,

T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top