/    Sign up×
Community /Pin to ProfileBookmark

Frame Link problem – please help :(

I’m having to redesign my website to accomodate varying screen resolutions.

As such, I’ve changed to a Three Frame Layout that is a stencil from MS Frontpage. The Stencil is the header contents.

The three frames are named: contents, header and main.

My menu is a series of combo boxes that when clicked will load a new page.

My old webpage was a document with an iframe called main. When the combo box was clicked the new page loaded into the frame… worked fine.

With my new site however I cannot get the new page to load in main. The code that worked before is below:


——————

<select name=select4 style=”background-color:#000000;font size:10; font-family:Tahoma;color:white;width=120″

onChange=’if (this.options[this.selectedIndex].value!=””) {document.main.location.href=this.options[this.selectedIndex].value}else{this.selectedIndex=0};’>

<option selected>MAIN</option>
<option>———-</option>
<option value=”http://www.domain.com/Main2.htm” target=”main”>Main Page</option>

<option value=”http://www.domain.com/News.htm” target=”main”>News</option>

<option value=”http://www.domain.com/Products/product_list.php” target=”main”>Current Products</option>

<option value=”http://www.domain.com/Site_Registration/login_entry.php” target=”main”>Member Login</option>

</select>


————————

I know the problem is selecting the right document but don’t know the correct syntax/code.

Any help would be very appreciated at this time as I’ve spent well over four hours trying to figure it out.

Thanks guys n girls.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJul 12.2003 — to target a frame in a frameset you'd need something like this

parent.frameName.location.href="url"
Copy linkTweet thisAlerts:
@lucauwfauthorJul 12.2003 — Thanks matey,

That was perfect.
×

Success!

Help @lucauwf spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...