You could also create an array variable outside of your tabs setup. Then add
to that. Since it's external from the tabs code, every piece of JS would be
able to recognize it.

<script>
        var arrProdID = [];
        // tabs code here
</script>

-----Original Message-----
From: Will Tomlinson [mailto:w...@wtomlinson.com] 
Sent: Monday, June 01, 2009 9:44 PM
To: cf-talk
Subject: jQuery Guru guidance needed....


I'm using jQuery Tabs to rebuild my ancient product admin. Trying to slicken
it up a bit. As a product is added, I need the tab .cfm's, and the parent to
pass around the prod ID variable to each other. 

The tabs I'm using: http://docs.jquery.com/UI/API/1.7/Tabs

I have a parent page that contains the tabs (disabling 2nd-5th tab until a
product is added:

tabs.cfm

<script>
$(document).ready(function() {
        $("#productAdmin").tabs({ disabled: [1, 2, 3, 4] });

});
</script>

<div id="productAdmin">
<ul>
 <li><a href="product_add.cfm"><span>Product Info</span></a></li>  <li><a
href="productBuilder-Categories.cfm"><span>Categories</span></a></li>
 <li><a href="productBuilder-Skus.cfm"><span>SKUS</span></a></li>
 <li><a href="productBuilder-SuggestedProducts.cfm"><span>Suggested
Products</span></a></li>  <li><a
href="productBuilder-prodImage.cfm"><span>Images</span></a></li>
</ul> 

If someone is using the product info tab, and they add a product, how could
I let the parent, tabs.cfm know, and enable the other tabs at that point. 

Thanks,
Will 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323071
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to