Hi,
I'm using APEX 3.2.1 with Oracle 10g on Windows XP Pro SP3.
I have 2 menus (regions) who can be hidden or shown by clicking on an image (like in some IDE). The following javascript is called on the "onClick" event :
function visibilite(region,image) {
if (region.style.display == "none")
region.style.display = "" ;
else
region.style.display = "none" ;
if (image.src.indexOf('gauche.png',1) == -1)
image.src = image.src.replace('droite.png','gauche.png');
else
image.src = image.src.replace('gauche.png','droite.png');
}
It works perfectly, but when I navigate to an other page, the menus are obviously shown by default...
So I just want to keep the value from the previous page to show or hide my menus in the current page.
I can add page item in all pages and assign value using the url, but it seems not optimized as I will have a lot of pages (>100).
I can use an application item too, but I tried and I can not assign a value from javascript, and I don't know if it's a good solution as it will force me to call the javascript function just after the menu will be shown, to quickly hide it.
does anyone think of another solution ?
Thanks.
Yann.