Bonjour,
j'ai une fonction qui permet de récupérer les positionY et positionX de tout mes div. la fonction retourne un tableau contenant l'ID_DIV, positionY et PositionX
exemple :
var my_array = new Array();
my_array = getLocation('myId1');
document;write(my_array); // AFFICHE (
myId1,266px,120px)
et je passe mon tableau en url
document.location.href='page.php?t='+ my_array ;et ça fonctionne tres bien mais le probleme c'est que quand je passe deux tableau en url , ça fonctionne pas et du coup ça bloque ma page.
voici ma fonction getLocationfunction getLocation(objectID)
{
var thisObject = document.getElementById(objectID);
var x = thisObject.style.left;
var y = thisObject.style.top;
myArray = new Array(objectID,x,y);
return myArray;
}
pouvez m'aider svp car je suis en galere depuis plusieurs jours.
Merci bcp