Questions tagged [name-attribute]

39 questions
2
votes
2 answers

Master/content page and Request.Form / Control Name

I have recently changed the structure of a website to use master pages. The first problem was that all the javascript didn't work because all the ids changed so document.getElementById('id') could find the id because now the id was…
Jesper
  • 999
  • 3
  • 14
  • 30
1
vote
1 answer

Should or should not? "name" attribute used as interactive design identifiers

I tried a course for JS that made a Hover Gallery project. 5 thumbnails were shown in a line and whichever you hovered, was displayed in a bigger size under them. Now, the code didn't contain any JS in it, only HTML and CSS. Here it is:
Steve
  • 13
  • 5
1
vote
1 answer

Not sure how to adapt ancient image switcher code from using name="foo" to id="foo"

About 19 years ago, I needed a script that changes images using the onmouseover event. The script used name="foo" which, of course, can no longer be supported by the tag. I've literally forgotten how the script works and I need some help…
mig81
  • 127
  • 11
1
vote
1 answer

passing a variable in name attribute in html

this code outputs different question from db until while loop expires with MCQ options of type radio: $sql = "SELECT * FROM questions WHERE `type` IN ('".implode("','",$fin_element)."')"; $result = $conn->query($sql); if…
andro3
  • 21
  • 7
1
vote
1 answer

h:form renders name attribute, HTML validation failed, how to remove the attribute?

I'm trying to pass the HTML validation (https://validator.w3.org/) of my code, but I've got the following problem: there is no attribute "NAME"
James
  • 95
  • 1
  • 9
1
vote
1 answer

How to check whether a checkbox is checked or not in Ext JS 3 when 'name' attribute is used

I have checkboxes created in Ext JS. When defined with 'id' attribute, I'm able to check whether its checked or not, but this is resulting in a different functionality failure. I want to check whether the checkbox is checked or not when those…
Rakesh
  • 33
  • 5
1
vote
4 answers

PHP creating an array from form input fields

I'm trying to create an array to store numbers and add them together. I'm getting an undefined variable on the following line foreach($numbers as $number) I'm sure this is probably something basic but I'm…
Lonergan6275
  • 1,938
  • 6
  • 32
  • 63
1
vote
2 answers

How to find a HTML link using Watir (3.0) and the name attribute

Context: Win XP box, Ruby 1.9.2p290 gem list watir # => watir (3.0.0) watir-classic (3.1.0) gem list sinatra # => sinatra (1.3.3) Given a rather simplistic web site as this: require "sinatra" get '/' do "
Stephan
  • 75
  • 1
  • 9
0
votes
0 answers

Change Name of Datamember dynamically in C#

I want Name of Datamember to be displayed dynamically public class SampleDTO { [DataMember] public int Time1 { get; set; } [DataMember] public int Time2 { get; set; } } For example, Time1 value entered by user =…
0
votes
1 answer

jQuery: Generate "name" Attribute Array Dynamically

I have a form like this:
+
Vahid
  • 3,384
  • 2
  • 35
  • 69
0
votes
1 answer

How do I change a drupal form name attribute to something else?

I'm using a Drupal 6 custom form, and I want to change the form name attribute to something else. Is this possible? For example, I have this. I want to change it to the…
Sasindu H
  • 1,538
  • 7
  • 24
  • 43
0
votes
2 answers

allowed length for input name attribute

I have a PHP script that will generate HTML forms dynamically. This script write text of input label in the name attribute of input. my problem is that when the name attribute text is too long browser not send that input. Is there any way to submit…
Gandom
  • 63
  • 1
  • 8
0
votes
1 answer

Radio Button checks all buttons issue angularjs

I have this plunk file. In my code, I want to create 4 radio buttons but i dont know why all the radio buttons are checked when it is meant to be only one radio button checked. http://plnkr.co/edit/IbtUGzuATbcSCmoDMH73
Kingsley Simon
  • 2,090
  • 5
  • 38
  • 84
0
votes
2 answers

Can I invent an html input name or is there a standardized list, for a simple web page?

I've researched this and not found this particular question answered -- I'm not asking specifically about form fillers but, for example, building a simple web page. Is there a standardized list of input name attributes that will address all the…
heymiami
  • 37
  • 1
  • 6
0
votes
2 answers

Why Are Forms So Important in HTML?

A form is the only way, traditionally, to send data back to the server from the client. Any element inside the form which has a name attribute will be sent to the server when the user clicks the form's submit button, and the server can use the value…
trysis
  • 8,086
  • 17
  • 51
  • 80