Ok, I have another form to write, and one of its features will be pop up
or drop down select-from-list stuff.
Could be done with javascript, could be done with <SELECT>
<OPTIONetc etc..
It will have to have an onselect() anyway, but apart from a better
control of appearance, what other pros and cons are there?
Coding it up looks a shade simpler in HTML rather than script, but thats
all I can see... 3 1436
The Natural Philosopher wrote:
Ok, I have another form to write, and one of its features will be pop up
or drop down select-from-list stuff.
Could be done with javascript, could be done with <SELECT>
<OPTIONetc etc..
It will have to have an onselect() anyway,
Onselect is not a vaild attribute for a select element, it is for input
and textarea elements when some text in them is selected:
<URL: http://www.w3.org/TR/html4/interact/...#adef-onselect >
but apart from a better
control of appearance, what other pros and cons are there?
Coding it up looks a shade simpler in HTML rather than script, but thats
all I can see...
Using HTML ensures it will work in a greater range of browsers and those
with script support missing or turned off, though you may wish to
augment it with script to provide a better UI for those that have it
available and turned on.
--
Rob
"We shall not cease from exploration, and the end of all our
exploring will be to arrive where we started and know the
place for the first time." -- T. S. Eliot
RobG wrote:
The Natural Philosopher wrote:
>Ok, I have another form to write, and one of its features will be pop up or drop down select-from-list stuff.
Could be done with javascript, could be done with <SELECT> <OPTIONetc etc..
It will have to have an onselect() anyway,
Onselect is not a vaild attribute for a select element, it is for input
and textarea elements when some text in them is selected:
sorry. Onchange()
<URL: http://www.w3.org/TR/html4/interact/...#adef-onselect >
>but apart from a better control of appearance, what other pros and cons are there?
Coding it up looks a shade simpler in HTML rather than script, but thats all I can see...
Using HTML ensures it will work in a greater range of browsers and those
with script support missing or turned off, though you may wish to
augment it with script to provide a better UI for those that have it
available and turned on.
Mm. I can specify what browsers - as long as IE6/firefox/safari/opera
work, thats ok..
I was more thinking of speed issues..
>
The Natural Philosopher said the following on 9/1/2007 10:08 PM:
RobG wrote:
>The Natural Philosopher wrote:
>>Ok, I have another form to write, and one of its features will be pop up or drop down select-from-list stuff.
Could be done with javascript, could be done with <SELECT> <OPTIONetc etc..
It will have to have an onselect() anyway,
Onselect is not a vaild attribute for a select element, it is for input and textarea elements when some text in them is selected:
sorry. Onchange()
><URL: http://www.w3.org/TR/html4/interact/...#adef-onselect >
>>but apart from a better control of appearance, what other pros and cons are there?
Coding it up looks a shade simpler in HTML rather than script, but thats all I can see...
Using HTML ensures it will work in a greater range of browsers and those with script support missing or turned off, though you may wish to augment it with script to provide a better UI for those that have it available and turned on.
Mm. I can specify what browsers - as long as IE6/firefox/safari/opera
work, thats ok..
IE6? Hmmmm :) And what if scripting is disabled? The question isn't
"what browsers will it work in?", a better question is "where will it
potentially break?"
I was more thinking of speed issues..
Speed of coding, display, maintenance, selection, or ...... ?
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Pat Scott |
last post by:
I am looking for a general purpose javascript snippet that enables me to
<div> or <span> HTML to make portions of the form be hidden and then appear.
The form contains about 12 sections and some sections can contain
subsections. When the user clicks on a checkbox, I want previously hidden
text boxes, radio buttons, text, drop down menus, and additional checkboxes
to appear. In some cases, clicking on a checkbox in a section can cause...
|
by: Gui Lloyd |
last post by:
I have a problem with performance in IE.
The script above works quite fine when the table has a small number of
elements, but, when the table has 2500 elements, when I click in the
checkbox of the table header (to select all the checkboxes in table),
the script demands at least 3 minutes to execute. I tested the same
script in Mozilla and the response time is much more faster. Does
anyone has an idea?
<script>
function...
|
by: Jim Banks |
last post by:
Greetings
I'm opening a pop up window with a html form, (in one document) and I want to pass a variable to the html form called from the hyperlink.
Here's the code I'm using to pop up the window and call the form. In this particular instance, a city name is what I have to pass to the form Chapter.htm.
<html>
<head>
|
by: Örjan Skoglösa |
last post by:
Hi all,
My first posting here.
I would be very thankful for a general advice about which "way to go"
to accheive a certain arrangement on a web page.
The page should show a list of items (a wishlist) with about 50 - 150
items, presented each one in a row in a table with e.g. 5 columns.
|
by: q2005 |
last post by:
Hi, all
When I do as the following, it becomes a GET action to the the server. How
do I make it as a POST action? That means I don't want the string after "?"
show on URL bar and, to the server, it can follow POST function to get the
data passed in. Thank you very much!
window.open("../../Server.php?"+xsValue, "", zNONHTML_STYLE);
| |
by: tony |
last post by:
I'm designing a survey form page that will be fairly complex and am
becoming confident enough with PHP now to tackle most things.
(Thanks to everyone here who has helped)
Before I go too far with this I was wondering if anyone could perhaps
offer advice or point me to any documents/web pages that could help with
ensuring the security of the form/page and site. It is likely that the
form will come under attack I expect.
Even comments...
|
by: Frinavale |
last post by:
Hi there!
I'm not sure if this question should be posted under the .NET form or the JavaScript form...I just have a general question about JavaScript and .NET.
I usually test my JavaScript in static web pages before adding it to my .NET application and I've noticed that if I manually create a static web page that uses JavaScript and then try to run it with Internet Explorer, Internet Explorer "blocks" my JavaScript content.
When I...
|
by: sukatoa |
last post by:
I am a newbie on JavaScript....
I would like to know about what's wrong in my code below:
<html>
<head>
<title>Text Example</title>
</head>
<body>
|
by: Neil Gould |
last post by:
Or... when is a script not a script?
I have several modules for managing different aspects of our club's website,
most of which are multi-page.
Does setting such things as server.ScriptTimeout or response.buffer values
at the start of the first page persist throughout the session, or are they
"reset" with each function or sub, etc.?
TIA.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |