Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hide/show region, keep value between pages ?

Yann39Apr 30 2010 — edited Apr 30 2010
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.
This post has been answered by fac586 on Apr 30 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2010
Added on Apr 30 2010
5 comments
855 views