Hi there
I would like to write a javascript function that creates a drop-down
list dynamically. I read on the docs that most HTML controls can not
be created on run-time. what kind of work-arounds do you use in this
case? maybe DHTML?
do you have any example ?
Javascript allows you to create the options of the drop-down list
dynamically but not the drop-down list itself, I believe.
Actually the same question goes for any other HTML control.
any reference, example, link, suggestion greatly appretiated.
Thanks a lot
Gurry 4 3695
In article <1a************ **************@ posting.google. com>, jf**@cisco.com enlightened us with... Hi there
I would like to write a javascript function that creates a drop-down list dynamically. I read on the docs that most HTML controls can not be created on run-time. what kind of work-arounds do you use in this case? maybe DHTML? do you have any example ? Javascript allows you to create the options of the drop-down list dynamically but not the drop-down list itself, I believe. Actually the same question goes for any other HTML control.
any reference, example, link, suggestion greatly appretiated.
Sure you can, for modern browsers that support createElement. http://msdn.microsoft.com/workshop/a...methods/create
element.asp
For full dhtml reference for IE, see http://msdn.microsoft.com/library/default.asp?
url=/workshop/author/dhtml/reference/methods.asp
Note that not all browsers support createElement or all of MSIE DHTML.
For the second most popular browser, see NN/Mozilla docs here. http://www.mozilla.org/docs/web-developer/
--
--
~kaeli~
A man's home is his castle..., in a manor of speaking. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
kaeli wrote on 18 Dec 2003 at Thu, 18 Dec 2003 16:10:37 GMT: Sure you can, for modern browsers that support createElement. http://msdn.microsoft.com/workshop/a...erence/methods /create element.asp
The createElement method is actually part of W3C's DOM
specification. Modern versions of all browsers that support DOM,
including IE, Mozilla, Netscape and Opera, should implement
document.create Element().
Mike
--
Michael Winter M.******@blueyo nder.co.invalid (replace ".invalid" with ".uk")
"Michael Winter" <M.******@bluey onder.co.invali d> wrote in message
news:Xn******** *************** ********@193.38 .113.46...
<snip> Sure you can, for modern browsers that support createElement. http://msdn.microsoft.com/workshop/a...tml/reference/ methods/create element.asp
The createElement method is actually part of W3C's DOM specificatio n. Modern versions of all browsers that support DOM, including IE, Mozilla, Netscape and Opera, should implement document.create Element().
A problem arises with less dynamic browsers, they can reasonably
implement the official DOM structure (childNodes, parentNode and so on)
convenience properties and element/collection retrieval methods making
access and navigation of a standardised DOM practical but if they are
not dynamic enough to reflect changes in the DOM structure into changes
in the displayed page it might reasonably be argued that not
implementing createElement, replaceChild and so on is a good way of
advertising the limited capabilities of the browser to the script
author. These days the less dynamic browsers tend to be found on
smaller devices but the modern ones do seem to go as far as practical
towards implementing the W3C DOM, they just don't include the more
dynamic methods.
Richard.
In article <Xn************ *************** ****@193.38.113 .46>, M.******@blueyo nder.co.invalid enlightened us with... kaeli wrote on 18 Dec 2003 at Thu, 18 Dec 2003 16:10:37 GMT:
Sure you can, for modern browsers that support createElement. http://msdn.microsoft.com/workshop/a...erence/methods /create element.asp
The createElement method is actually part of W3C's DOM specification. Modern versions of all browsers that support DOM, including IE, Mozilla, Netscape and Opera, should implement document.create Element().
I know. If you pointed that out because of the link to MS, I linked
there because I like the docs. The MS docs are my fav source of info for
the "new" kinds of DHTML because they have rather nice examples and the
properties and methods are easy to find. It's searchable, too.
If anyone has Mozilla/Netscape docs set up this nice, I'd love a link.
The source I have does the job as far as making sure something works in
NN, but isn't nearly as nice as the MS site.
--
--
~kaeli~
Do cemetery workers prefer the graveyard shift? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Barbara Lindsey |
last post by:
Thank you for your help on the trigger question. The RULE worked for most
of the cases I had for this, but I have one that is giving me trouble.
Here are my table definitions:
CREATE SEQUENCE "stat_id_seq" cache 1;
CREATE TABLE "ref_status" (
"status_id" integer DEFAULT nextval('stat_id_seq') PRIMARY KEY,
"short_name" varchar(5),
"description" varchar(25),
"modified" timestamp with time zone DEFAULT current_timestamp,
|
by: Brian S. Smith |
last post by:
Hi gang,
Please help. I've been through the Access help, searched the Web, and
I can't seem to get a straight answer. As the Subject line suggests, I
want to run a fairly simple VB/Access Sub Function/Module that creates
relationships for my tables. The problem is that I need to provide for
some tables that may have > 32 relationships (which is apparently the
limit on Indexes that Access can support). How can I prevent Access
from...
|
by: Kyle Fitzgerald |
last post by:
I've started a web control library project and can build
my own controls to add to the toolbox in the .NET
environment. The problem I'm having is I want to create a
control just like the HTML table where I could drag my
control on the page and then drag and drop other controls
into the cells of the table. I've tried creating my own
and I tried to inherit from
system.ui.htmlcontrols.htmltable but I can not get it to
have the borders and...
|
by: A.M |
last post by:
Hi,
Using ASP.NET/VB.NET and SQL Server backend,
I need to return calculation results to user as an Access MDB file or Excel
XLS sheet.
What would be the best way to create a MDB or XLS file inside a .NET
program?
Thanks,
Ali
|
by: Coleen |
last post by:
Hi All :-)
Can anyone give me a URL where I can find a good example of code on how to
create a temporary SQL table using VB.net? I've checked the Microsoft site
at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_04_8jtx.asp
which is okay at explaining the process but gives me absolutely no code
examples. Unfortunately, I am one of those programmers that can read and
| |
by: GautamKumar |
last post by:
Hi All,
I want to drag and drop files from Windows Explorer to an HTML Page.On Drop
of a particular File i want to know the path of that File where it is
stored.I dont want to use any ActiveXControls.And the HTML Page is a simple
Page.On Drop of a particular file on this HTML Page i have to get the path of
that file.
Plzz let me know as soon as possible. It is very urgent
Thanks
|
by: freako9699 |
last post by:
I would like to create a blog script, with a mysql back-end, a basic
admin panel then can just add/edit posts and delete comments. no user
auth required. how do i go about doing that, i no how to work mysql and
have a good knowledge of php im just not good at actually working out
how to put these scripts together :-P
|
by: John Salerno |
last post by:
Ok, this is completely unnecessary so I don't intend to get into stuff
that's beyond my skill, but I'm wondering how simple it would be to use
Python to create a server that runs on my computer so I can test my
webpages (because otherwise I have to keep sending them to our IT person
so he can upload them to the server).
The catch is that I need a server that supports SSI and I have no clue
how to write something like this. If it's...
|
by: AR123 |
last post by:
I want to convert my website tables layout to div tags as someone told me its easier to make changes etc etc I just need some help in getting started with this and what to put in the stylesheet. the code below is how it looks just now.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Angela...
|
by: cleary1981 |
last post by:
I have adapted code from http://dunnbypaul.net/js_mouse/
I want to use a button to create new draggable divs but i keep getting error "is null or not an object"
heres the code
<html>
<head>
<title>Drag and drop module</title>
<style type="text/css">
#canvas {
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: 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...
| |