I have got a problem with my JavaScript. I am using the code in my PHP to allow me to use ajax and JavaScript at the same time. There is a problem with the keyboard control, I have four blocks of div with each different size. When I have all four block on per row of div, I can be able to move the yellow block to the four blocks using with the keyboard right arrow button while the four div blocks are moving to the left. When I have one of the blocks that are big while I still have four blocks, I can be able to move the yellow block to the four blocks, but I cannot be able to move the four blocks to the left.

var displayrowcount = 6; //is using for to hide other channels
var rowheight = 42;
var rowwidth = 1053; //is using for how much width the row is going to display while hide the other rows
var rowwidth1 = 1303; //is using for how much width the row is going to display while hide the other rows
var totalwidth_current = 0;
var totalwidth_current1 = 0;

Does anyone know how I can move the four block to the left using with the keyboard right arrow button control when I have one of the block that are big??

If you need to see my website link for better understanding, please let me know and I would be happy to send on PM.

Any advice would be much appreciated.

Thanks in advance

06-18-2013, 02:44 AM

mark103

does anyone know how to fix this??

06-18-2013, 07:36 AM

devnull69

Could you create a simplified example on jsfiddle.net or jsbin.com and post its URL?

06-18-2013, 03:43 PM

mark103

Yes sure, can i ask you some questions?

How I can find out what type of code on each of them what they are?

e.g:

PHP Code:

var displayrowcount = 6; //is using for to hide other channels
var rowheight = 42;
var rowwidth = 1053; //is using for how much width the row is going to display while hide the other rows
var rowwidth1 = 1303; //is using for how much width the row is going to display while hide the other rows
var totalwidth_current = 0;
var totalwidth_current1 = 0;

var displayrowcount = 6; //is using for to hide other channels
var rowheight = 42;
var rowwidth = 1053; //is using for how much width the row is going to display while hide the other rows
var rowwidth1 = 1303; //is using for how much width the row is going to display while hide the other rows
var totalwidth_current = 0;
var totalwidth_current1 = 0;