The jquery.tabs.js file uses the jQuery.load function to load content
from a file. The problem is that this function will remove all scripts
from the file because it can't handle them.

The only function that will allow this is the jQuery.ajax function you
can see the part that would allow this here...

Check out http://docs.jquery.com/Ajax/jQuery.ajax#options
Scroll down to "dataType" and look at the "html" option.

So using the current tabs that jQuery provides there isn't a way to
pass the scripts with the file.

What you would have to do is restructure the javascript to all be
included in the main file and call function on the callback function
or something along those lines.

Sorry can't help more.

- ab
applecorestudios.com

On Aug 12, 9:37 pm, lionel28 <lmarte...@haitiwebs.net> wrote:
> Hi,
>
> I am using jQuery Tabs to make an ajax call for each tab when clicked.
>
> The ajax that displays is like inettuts. 3 or 4 columns of widgets that can
> be dragged and dropped.
> The problem that I am having, when I put the html of the result directly in
> the main page, it works as designed.
>
> When I click on a tab, it displays the page, but all the jquery functions in
> that ajax page are gone and I cannot sort, drag and drop anything.
>
> I suspect that the ajax page is not reading the javascripts in the head,
> which are on main page. Unfortunately I can't remove them to include them in
> ajax pages dynamically because I am also using them for other functions in
> main page.
>
> Is there a way to make those ajax pages read the javascripts on that main
> page?
>
> Thank you.
> --
> View this message in 
> context:http://www.nabble.com/Drag-and-Drop-in-Tabs-tp24945280s27240p24945280...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to