ID and Name attributes on same element

Please note that both these elements are the same, but one
has an "Name"
attribute in addition to an "ID" attribute
a) <select id="RES_state" size="1" >
b) <select name="RES_state" id="RES_state" size="1" >
In IE, I can use document.getElementById("RES_State") without
error with
both a) and b). However, in Firefox I get javascript error
("has no
properties" errror) if I use both attributes with same value
in Firefox.
Any ideas here?

Interesting, I thought not and was going to ask him what he
meant.
I suspect it had to do with the use of the the javascript -
eg;
document.getElementById("myID")
"Murray *ACE*" <[email protected]> wrote
in message
news:f3l7cf$jo5$[email protected]..
> There is no case sensitivity issue in the code you
posted.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "Campag" <[email protected]> wrote in message
> news:f3l6kg$itd$[email protected]..
>> thanks guys.
>>
>> No - it is a unique id on teh page.
>>
>> A devloper fixed it - said it was a case sensetivity
issue. Yet to look
>> at where.
>>
>> "Gary White" <[email protected]> wrote in
message
>> news:[email protected]..
>>> On Wed, 30 May 2007 15:32:46 +0800, "Campag"
<[email protected]> wrote:
>>>
>>>>Please note that both these elements are the
same, but one has an "Name"
>>>>attribute in addition to an "ID" attribute
>>>>
>>>>a) <select id="RES_state" size="1" >
>>>>
>>>>b) <select name="RES_state" id="RES_state"
size="1" >
>>>
>>> Are these both on the same page? You cannot use
the same ID more than
>>> once on a page.
>>>
>>> Gary
>>
>>
>
>

