473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

no form displayed

Hi,

I am attempting to have a combo box with links that the user selects to go
to that page. Here is the java code.

<!--Change the option tags as desired-->
<form name="c937">

<p><select name="c614" size="1">
<option selected value="about-me.html<about me</option>
<option value="jokes.html">jokes</option>
<option value="books.html">books</option>
<option value="downloads.html">downloads</option>
<option value="links.html">links<//option>

</select>

<input type="button" value="Go"
onClick="location=document.c937.c614.options[document.c937.c614.selectedInde
x].value"></p>
</form>

The problem is that when I open the page in the web browser (IE six,) no
combo box appears. What am I doing wrong? Thanks,

Robert

P.S I am using Apache 1.3 as the webserver.

Jul 20 '05 #1
4 1928
"the house of riddles" <ca**********@qwest.net> wrote:
I am attempting to have a combo box with links that the user
selects to go to that page.
Stop trying that. Use links, Luke. See
http://www.cs.tut.fi/~jkorpela/forms/navmenu.html
Here is the java code.
No, there's not a single piece of Java there. Your markup snippet
contains one JavaScript instruction. And both Java and JavaScript are
off-topic in this group.
The problem is that when I open the page in the web browser (IE
six,) no combo box appears. What am I doing wrong?
Well, you have some syntax errors in your markup, to begin with. But
the basic mistake is to try to avoid using links for linking.
P.S I am using Apache 1.3 as the webserver.


Irrelevant. You are _not_ utilizing the server facilities but try to
rely on security holes (JavaScript enabled) on browsers. But the
the basic mistake is to try to avoid using links for linking.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2
"the house of riddles" <ca**********@qwest.net> wrote:
I am attempting to have a combo box with links that the user selects to go
to that page.
Unlike a normal list of links tha is easier to use and will always
work. Okay you like to make life difficult for yourself and your
visitors...
Here is the java code.
This isn't Java. It's HTML and a little bit of JavaScript. Java and
JavaScript have nothing in common except the name.
<!--Change the option tags as desired-->
<form name="c937">
No action specified for the form. Where is this form supposed to be
submitted to?
<p><select name="c614" size="1">
<option selected value="about-me.html<about me</option>
Missing " and < instead of >
<option value="jokes.html">jokes</option>
<option value="books.html">books</option>
<option value="downloads.html">downloads</option>
<option value="links.html">links<//option>
Two / instead of one
</select>

<input type="button" value="Go"
onClick="location=document.c937.c614.options[document.c937.c614.selectedInde
x].value"></p>
</form>


If the user doesn't have JS enabled (and 10-20% of users seem not to)
then they can click on this button all day long but nothing will
happen.

The syntax errors above would have been revealed very quickly if you
had validated your code. http://validator.w3.org/

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
Steve Pugh <st***@pugh.net> wrote in
news:an********************************@4ax.com:
<input type="button" value="Go"
onClick="location=document.c937.c614.options[document.c937.c614.selecte
dInde x].value"></p>
</form>


If the user doesn't have JS enabled (and 10-20% of users seem not to)
then they can click on this button all day long but nothing will
happen.


And search engine robots probably won't be able to follow those "links."
And link-checking tools probably won't be able to follow them either. And
even users with Javascript enabled will have to go through *two* steps to
follow a link rather than just one, for no discernable benefit.

I suspect we have an XY problem here where the author's real goal is to
limit the amount of window real estate taken up by the links. How about an
iframe with ordinary clickable links instead?
Jul 20 '05 #4
Jukka K. Korpela wrote:
"the house of riddles" <ca**********@qwest.net> wrote:
I am attempting to have a combo box with links that the user
selects to go to that page.


Stop trying that. Use links, Luke. See
http://www.cs.tut.fi/~jkorpela/forms/navmenu.html
Here is the java code.


No, there's not a single piece of Java there. Your markup snippet
contains one JavaScript instruction. And both Java and JavaScript are
off-topic in this group.
The problem is that when I open the page in the web browser (IE
six,) no combo box appears. What am I doing wrong?


Well, you have some syntax errors in your markup, to begin with. But
the basic mistake is to try to avoid using links for linking.
P.S I am using Apache 1.3 as the webserver.


Irrelevant. You are _not_ utilizing the server facilities but try to
rely on security holes (JavaScript enabled) on browsers. But the
the basic mistake is to try to avoid using links for linking.

You can use the java-code in the "form action" or in stad of javacode
maybe use href:
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: cooldv | last post by:
i know how to replace the sign " when SUBMITTING a form in asp by this code: message = Replace(usermessage, "'", "''"). My problem is DISPLAYING data in an asp FORM, from an an access database,...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
1
by: Kevin Carter | last post by:
Hi there...hoping somebody can help me out because I am almost ready to pull out my hair. My problem is as follows: In a method in my main form (non MDI app), I instantiate and .Show another...
3
by: BakelNB | last post by:
I am new to the .Net environment, so please bear with me. I am passing a form object (e.g. formA) to an existing form (e.g. formB) by setting a property value defined in formB to hold the formA...
5
by: bobh | last post by:
Hi All, A clients database (built by another and not very well but, its what I have to work with) has bound forms that display customer information and when printed is three pages long. The...
4
by: assgar | last post by:
Hi I am stuck on a problem. I use 3 scripts(form, function and process). Development on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. The form displays...
2
by: rdemyan via AccessMonster.com | last post by:
I have a custom message form that I want to display when the user shuts down my app. Some clean up needs to be done during shutdown and I want to display this form and then display various...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
4
by: robertallenpayne | last post by:
I have been asked to develop an application in Access for work. This application must have a simple user interface because the folks using it are not "database people" - their words, not mine. ...
0
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
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
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...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.