473,385 Members | 1,337 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,385 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 1512
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.