Help!
I am trying to create a webpage and it would be obvious to anyone who
reads my source code (it's a mess) that I created it using a template.
I know almost nothing about webpages, but am happy with all but a few
bugs in my page.
I have read many posts about opening drop-downs in new windows, and
have spent hours looking over my source code to see what I have done
wrong.
My links open in the same window like I want, but ALL of my drop-downs
open in a new window!
Can someone please have mercy on me and help???
Thanks for any advice you can give.
Kim 8 2013
Kim14 wrote: Help!
I am trying to create a webpage and it would be obvious to anyone who reads my source code...
(snip)
No danger of that.
I have spent hours looking over my source code to see what I have
done wrong.
(snip)
No one out here will spend 'hours', but 'minutes' might work wonders.
Sorry, didn't mean to offend you... just thought this was a place where
someone might offer some help to a newcomer just starting out-
apparently I knocked on the wrong door.
Kim14 wrote: Sorry, didn't mean to offend you... just thought this was a place
where someone might offer some help to a newcomer just starting out- apparently I knocked on the wrong door.
Not offended at all ! If you were reading your post, instead of writing
it, how would you 'offer some help' in fixing coding you couldn't see?
A bit like diagnosing car trouble over the phone. Post the HTML for
those selects & any JavaScript called (presumably onchange) by them.
Not sure if this is the part of the code needed, but I am trying...
<HEAD><meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>
------
<tr>
<td>
<div align="center"></div><font face="tahoma" size="2"><font
color="#ccff00"><div align="center">Dowloadable
Forms</div></font></font></a>
</div>
<div align="center">
<form action="dummy" method="post"><select name="choice" size="1"
onChange="jump(this.form)"><option
value="http://www.idph.state.ia.us/common/pdf/vital_records/application_certified_copy_vital_record.pdf">Birth/Death/Marriage
Request</option>
<option value="marriage_app.pdf">Marriage Application</option><option
value="http://travel.state.gov/pdf/DS-0011.pdf">Passport
Application</option><option
value="http://www.archives.gov/research_room/obtain_copies/standard_form_180.pdf">Veteran's
Record Request Form</option><option value="dov.pdf">Declaration of
Value- must use 8 1/2" x 14 paper</option>
<option value="ground.pdf">Groundwater Hazard
Statement</option></select></form>
</div>
</td>
</tr>
Kim14 wrote: Not sure if this is the part of the code needed, but I am trying... <HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script> <!-- function land(ref, target) { lowtarget=target.toLowerCase(); if (lowtarget=="_self") {window.location=loc;} else {if (lowtarget=="_top") {top.location=loc;} else {if (lowtarget=="_blank") {window.open(loc);} else {if (lowtarget=="_parent") {parent.location=loc;} else {parent.frames[target].location=loc;}; }}} } function jump(menu) { ref=menu.choice.options[menu.choice.selectedIndex].value; splitc=ref.lastIndexOf("*"); target=""; if (splitc!=-1) {loc=ref.substring(0,splitc); target=ref.substring(splitc+1,1000);} else {loc=ref; target="_self";}; if (ref != "") {land(loc,target);} } //--> </script>
------ <tr> <td> <div align="center"></div><font face="tahoma" size="2"><font color="#ccff00"><div align="center">Dowloadable Forms</div></font></font></a> </div> <div align="center"> <form action="dummy" method="post"><select name="choice" size="1" onChange="jump(this.form)"><option
value="http://www.idph.state.ia.us/common/pdf/vital_records/application_certified_copy_vital_record.pdf">Birth/Death/Marriage Request</option> <option value="marriage_app.pdf">Marriage Application</option><option value="http://travel.state.gov/pdf/DS-0011.pdf">Passport Application</option><option
value="http://www.archives.gov/research_room/obtain_copies/standard_form_180.pdf">Veteran's Record Request Form</option><option value="dov.pdf">Declaration of Value- must use 8 1/2" x 14 paper</option> <option value="ground.pdf">Groundwater Hazard Statement</option></select></form> </div> </td> </tr>
You're not doing anything wrong - it's those .pdf files that are
causing the problem (try this in another browser - like Mozilla Firefox
- to see). Found this: http://support.microsoft.com/?kbid=305836
....which might be related. Not sure of the fix, if there is one. I'll
toss this one back in the air /:o)
Sorry I couldn't have been more helpful. http://www.mozilla.org/products/firefox/
RobB-
Thank you so much for your efforts! I read the microsoft support page
and it sure sounds like my problem, as all my other links work fine on
opening. I have been working on this page in IE and Mozilla and get
the same results. It just gives me some relief to think I'm not just
losing my mind- I will now stop beating my head against the wall on
this issue.
Like I said, I can't thank you enough for your help!!!
Just came up with another interesting problem. My first drop-down list
contains pdf files, but my 3rd drop-down contains URL's. The URL's
also open in their own page.
All of my drop-downs are on the same page, so the head of my document
would be the same as my earlier post. Here are the specifics on the
drop-down with URL's.
If this is the case, maybe the earlier conclusion was not my problem?
<tr>
<td>
<div align="center"></div><font face="tahoma" size="2"><font
color="#ccff00"><div align="center">Realtors</div></font></font></a>
</div>
<div align="center"><form action="dummy" method="post"><select
name="choice" size="1" onChange="jump(this.form)"><option
value="http://www.abensrealty.com">Abens Realty</option><option
value="http://www.rodandtrudy.com">Farmers National
Company</option><option value="jc*****@ncn.net">J/C Wells Real
Estate</option><option value="http://jimfortunerealty.com/">Jim Fortune
Realty</option><option value="http://www.kingrealtywc.com/">King
Realty</option><option
value="http://www.webstercityrealestate.com/">Webster City Real
Estate</option></select></form>
</td>
</tr>
</tr>
Kim14 wrote: Just came up with another interesting problem. My first drop-down
list contains pdf files, but my 3rd drop-down contains URL's. The URL's also open in their own page.
All of my drop-downs are on the same page, so the head of my document would be the same as my earlier post. Here are the specifics on the drop-down with URL's.
If this is the case, maybe the earlier conclusion was not my problem?
<tr> <td> <div align="center"></div><font face="tahoma" size="2"><font color="#ccff00"><div align="center">Realtors</div></font></font></a> </div> <div align="center"><form action="dummy" method="post"><select name="choice" size="1" onChange="jump(this.form)"><option value="http://www.abensrealty.com">Abens Realty</option><option value="http://www.rodandtrudy.com">Farmers National Company</option><option value="jc*****@ncn.net">J/C Wells Real Estate</option><option value="http://jimfortunerealty.com/">Jim
Fortune Realty</option><option value="http://www.kingrealtywc.com/">King Realty</option><option value="http://www.webstercityrealestate.com/">Webster City Real Estate</option></select></form> </td> </tr> </tr>
Sorry for the delay. Couldn't reproduce your problem; does seem to be a
..pdf related issue. Setting the Location object (window.location) to a
new url is pretty basic browser programming. btw if you're not
targeting any of those urls to anything but the same, non-framed
window, you don't need all that rigmarole:
function jump(obj, url)
{
if (obj &&
(url = obj.options[obj.selectedIndex].value))
top.location = url;
}
....and:
<select name="choice" size="1" onchange="jump(this)">
....should do the trick. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Joe Dunleavy |
last post by:
Hi Guys,
Hopefully some one will have come across this issue already. I have a
DataGrid inside a Div where a scroll bar displays once a certain height is
meet
--> <div id="dvSales"...
|
by: Woody Splawn |
last post by:
I have a question about technique with regard to filling drop downs.
I have a Winform that has several different tabs and tables associated with
it. In an effort to keep the load time small I...
|
by: rsteph |
last post by:
I have a javascript drop down menu that I borrowed from a website. It utilizes a little .css to help with formatting. The menu works great, and on all 3 of the browsers I'm concerned about; but I am...
|
by: John |
last post by:
I have CSS drop down navigatoon bar and it works fine.
However, when I have page where I have an <embed - needed to show a PDF
file, such as:
<embed src="Security.pdf" width="900"...
|
by: ehsanen |
last post by:
I have some text boxes and drop downs on my web page and now i want to put a button in my webpage that when the user clicked the buton the page itself add another row of textboxes and drop downs , in...
|
by: Jake Barnes |
last post by:
I've been asked to help out with the navigation bar on this page:
http://www.thesecondroad.org/
The drop down menu (which is pure CSS, save for a fix for IE) appears
behind the Flash module....
|
by: JackInDaBox |
last post by:
Hello,
I am new to this and have run into a small problem. I am using the Ajax toolkit with VS 2005 to fill some drop downs through a web service and it works great. All of the cascading drop...
|
by: tiago.private |
last post by:
Hi everybody,
Imagine the following scenario:
One System.Web.UI.UserControl (UC1) with 2 drop downs and one button
"Filter"
One Webform with (UC1) and a GridView, basically the UC1 provides...
|
by: vinpkl |
last post by:
hi all
i have two dynamic drop downs of dealer id and category id which work properly with window.location
var dealerid;
function getList(xyz)
{...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |