JQuery tabs: cookie and "selected" wont work together

I am using jQuery tabs with six tabs to show a bunch of reports, with a few reports on each tab. I am using the jQuery cookie plugin to remember the tab - this works ok. Page submit is slow because all reports are refreshed unconditionally each time a submit is called. I want to add a condition so that only the report on the currently selected tab is refreshed. Ideally, I want to maintain the tab# in a hidden item and create a condition for each report (or region) to only display when it's tab is selected.
Jari's blog article shows how to assign the tab number to a page item
http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:195800346705831
But using "selected" seems to break the cookie: after changing the tab (and correctly updating the page item), the next submit changes the tab to the prior one selected. I cannot get both to work at once. I never want to reset the selected tab from the one in the cookie ; I only want to save the selected tab#. Users can only change tabs by clicking on a tab. I am not much of a javascript developer so it is likely to be something trivial.
This is my page header javascript - you can see where I've added a chunk of Jari's code.
<script type="text/javascript">
//<![CDATA[  
   $(function(){ 
   $tabs = $("#PANE_1_T");
   $tabs.tabs({
       selected:'&P17000_SELECTED_TAB.',
       select:function(e,u){
        var a=new htmldb_Get(null,&APP_ID.,"APPLICATION_PROCESS=DUMMY",&APP_PAGE_ID.)
        a.add("P17000_SELECTED_TAB",u.index);
        var r=a.get();
    $tabs.tabs({ cookie: { expires: 1}});     
    $tabs.parents('td').eq(0).removeAttr('width');
    $tabs.show();
//]]>
</script>(Apex 3.2.1)
What am I doing wrong?
Any help appreciated!
Mark Teehan, Singapore

Hi,
If you submit/reload page you can not set condition that only one report is "refreshed".
When you submit and page reloads again all regions are loaded what you have on page.
Of course you can set condition that all regions are not shown, but as I understand you are not looking for that.
In Apex 3.2, you could call $a_report function to partial page refresh only one report.
Or use various other JavaScript and Ajax method to refresh only one report.
And as I understand, you have same info in cookie and item if you could use those in same time. Why not just use that item? Then you do not need load cookie plugin.
You could change code
   $tabs.tabs({
       selected:"&P17000_SELECTED_TAB.",
       select:function(e,u){
        var a=new htmldb_Get(null, &APP_ID., "APPLICATION_PROCESS=DUMMY", &APP_PAGE_ID.)
        a.add("P17000_SELECTED_TAB", u.index);
        var r=a.get();
       $s("P17000_SELECTED_TAB", u.index);
     });To set item value also in HTML document so you can access it easily using JavaScript.
Below part is change and set item value in HTML document
$s("P17000_SELECTED_TAB", u.index);Regards,
Jari

Similar Messages

  • Bb id and password wont work together on device

    when i try to sign into my bbm it says my password is incorrect and have also changed it but still no good  = now it locks me out for 15 mins, so cant download apps etc, when i try to edit id in devices cant save any changes as it wont accept password help please........

    Hello,
    I suppose you have upgraded to BBM7.
    there are problems with a number of users with BBM7 so i recommend downgrading to BBM 6.2 via rroyy.com/ota from your BlackBerry Browser
    If you have an answer to your question then please click “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit.
    BB 8700 -> Bold 9000 -> Curve 8520 -> Bold 9700 -> Curve 9320 -> Bold 9900 -> BlackBerry Z10 + PlayBook 64 GB Wi-Fi

  • I cant get the font to work on a picture in Photoshop, I have watched at least 12 how to videos and it wont work, Help

    I cant get the font to work on a picture in Photoshop, I have watched at least 12 how to videos and it wont work, Help

    Could you capture your screen and post it. Have the layers panel open and any layers that are collapsed, expanded. We will need to see the entire screen, as some information in the tab is important as well.

  • I plugged in my iphone 5S and locked the screen 20 minutes later I tried to open the phone it will not turn on i treid reset and that wont work I have a black screen

    i plugged in my iphone 5S and locked the screen 20 minutes later I tried to open the phone it will not turn on i treid reset and that wont work I have a black screen,
    I tried just holding down the power key...NOTHING

    Do a reset, hold down the home/sleep button together until you see the apple logo and then release.

  • Get info tab for volume setting wont work IN ITUNES?

    GET INFO TAB FOR VOLME SETTING WONT WORK IN ITUNES

    well then i guess its ok lol i cant see it tho and that's y i wondered

  • I have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    i have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    Greetings,
    What happens when you drag it?
    Make sure the drive you are moving the files to has enough available space to receive the file:
    Click on the movie file and go to File >  Get Info and note the "size"
    Check the drive to which you are moving the file to make sure it has enough available space: https://idisk.me.com/madisonfile-Public/web/finder-drive-available-space-and-for mat.html
    Also note the format of the drive you are copying too.  If it is not Mac OS Extended or FAT (not recommended unless you are taking it to a windows computer) then that may be the issue.
    Hope that helps.

  • When i plug my ipod in, it shows up on desktop as a hard drive, but wont show up on itunes. All my music/videos everything has been wiped off somehow, restored it and still wont work! Please help!

    When i plug my ipod in, it shows up on desktop as a hard drive, but wont show up on itunes. All my music/videos everything has been wiped off somehow, restored it and still wont work! Please help!

    - Have you tried the troubleshooting here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
    - You can try disabling the camer notification
    http://support.apple.com/kb/TS1500
    - Do you have any camera, scanner or similar software installed?  That may prevent iTunes from seeing the iPod.

  • I just bought an android phone and the previous owner of the number had an iphone and imessage wont work, how do I fix that?

    I just bought an android phone and the previous owner of the number had an iphone and imessage wont work, how do I fix that?
    I recently bought a Samsung Galaxy S4, and my wife has an iphone. We found out that imessage wont come through from her. After we went to the AT&T helpdesk they said that she could turn off imessage on her phone and that I would get texts on my S4. But then so would everyone else who has an iphone. That  won't work for everyone in my company that has an iphone. So what I am wondering is- since I recently got this phone, should I get a new number? Or should I contact ATT or contact Apple to try and get this number de-activated? I'm thinking I'll never get into the icloud account that this number is attached to, but maybe someone has some advice on that?
    I just sincerely want imessage to work on this phone and I'm willing to take the steps to do that.
    Please help

    Either one of the two should work - getting new number from carrier or contacting Apple to revoke phone number from imessage system.
    That is if your problem is described correctly.

  • I have windows 7 and EasyLink wont work neither will 192.168.1.1

    I have windows 7 and EasyLink wont work. Now I tried the 192.168.1.1 and even that wont work! I have a WRT54GS and I know it works because when I usee the two laptops connected to it, it works perfectly except when too many users get on my wifi connection then it overloads

    I'd suggest trying a factory reset, that should clear any password that was set and forgotten, as well as any settings that are preventing you from talking to it (like the router address having been set to something other than 192.168.1.1).
    There's usually a recessed reset button on the back that is accessed via an "unrolled" paperclip.  Just press that button and count to about 30, and then wait until the router comes up again and try the 192.168.1.1 address.
    If you have a cable modem, then I'd suggest that you write down the MAC address of the primary computer that was used to configure the router, and then try changing the MAC address on the router to that when you get back in touch with it (via the 192.168.1.1 web GUI).  The factory reset may change the router back to it's original MAC address, which may prevent your cable modem from being happy.

  • I have an Imac that is a year and a half old and the front of it just fell off  and it wont work now. Has this ever happened to  anyone?

    I have an Imac that is a year and a half old and the front of it just fell off  and it wont work now. Has this ever happened to  anyone?

    If you have Apple care and the problem occured without misuse on your part ... it can be replaced without charge.

  • I bought a redeem card and it wont work is says that the gift certificate or prepaid card you entered has not been properly activated

    I bought a redeem card and it wont work is says that the gift certificate or prepaid card you entered has not been properly activated

    You will need to contact the iTunes Store.

  • Keyboard and mouse wont work unless booted in safe mode.

    So my keyboard and mouse wont work at all when i start up normally, so i coudnt even log on, then i tried safe mode and i was able to use the mouse and keyboard and log in, then when i loged in i got some messages:
    *+System extention cannot be used+*
    +The system extention "/system/library/extentions/IOUSBFamily.Kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the products vendor for an update.+
    And 2 others: MicrosoftMouse.kext and msdosfs.kext
    Im pretty sure how i got this problem, i was using bootcamp and i got this program called MacDrive (bad Idea)and it corrupted my HD or something so i had to use disk warrior to fix it. I also used disk utility in safe mode but there were no errors it said.
    and this is probably a hardware problem but i cant use DVD's anymore, my drive will only read CD's now, must be broken....
    so ya, i dunno what to do exept get my drive fixed and to a backup and reinstall OS...

    Hi
    There are no many options which could solve this problem.
    It can be a hardware problem or software related issue.
    Can you use the internal keyboard within the BIOS?
    Check this.
    If this would not be possible, I assume the hardware is faulty.
    Additionally I recommend testing the keyboard and touchpad using the factory settings.
    Recover the notebook and check if the keyboard would functions. Otherwise you will need an helps from an notebook technician in order to replace the keyboard and touchpad

  • Trying to make sense on how and if RBAC and MOAC could work together

    Hi All,
    We upgraded from 11.5.9 to R12.1.1 in Nov-2009.
    Since the time we have upgraded to R12, we are trying to make sense as to how and if RBAC and MOAC could work together.
    The use case is as below:
    *11i Days*
    US Accountant - accesses ‘AR superuser US’
    Canada Accountant - accesses ‘AR superuser Canada’
    France Accountant - accesses ‘AR superuser France’
    Spain Accountant - accesses ‘AR superuser Spain’
    North America Financial controller - Switches between 'AR superuser US' and 'AR superuser Canada'
    European Financial controller - Switches between 'AR superuser France' and 'AR superuser Spain'
    CFO - Switches amongst 'AR superuser US','AR superuser Canada', 'AR superuser France' and 'AR superuser Spain'
    Now in R12- (Wow there is MOAC!)
    US Accountant - accesses ‘AR superuser US’
    Canada Accountant - accesses ‘AR superuser Canada’
    France Accountant - accesses ‘AR superuser France’
    Spain Accountant - accesses ‘AR superuser Spain’
    North America Financial controller - accesses 'AR superuser North America'
    European Financial controller - accesses 'AR superuser Europe'
    CFO - accesses 'AR superuser Global'
    With R12 now there are 3 additional responsibilities.
    We have (like most of the other EBS customers) custom responsibilities and so there is maintenance.
    More the responsibilities more the maintenance...More the SOD issues.
    To prevent creating new responsibilities, we could use the ‘MO: Security Profile’ at the user level BUT that would mean that now these users would have access to multiple OUs for all the responsibilities...that is not good.
    What-If: There is only 1 responsibility 'AR SuperUser' and somehow using RBAC, roles are created and assigned to users so that they only have access to specific OUs.
    Apparently, MOAC works based on MO:Security Profile that is something that RBAC cannot control.
    Am I missing something...RBAC seems to be no good?
    In PROD(R12.1.1)- We are expecting that we would end up creating 100+ new responsibilities since we have many shared services users and they all want to benefit from MOAC...Appreciate, if you could please help us understand how we can prevent these 100+ new responsibilities from getting created?
    Thanks
    Rahul Gupta

    Hi Rahul,
    your question is quite interesting. I did a lot in the area of RBAC to understand the background.
    RBAC mainly allows you to
    - group responsibilities
    - build hierarchies
    - manage low level data access (via VPD)
    - Grant permissions (new with R12)
    Unfortunately you can't control profile options via RBAC. Therefore, the MO:Sec Profile has to stay on responsibility level. I was playing with the alternative to put this profile option on user level, but also in this case the number of maintenance steps will stay the same.
    I would like to share a document with you, what's your email (or search my name in linkedin)?
    kr
    Volker Eckardt

  • Flash player 11.5 updated using ie8 and firefox wont work Youtube

    Flash player 11.5 updated using ie8 and firefox wont work Youtube
    Its impossible because after the update i researched and did alot to downgrade and it wont work.
    Only domain administrators can play youtube movies. the other simple users cannot play it they get a black screen please i need some clear professional instructions because its not working Youtube

    How do I fix Windows permission problems with Flash Player?
    http://forums.adobe.com/thread/987370

  • My iWeb Account wont update it says Can't create the file "mwmac_white.png." The disk may be damaged or full, or you may not have sufficient access privileges... This has never happend  I deleted other sources on website and still wont work? Suggestions?

    My iWeb Account wont update it says Can’t create the file “mwmac_white.png.” The disk may be damaged or full, or you may not have sufficient access privileges... This has never happend  I deleted other sources on website and still wont work? Suggestions?

    Welcome to Apple Support Communities.
    This is the image contained in the file causing the problem...
    I certain the original is contained in the Combo updates and on the OS disks.
    As a temporary fix, click on the image above to open it.
    Use Screen capture (Shift+Command+4) and click on the opposite corners of the image.
    It will be saved as a Screen shot 2011-mm-dd at hh:mm.png
    Right click on the filename in Finder and rename it to mwmac_white.png
    I'm not certain, but the file might need to be moved into the Documents directory in the Subdirectory named for the website name you are editing. That's where it is on my system, but I moved a bunch of files when I restored from Time Machine about 18 months ago.
    I also have many copies of mwmac.png, a separate copy one for each web page where the image appears in my website.

Maybe you are looking for

  • Excel spreadsheet won't save as adobe PDF.

    I'm trying to save an excel (2010) speadsheet as an adobe PDF. I keep getting the wait/loading symbol. Never had any trouble in the past doing this. I tried restarting the computer. Didn't help. Any suggestions?  Thanks.

  • How to get the row's size of  ResultSet ?

    i can't find a method to return the record number of a ResultSet. how can i get it without using the next() method and select count(*) from sometable

  • Duplicate Candidate Check in iRecruitment

    Hi, Does irecruitment hold a functionality of duplicate candidate check? for e.g. One of my vendors have already supplied me with a profile "A", another vendor suppiles me with the same profile "A". But I want a check happening at the agency front it

  • Using sql functions (min, max, avg) on varray or table collection

    Hi, I would like to know if there is a way to use sql function or oracle sql function like Min,Max, Avg or percentile_cont on varray or table collection ? Does anyone encountered this type of problem ? Thanks

  • UI:include (facelet) within foreach loop

    Hi I'm trying to do a ui:include of another page within a foreach loop, the path of the page to include comes out of the variable of the foreach loop, but this seems not to be working, is there a workaround? <c:foreach value="#{myBean.services}" var=