Similar Messages

  • Id and name attributes on xsd elements

    id, and name attributes on elements do not have a defined length, correct?
    We are shredding an xml document into storage, currently we assign 255 characters for the field that will persist the values, since the id/name fields can be longer than this is there a best practice hat is recommended for xml authors not to create ids, and names with a long string.
    I am working in a specialization of xml called XBRL,
    Neil

    Per the W3C standards, as I read them, you are correct. There is no limit on how long the attribute name (http://www.w3.org/TR/2008/REC-xml-20081126/#attdecls) can be. Follow the Name link on that page and you'll see a Name is defined as NameStartChar (NameChar)*, which is unbounded in length.
    What various tools, including Oracle implement, for max name lengths is not known to me but your 255 seems more than reasonable. The best practice in terms of node name length depends upon who created the schema and what pattern they followed.
    For example, this ISO standard
    ISO/IEC 11179-5:2005, Information technology — Metadata registries (MDR) — Part 5: Naming and identification principles. Available from
    http://standards.iso.org/ittf/PubliclyAvailableStandards/c035347_ISO_IEC_11179-5_2005(E).zip.
    is used by NIEM but neither it nor additional NIEM restrictions put a max length on node names.
    I've played around some with XBRL too and while I've seen a few long ones, I don't think they were over 50 characters so 255 would be more than enough. You could play around with all the .xsd schemas they have and look to see what the longest node name is and then set your length just over that but 255 is more than plenty in my opinion.

  • Get (variable) file path and name in a text element

    How do you get the (variable) file path and name in a text element (label) in LCD? If you save the PDF and afterwards relocate it, it should update the values. Is that actually possible?

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

  • Restritions on id and name attributes?

    Are there any known restrictions in respect to what ascii characters are valid for object id and name attribute?
    I created (via xml file) a ObjectGroup (aka Organization) with id='#ID#ObjectGroup:Approve_org' name='Approve_org' displayName='Approve_org'
    The Organiozation did not open and did not show the contained users.
    With this id and name it worked fine.
    id='#ID#ObjectGroup:ApproveOrg' name='ApproveOrg' displayName='Approve_org'
    Any thoughts?
    Ugato

    From my experience, the name and id attribute may contain pretty much every character - at least I have yet to find anything that isn't accepted. I even tried your example "Approve_org" and it worked (in IDM 8.1).
    This is what I uploaded:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE ObjectGroup PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <!--  MemberObjectGroups="#ID#Top" displayName="Approve_Org" name="Approve_Org"-->
    <ObjectGroup
          id='#ID#ObjectGroup#Approve_Org'
          name='Approve_Org'
          displayName='Approve_Org'
          creator='Configurator'
          primaryObjectClass='ObjectGroup'>
      <PathFromTop>
        <List>
          <String>#ID#Top</String>
          <String>#ID#ObjectGroup#Approve_Org</String>
        </List>
      </PathFromTop>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
    </ObjectGroup>Maybe you had something else wrong?

  • Retrieve Element ID and Name

    I want to get element's id and name attributes from a web page by clicking  on the element using VBA. I have a button in excel sheet and I want if a user clicks on that button, after that whenever user clicks(Right Click) on a element in a webpage, system
    should return its element id(1st priority) through message box. If id is not present then it should return element name(2nd priority). If both Id and Name are not present then code will return some message stating that Id or Name not found. 
    Thanks!!

    Does any have any update on this? Please help..
    Thanks!!
     

  • In a XSD, can a element's name & type attributes have same value ?

    Hi,
    Can i have a same value for the name & type attributes of an Element. For ex: in below XSD, the element 'ChildEL' has the same value('ChildEL') for the type attributes as the name('ChildEL') ?
    I am asking this because when i generate Java Classes using Castor Source Code generator using this XSD has input, the output classes do NOT compile since the class ChildEL inherits itself and which causes the cyclic inheritance. Please help.
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <xs:element name="ParentEL" type="ParentELType"/>
         <xs:complexType name="ParentELType">
              <xs:sequence>
                   <xs:element name="ChildEL" type="ChildEL" maxOccurs="unbounded"/>
              </xs:sequence>     
              <xs:attribute name="CreationDate" type="xs:dateTime"/>
         </xs:complexType>
         <xs:complexType name="ChildEL">
              <xs:sequence>
                   <xs:element name="Type" type="xs:string/>
                   <xs:element name="ID" type="xs:string/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>
    Thanks,
    Manoj

    I figured out that this is possible and to avoid the compilation error in Castor source code generator is to set the property org.exolab.castor.builder.javaclassmapping=type in castorbuilder.properties config file.

  • Modify Transition element in work flow using for and not attributes to restrict access

    Hi,
    I have TFS 2013 for my premises and I am working on changing the work flow for TFS work item. I have created a work item as per requirement and it has 3 states
    Active, In Review and Closed in work flow. When developer creates a work item it is in Active state and later it is sent to In Review and then to close after successful review.
    My question is I want development team to be restricted to move the work item to Close state. At present when developer creates a new work item they see Active state. At this point they can not see any other states in the work item. Later they
    fill the details and after checkin they will put that work item to In Review state. At this point they can see Active and In Review states. When they save this work item and modify it again they see Close state as well. I want to design the Transition element
    in work flow in such a way then developers should not be able to see the Close state at all in a work item assigned to them. Only reviewer should be able to transit the work item from In Review to Close.
    I checked the for and not attributes in the transition element but I have no idea about correct syntax I should use to enforce the restriction. I would also like to mention here that I have no separate groups defined in my TFS server. Every
    one is a part of contributor's group. There is no specific group of reviewers and one developer reviews the code of another. I want to design the work flow in such a way that the developer who creates (or gets assigned) the work item should
    not be able to put their own work item in Close state but they should be able to close another developer's work item if that work item has his name in the reviewer's box.
    I have tried to simplify my question by elaborating it hope it is not complex to understand. Let me know if you want further clarification on this.
    Regards, Premal Acharya

    Hi Premal,
    For your scenario, seems the "for" and "not" attributes not are unavailable to make it happens. Because of the developers not in groups, and the same type of work items can be assigned to all the developers hence the attributes cannot
    be allow and deny users in the groups concurrently. Please check the
    page for more information about transition xml element.
    Based on your situation, you can separate the development group and test group. Then you can only allow test group to change the state.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Display entity-attributes and global-attributes in the same screen

    Hi,
    I have a question about entity.
    Is it possible to display in the same screen, entity-attributes and global-attributes?
    thanks
    Rosalia

    Hi Rosalia,
    You can only display attributes from the current entity and the entity or entities that it is contained by (the parent entities).
    So if you had the following data model
    Global
    ..the person
    ...the income
    the person is contained by global.
    the income is contained by the person (which is contained by global).
    If you want to create a person-level question screen, you can display global attributes on that screen by using subsitution like %global_field_1%. You cannot, however, input global attributes on that screen (ONLY attributes belonging to the person)
    If you want to create an income-level question screen, you can display attributes from the person such as "tell us about %person_name%'s income..." as well as global attributes. Again, you cannot input person or global attributes on that screen (ONLY attributes belonging to the income)
    However it only works from child-to-parent containment relationships! You cannot have a global question screen which loops through the person instances and displays attributes from the person, or from the income out-of-the-box.
    We have managed to implement this using custom controls.
    You can map individual attributes back up to the parent level, and then display them,
    such as
    the first person's name = InstanceValueIf(the people, the person's name, the person's id = 1)
    the first person's name is now a global attribute and can be displayed on global question screens.
    Hope this helps!
    Ben

  • [JS-CS4] - How to read the XML Element and its Attributes

    Dear All,
      I have the doubt regarding: reading the xmlElement and its attributes.
    Here I droping the xml script
    //============= Start ======================//
    var myDoc = app.activeDocument;
    var Fpath = File("../Projects/Entity_map.xml");
      if (Fpath.exists)
       Fpath.open("r");
       var Cont= Fpath.read();
      var roots = new XML(Cont);
      var myEveryName = new Array();
      var myEveryContent = new Array();
      var myEveryAttributes = new Array();
      traverse(roots);
    //$.writeln(myEveryName);
    //$.writeln(myEveryContent);
    $.writeln(myEveryAttributes.length);
    for(var i=0; i<myEveryAttributes.length; i++)
      $.writeln(myEveryAttributes[i]);
    function traverse(tree) {
        myEveryName.push(tree.name());
    myEveryContent.push(tree.text());
      myEveryAttributes.push(tree.getAttribute);
    // you get the contents by using .text() insted of .name()
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //============== End =====================//
    and the XML Structure is
    //===============XML =====================//
    <?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
    < Entitys char="Ç" GID="173"/></ 
    Entity_Convertion>
    //===============End ====================//
    Here I'm getting the XML Elements and its contents, but not xmlAttributes.
    Please any one can help me, then I will appreciate...
    Thanks & Regards
    T.R.Harihara SudhaN

    Dear All,
      I have the doubt regarding: reading the xmlElement and its attributes.
    Here I droping the xml script
    //============= Start ======================//
    var myDoc = app.activeDocument;
    var Fpath = File("../Projects/Entity_map.xml");
      if (Fpath.exists)
       Fpath.open("r");
       var Cont= Fpath.read();
      var roots = new XML(Cont);
      var myEveryName = new Array();
      var myEveryContent = new Array();
      var myEveryAttributes = new Array();
      traverse(roots);
    //$.writeln(myEveryName);
    //$.writeln(myEveryContent);
    $.writeln(myEveryAttributes.length);
    for(var i=0; i<myEveryAttributes.length; i++)
      $.writeln(myEveryAttributes[i]);
    function traverse(tree) {
        myEveryName.push(tree.name());
    myEveryContent.push(tree.text());
      myEveryAttributes.push(tree.getAttribute);
    // you get the contents by using .text() insted of .name()
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //============== End =====================//
    and the XML Structure is
    //===============XML =====================//
    <?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
    < Entitys char="Ç" GID="173"/></ 
    Entity_Convertion>
    //===============End ====================//
    Here I'm getting the XML Elements and its contents, but not xmlAttributes.
    Please any one can help me, then I will appreciate...
    Thanks & Regards
    T.R.Harihara SudhaN

  • How To Display  attributes of Child Node and Parent Node in same view

    Suppose I have two view Carview and CarDetail View...IN Component context I have Parent Node Called Cars and It have its attribute as Price,Warranty,Year and also One Child Node Called as Brand Name Whose attribute are PrimaryBrand and SecondaryBrand..Now If I do Mapping of My First View i.e CarView with Child node of BrandName..and then I Have To Show Whole Detail of Car in CarDetailView.......How Can I Achieve it..

    Hi Vinay,
    You can map the child node and even the paren tnode to the same view if u want to display in the same window..
    If not if ur requirment is to dispaly in the sme view but should not map the child and parent to the Same view then you can take another new view.. and insert 2 view containers and then add the Child view and parent view in that view containers and then Diaplay the newly created view.
    Regards,
    Raju Bonagiri

  • XPath expression for fetching element names & attributes

    Hi out there!
    I�m trying to get a result set out of a xml schema, using XPath. The problem is, that any expression gets just a whole node set back, as it seems. The result I�d like to get would be the following. Imagine I got a schema like this:
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:r="http://recipes.org"
    targetNamespace="http://recipes.org"
    elementFormDefault="qualified">
    <element name="recipe">
    <complexType>
    <sequence>
    <element name="title" type="string"/>
    <element ref="r:ingredient" minOccurs="0" maxOccurs="unbounded"/>
    <element ref="r:preparation"/>
    <element name="comment" minOccurs="0" type="string"/>
    <element name="nutrition">
    <complexType>
    <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="carbohydrates" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="fat" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="calories" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="alcohol" type="r:nonNegativeDecimal" use="optional"/>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    Now, when I`m refering to the element <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>, I would like to get all ancestors of it, which is not a big issue at all, but i`d just like to get their names and attributes, if they have some. So the result should be something like:
    <element name="recipe">
    <complexType>
    <sequence>
    <element name="nutrition">
    <complexType>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    Any ideas anybody?
    Thanks in advance, Jens

    Well, I would use the org.apache.xpath.XPathAPI class and parse the input XML into a DOM document., and then utilize the single xpath expression //attribute[@name=protein]/ancestor::* to recover all ancestors (in a directal-tree-traversal order) of any node called "attribute" and with attr "name=protein" .
    Could it be?

  • File name from an attribute of an element of the payload

    Dear Experts,
    Could you suggest the syntax for specifying the file name from a variable in the file receiver communication channel? I need to grab the file name from an ATTRIBUTE of an element of the payload.
    Thanks a lot.
    Example: Need to pass the attribute "descReceipt" of the element "promotionEvent" to the variable in the following payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <promotionExport>
    <promotionEvent eventIdentifier="30" status="A" descReceipt="FILE1">

    The scenario is IDOC to FILE. I need to get the value of the receiving partner.
    The message header has the node "DynamicConfiguration". Please see the xml below. I need to grab the key RCVPRN (0000002104) from this and pass as the file name in the receiver file adapter.
    How do I setup my receiver file adapter for this? I tried changing the values for the variable, and also enabling the adapter specific message attributes. No solution yet.
    <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="RCVPOR">LXDCLNT250</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="SNDPRT">LS</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="RCVPRN">0000002104</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="SNDPOR">SAPLCD</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="SNDPRN">LCDCLNT220</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="CIMTYP" />
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="IDOCTYP">WPDBBY01</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="MESTYP">WPDBBY</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/IDoc" name="RCVPRT">KU</SAP:Record>
      </SAP:DynamicConfiguration>

  • The name attribute on the img element is obsolete. Use the id attribute instead.

    When I valadate my page I get an error "The name attribute on the img element is obsolete. Use the id attribute instead." In DW CS5.5 I cannot seem to enter an ID without DW also adding the ID as a name attribute too. Aside from manually going in and removing the name attribute from the code.

    It won't hurt to leave the name attribute in your <img> tag.  In fact, it may be necessary if you are going to add an image rollover behavior, since DW's javascript relies on that name attribute's value to correctly identify the desired image on the page.

  • Have synced my iPhone numerous times and some of the memos in "Voice Memos" on my iPhone wont go over to my iTunes program on my computer. I have a folder titled "Voice Memos" on my iPhone and one of the same name on iTunes on my computer.

    I have synced my iPhone numerous times and some of the memos in "Voice Memos" on my iPhone wont go over to my iTunes program on my computer. I have a folder titled "Voice Memos" on my iPhone and one of the same name on iTunes on my computer. But after I sync I only get 6 out of the 9 voice memos on my iPhone.
    How do I get the rest (or all) of the memos from my iPhone copied to my computer?
    Albro P Michell
    [email protected]

    "I have logged in to my itunes account on a different computer and none of my purchased music is showing up."
    Correct.  it does not magially appear in other places.  It will only be where you put it.
    "I also have plugged my iphone in to get updates but it says I will lose all media and apps if I don't update on the computer where  I sync everything. "
    Correct as well.  Iphone will sync with one computer at a time.  Syncing to another will erase the current content.
    You need to copy everything ( itunes library/contacts/pics/calendars/files/docs) from the old computer, or your backup copy of the old one, to the new one.

  • Can itune and ipad have the same user name?

    Setting up new ipad, can ipad and itunes have the same user name being my email? 

    What do you mean by "user name"? They can, probably will, use the same iTunes Apple ID, if that's what you're asking.

Maybe you are looking for

  • How to read Condition Value of a Sales Order

    Hello everyone, I want to read the salse order's  Condition Value in VA03, in sales order's  Header condition. Anyone who can help me? Thank a lot. Julie.

  • Output formats

    Re: Elements Premier 10 in UK (PAL) I have just 'imported' a video clip from my Sony DV camcorder via the firewire port. It uses tape but is digital (I think) it save the file to disc in AVI format. This is good I know AVI. After I have edited the cl

  • Lost iPhoto library

    I have recently upgraded to iPhoto11. After the upgrade I had to shut down my computer and move it physically to a different location. Upon starting iPhoto again, the entire program was empty of photos. I found a Picture folder that seams to contain

  • GETVPN: Cisco 3925E as a Key Server for 1500 GMs

    Hi, In a MPLS-VPN scenario as a private network for a client, they want to encrypt all their data traffic. GETVPN is the chosen encryption solution. They have 1500 branch offices, and 2 CPDs. We plan to use two Cisco 3925E as Key Servers, one in each

  • FCPX upload to youtube in 1080, but showing up on youtube as 720

    I have been using the direct upload to YouTube feature on Final Cut Pro X now for several months and I have never had an issue until now. Today I went to upload a video like I always do, in 1080, and after uploading to YouTube the quality is only sho