Welcome to WebmasterWorld Guest from 23.22.79.235

Forum Moderators: open

Message Too Old, No Replies

How to add remember function when users clicks Close area?

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

WebmasterWorld Senior Member 5+ Year Member



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...
11:11 am on Oct 30, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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.
1:14 pm on Oct 30, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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...]
1:27 pm on Oct 30, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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.