I have been able to get it to change link focus, but it won't target just the links I want it to and stop an the last one for going down and on the first for going up.
Here is the latest version of the code, it is not working right now because I am trying to add in these features:
<!DOCTYPE...
Hi Dan,
I di dnot copy the full pages code, just the middle. I also had the functions in the loop so I can use the ++ and --.
If you have this working can you put it up?
am working on a script that will focus on the first link in a set when the page loads, will go down one link when you trigger one function and stop at the end and go up one link when you trigger another function and stop at the top.
I have it sort of working but it is not 100%
<style>...
They would stop. So the function would do nothing. I just got this working, here is the code:
<html>
<script>
filter = ""
function radio(down)
{
if(document.otherForm) {
var x = document.otherForm.other;
var index = -1;
for (var i = 0; i < x.length; i++)
{...
It should have 2 functions that shoud behave like this:
down(){
if(no radio button are checked){
check the first one
}
else {
the next radio button is checked (they all have the same name so only one can be checked) this will stop at the last one
}
}
up(){
if(no radio button are...
I thought this would take 5 min, but 2 hours later, I am looking for help.
I have an unknown amount of radio buttons, I need to have them selected via 2 functions.
One selects them going down (++) the other going up (--). None can be selected until an action is taken. The fist one is...
Hi,
I was able to figure this out, sorry for the delay in response, for some reason email from here gets caught in my spam filter:
// Set initial variables
var focus={ x:0, y:0 , table : null}
// Function that adds the focus to each
function focusOn(focus)
{...
I thought I was pretty explicit in my descriptions, but I am sorry if I was not. It is always a little tricky explaining things in email. Forums need a white board tool ;)
The scenario you mentioned is something that would fall into my nice to haves for each function. It would be great if...
It won't be quite as complex. I know there will be a max of 4 items in a row, but the next row could have 1 - 4 items in it.
| item | item | item | item |
| item | item |
So it gets trickie. If I am on row one item 1 and hit the down arow, I will go to row 2 item 1.
But since you will...
I will always know the first item, so the starting point is easy, but the tricky thing with doing the + 1 is I may not know how many items there are to define the next row. Also the up and down functions are not paning out.
I am making an application that allows users to use the key board to interface with it. I am using YUI for the key listening and have almost all of my functions working. The one that seems impossible right now is I have a search result page where links to items are in a table. I need...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.