So im trying to apply a script in my site that allows drag and drop …

Simply put , you assign a DIV or Table ID , and create a “Draggable” object for each of those ID’s.

Ie .. A static example would be:

new Draggable(demo);
<div id=”demo”>

You get the point …

Im having a ******* of a time trying to generate these objects on the fly ..

Im working in a CMS type web app , that calls on common template files to draw each “datablock” on the screen. So for the general template that is called on to create the table for these blocks each time , this is what my code look like :
******************************************************************
<xsl:variable name="scriptdivid">
<xsl:value-of select="@title"/>
</xsl:variable>


<script type="text/javascript" language="javascript">
new Draggable(<xsl:value-of select="$scriptdivid" />, {} );
</script>


<table class="datablock" width="100%" cellspacing="0" cellpadding="0" id="{$scriptdivid}">


Although is dosnt work … You can view the source code of the page , and it appears as though it works though ! ie heres a snip from the source :

<script type="text/javascript" language="javascript">
new Draggable(Business, {} );
</script>
<table width="100%" id="Business" class="datablock" cellspacing="0" cellpadding="0">




Can anyone tell me why the hell this dosnt work ?? .. Does the XSL get processed after the Java or something ? … This is drving me nuts ..

Thanks guys

- Cheyne