I am creating form elements with names that I'd like to reflect th
Dublin Core metadata set, e.g. DC.Date, DC.Subject, etc.
However, when I use them with dots, it completely confuses JavaScript
e.g.
theFunction(document.forms.formName.elements.input Name)
doesn't work if 'inputName' is DC.Date, i.e.
theFunction(document.forms.formName.elements.DC.Da te)
I've tried
theFunction(document.forms.formName.elements.'DC.D ate')
and
theFunction(document.forms.formName.elements.DC\.D ate)
and also
var theName = 'DC.Date';
theFunction(document.forms.formName.elements.theNa me);
but all fail. Is there any way around this?
PS. Using form elements that match the DC standard names is very
handy for readability and when passing stuff back to the server
-
Rob 2 1547
On Sat, 21 Aug 2004 22:39:59 -0500, RobG
<Ro*********@mail.forum4designers.com> wrote:
[Accessing property names containing invalid characters]
Read the FAQ.
<URL:http://jibbering.com/faq/>
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
RobG wrote: I am creating form elements with names that I'd like to reflect the Dublin Core metadata set, e.g. DC.Date, DC.Subject, etc.
However, when I use them with dots, it completely confuses JavaScript, e.g.
theFunction(document.forms.formName.elements.input Name)
theFunction(document.forms[formName].elements[inputName])
You can use some really nasty characters using this format....
Mick doesn't work if 'inputName' is DC.Date, i.e.
theFunction(document.forms.formName.elements.DC.Da te)
I've tried
theFunction(document.forms.formName.elements.'DC.D ate')
and
theFunction(document.forms.formName.elements.DC\.D ate)
and also
var theName = 'DC.Date'; theFunction(document.forms.formName.elements.theNa me);
but all fail. Is there any way around this?
PS. Using form elements that match the DC standard names is very handy for readability and when passing stuff back to the server. -- RobG This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Roy W. Andersen |
last post by:
I've been searching google about this for days but can't find anything,
so I'm hoping someone here can help me out.
I'm trying to create zip-files without needing the zip-file extension in
PHP,...
|
by: Jens Kristensen |
last post by:
I have a problem displaying a divbox containing a html-textarea -
everything works fine with "normal" characters. However, when the
textarea contains special chars like <P> or ' , the box fails to...
|
by: Frank Rizzo |
last post by:
Hello,
I'd like to have the following structure in my XML file
<lname, _fname, _minit>
<status>it is all good</status>
</lname, _fname, _minit>
But apparently, there is a problem with...
|
by: david.lindsay.green |
last post by:
Hello all, I am quite new a web scripting and making web pages in
general and I have stumbled across a problem I have as yet been unable
to solve. I am trying to take the contents of a textarea box...
|
by: sonald |
last post by:
Dear All,
I am working on a module that validates the provided CSV data in a text
format, which must be in a predefined format.
We check for the :
1. Number of fields provided in the text file,...
|
by: Trac Bannon |
last post by:
When I load XML from a file into a dotNet XMLDataDocument, the UTF-8 codes
are resolved but the 5 special XML entities are not.
How can I force those 5 special character types to be translated?
|
by: Aray |
last post by:
<!ENTITY % testEntity "(test)">
<!ELEMENT testElement %testEntity;>
Above is a valid DTD file. But it doesn't work when I try to put a charater
'/' in to the Content of testEntity. like...
|
by: zaphod42 |
last post by:
I've been crunching on this all afternoon:
I need to stop text from wrapping at a special character....if you set the innerHTML of some given element without setting the width of said element, it...
|
by: ArizonaJohn |
last post by:
Hello,
I would like to allow users to add tables to my database with special characters in the table names. The characters I would like to allow include #, &, *, and +.
Below is my code which...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |