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!

Delete Cookie using App_Process and Javascript

skahlertMar 4 2011 — edited Mar 4 2011
Dear Apex experts!

I have tried all day long and I figure it is finally time to ask you!

I am using jquery tabs with the jquery cookie option enabled.
It works fine but since I have many pages I want to delete the cookie when changing to another page.
This is due to the fact that if I open tab-3 on page 1 and move to page-2 afterwards, tab-3 on page two will be the selected, whereas it should be tab-0.

My underlying idea is that the cookie needs to be created from scratch when switching pages.

Hence I created an application process:
Begin
HTP.p ('<script type="text/javascript">');
HTP.p ('$.cookie(''tabID Cookie'', null);');
HTP.p ('</script>');

End;
and set the condition to request equals "dc".

Since I am using list menus (pull down menu), the request value of these list items is set to "dc" as well.
I know that the application process is fired since I tested it with an alert message.

Nevertheless, the cookie is not deleted!

Do you have any reommendations for me???

Many thanks in advance!

Brgds,

Seb
This post has been answered by jariola on Mar 4 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2011
Added on Mar 4 2011
9 comments
496 views