The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Problem with IFrames loading via drop down menu
sp4585
post Sep 6 2007, 12:40 PM
Post #1





Group: Members
Posts: 4
Joined: 29-August 07
Member No.: 3,659



I have a website constructed with tables and server side includes...

Here's the snippet in question:

CODE

<center>
    <img src="images/recipesbanner.jpg" />
</center>
<p>
<script language="JavaScript">

var theTarget = "_recipes";

function goThere(){
if(!document.theForm.theMenu.selectedIndex==""){
window.open(document.theForm.theMenu.options[document.theForm.theMenu.selectedIndex].value,theTarget,"");}}

</script>


<form name="theForm">
<select name="theMenu" size=1 onChange="goThere()">
  <option selected value="">2007 Recipes
  <option value="recipes_september07.html">September
  <option value="recipes_october07.html">October
  <option value="recipes_november07.html">November
  <option value="recipes_december07.html">December
</select>
</form>
</p>

<p>
<iframe id="_recipes"
src ="recipes_september07.html"
width="100%" height="350">
</iframe>
</p>


This works well when in preview mode in GoLive, but on the live site, it seems to be attempting to draw up a pop-up AND the content in the iFrame is drawing as File Not Found.

Any and all help is appreciated! Thanks!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 6 2007, 02:17 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



I don't know about GoLive, but in the real world window.open() opens a new window. Don't see anything that would open a page in a frame. blink.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Sep 6 2007, 02:33 PM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



And FWIW, according to the spec, browsers should ignore target names that begin with an underscore (e.g., "_recipes"), but which aren't one of the four reserved values with special meanings (i.e., "_blank", "_self", "_parent", and "_top").
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 04:17 PM