Jump to content

Force Ajax to fill the content of the admin features tab even if not shown


Recommended Posts

Dear,

 

as you know, when editing a product in PS 1.4.11 you have tabs. The first one is the info tab, next to it come the others. 

I need to retrieve a textarea value which is in the features tab, using jQuery, from the info tab, which I see by default.

 

Now, if I click and reveal the features tab, I can get the value of its fields, if I am back into the info tab.

However, if I do not visit the features tab, I can't access its form fields from the info tab.

 

This should be the Ajax which is loading the fields of a tab only if this is shown at least one time. 

In fact, the DIV of the features tab is with display:none with no content inside, by default. However, if I visit it even only once, the DIV is filled with its content, which stays there even if I leave the tab and go back to the info tab. in this way, I can retrieve the features tab textareas values with jQuery, because they are loaded into the DOM of the page.

 

My question is: how can I force the features tab to load its content, even if this is not shown?

I am sure it can be done, but I can't figure how... 

 

Thanks

Fabio

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...