The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Drop down Menu disabled after link to URL
ga6742
post Feb 1 2010, 12:13 AM
Post #1





Group: Members
Posts: 2
Joined: 31-January 10
Member No.: 10,972



I have this pull down menu working except for the links outside my server. (the 2 HTTP....links). The links work but my pull down menu stops working after this. I don't understand.

You can go to http://tucsonibmgolf.xtreemhost.com and use the pull down. The weather link and the photos link go to the right place but I can't use the pull down to go any place else. All other cases work.......thanks for looking.

Below are snippets of interest:

George

-----------------------------------------------------------------

function openURL()
{


selInd = document.theForm.aaa.selectedIndex;

goURL = document.theForm.aaa.options[selInd].value;

top.golfdocsframe.document.location.href = goURL;

}

</SCRIPT>

<form name="theForm"> <tt>
<select name="aaa" size="1" onChange="openURL()">
<option selected value="/golfdocsframe.html">Home</option>
<option value="/rules.html">Rules</option>
<option value="/north.jpg">Randolph</option>

<option value="/urich.jpg">Dell Urich</option>
<option value="http://casasadobesweather.xtreemhost.com">Weather</option>
<option value="#">---Tuesday---------- </option>
<option value="/tueroster.html">Roster</option>
<option value="/tueschedule.html">Schedule</option>
<option value="/tueresults.html">Results/Standings</option>
<option value="/tuehighlights.html">Highlights</option>
<option value="#">---Wednesday-------- </option>

<option value="/wedroster.html">Roster</option>
<option value="/wedschedule.html">Schedule</option>
<option value="/wedresults.html">Results/Standings</option>
<option value="/wedhighlights.html">Highlights</option>
<option value="http://ga6742.jalbum.net/Tucson%20IBM%20Golf%202009/index.html">Photos</option>
<option value="#">---Thursday--------- </option>
<option value="/thuroster.html">Roster</option>
<option value="/thuschedule.htm">Schedule</option>

<option value="/thuresults.html">Results/Standings</option>
<option value="/thuhighlights.html">Highlights</option>
<option value="#">-------------------- </option>
</select>
</tt>
</form>











User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 1 2010, 04:11 AM
Post #2


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

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



I think it is because JavaScript for security reasons can't manipulate a document on another domain. I think it will work if you change
CODE
top.golfdocsframe.document.location.href

to
CODE
top.golfdocsframe.location.href


The frame window is yours, so you can manipulate that. That's the preferred syntax anyway. 'document.location' is deprecated in favour of 'window.location'.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
ga6742
post Feb 1 2010, 05:15 AM
Post #3





Group: Members
Posts: 2
Joined: 31-January 10
Member No.: 10,972



QUOTE(pandy @ Feb 1 2010, 04:11 AM) *

I think it is because JavaScript for security reasons can't manipulate a document on another domain. I think it will work if you change
CODE
top.golfdocsframe.document.location.href

to
CODE
top.golfdocsframe.location.href


The frame window is yours, so you can manipulate that. That's the preferred syntax anyway. 'document.location' is deprecated in favour of 'window.location'.


smile.gif That did it. I try quite to hard to learn by solving my problems on my own but I doubt I ever would have fixed this. Thank you......George
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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

 



- Lo-Fi Version Time is now: 16th April 2024 - 03:44 PM