homepage Welcome to WebmasterWorld Guest from 54.211.235.255
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
How to add remember function when users clicks Close area?
toplisek




msg:4381102
 2:26 pm on Oct 29, 2011 (gmt 0)

How to add remember function when users clicks Close area?
This is actually Closable Tabs section.

I have tested Tabs system inside Jquery framework.
Issue is that I like to remember users action as script will close Tab but return to the tab page it will be shown the same result. Is this possible to avoid?

Need help.

[github.com...]

I like to follow session based Tab and remember action or view.Yahoo has nice solution to open Tabs but it is other framework...

 

enigma1




msg:4381326
 11:11 am on Oct 30, 2011 (gmt 0)

jquery is no different. Use a cookie, ajax and store the result of the tabs somewhere (database, file etc).
[api.jquery.com...]

Once he does the self.remove(index) you could issue the command with the ids or attributes to identify the tab link to close and issue the ajax to store it.

Then when the page is reloaded you restore the same tabs. For example after the tabs are loaded you could call the close click tab event according to what was stored on the server.

If you stored the closed tabs with each session the settings will apply for the same user only.

toplisek




msg:4381339
 1:14 pm on Oct 30, 2011 (gmt 0)

will jQuery JavaScript Library v1.4.4 support this options as I understand this will be from version JQuery 1.5.?

URL:
[api.jquery.com...]

enigma1




msg:4381341
 1:27 pm on Oct 30, 2011 (gmt 0)

The $.ajax function is there since version 1.0. In 1.5 they added another wrapper.

And I don't think the plugin will have any issues with the different versions is simple enough.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved