473,238 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,238 software developers and data experts.

Retrieving custom values from elements....

I am not really experienced in Javascript so bear with me....

I am working with an embedded platform; no mouse, no keyboard. Just up,
down, left, right keys and +/- keys for incrementing/decrementing the
vaules in the form.

So my website consists of forms... Each form has a number of columns
and rows. I am generating each page using a php script and some
templates. Because the exact layout of each page can change based on
customer requriements, I want to write my PHP and Javascript in a way
that all the required information is in the templates.

So....

Right now, as the user hits the right arrow and navigates to the right
edge of the form, I want him to stop at the right boundary of the form;
I do not want to wrap to the next line. But maybe the next customer
will want wrap....

So I've tried using a template like this:

<td><input name='auxD-%d%' type='hidden' id='ha%T%' value='%auxD%'
size='3' readonly='readonly'><button tabindex=%t% id='a%t%'
navRight='stop' ><img src='/no.png' id='ia%t%'></button></td>

where the button element has a navRight property of 'stop'. I've tried
retrieving this with

var bdry = activeElement.navRight;

but I always get 'undefined'.....

How can I store custom values in html elements so that I can retrieve
them with javascript?

--Yan
Apr 18 '06 #1
1 1508
Captain Dondo wrote:

How can I store custom values in html elements so that I can retrieve
them with javascript?


Answering my own post for 'post'erity: ;-)

var bdry = activeElement.getAttribute('navRight');

Apr 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: CES | last post by:
All, Is their a way of iterating thru each tag within a form and returning the value given in the id property, by that I mean the below html would return the values idBoxOne, idBoxTwo,...
4
by: Rudy | last post by:
Hello all, I'm sure there is, just can't figure it out. I have the RGB code and the color number. But the color doesn't exsist in Visual studio.net. Can I add this color to the system pallet it...
5
by: Klaas Seelen | last post by:
Hi, On a webpage I have three comboboxes. The second and the third are dynamically filled dependent from the choice in the first combobox. Each choice in all three boxes consist of a numeric...
0
by: Mark | last post by:
Hi, I am playing around with creating custom server controls for use within a ASP.NET page. I am creating a contact form and have the following question I am capturing the form postback data...
21
by: One Handed Man \( OHM - Terry Burns \) | last post by:
When using a custom control. In order to check and see if values have changed one has to implement the IPostBackDataCollection interface. The values returned for the control seem to be simply a...
0
by: Mark | last post by:
Hi, I am playing around with creating custom server controls for use within a ASP.NET page. I am creating a contact form and have the following question I am capturing the form postback data...
3
by: Mark R. Dawson | last post by:
Hi all, I am trying to get custom attributes from a property. I can do this if I pass in the name of the property i.e. "Name" to the reflection methods, but if I pass in set_Name which is what...
1
by: amdacc | last post by:
Hi I have a checkbox list that I am trying to work through and get the label values for each checked item. I want the values all into one string. This is what I have function...
1
by: Pathik | last post by:
Hi All, I have to get the values of "reading" and "value" elements of context Person/Category/Group/ser.These values must be on condition based,means I have to get the values of "reading" and...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
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...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.