Ok, managed to get it working with:L

                                
jQuery('#conference_order_box<%conference_id%>').cluetip( {
                                                                                
sticky: true, closePosition: 'title', arrows: true,
                                                                                
waitImage: true,
                                                                            
ajaxProcess:      function(data) {
                                                                                
                return data;
                                                                            }

                                                                                
});
Basically, this stops the data.replace() function being called (which
was removing the <script> stuff)

Cheers

Andy


On Dec 19, 2:17 pm, youradds <andy.ne...@gmail.com> wrote:
> Hi,
>
> I'm trying to make a shopping cart, and one of the features I'm trying
> to do - is make it so when someone hovers over a "add to cart" button.
> it loads a new mini-box (using the cluetip plugin) ... with the
> "amount" of this item they want to add.
>
> Now, this works:
>
>                                 
> jQuery('#conference_order_box<%conference_id%>').cluetip( {
>                                                                               
>   sticky: true, closePosition: 'title', arrows: true
>                                                                               
>   }
>                                                                               
>   });
>
> ...but I want to run some scripts on it:
>
> <form name="cart_update" action="v.f" method="post">
>
>                         <input type="hidden" name="do" value="basket" />
>                         <input type="hidden" name="action" value="add" />
>                         <input type="hidden" name="id" 
> value="<%conference_id%>" />
>                         <input type="hidden" name="type" value="<%type%>" />
>
>                         <select name="number_tickets" id="number_tickets"
> onchange="do_cart_update(this.value);">
>                                 <option value="1">1</option>
>                                 <option value="2">2</option>
>                                 <option value="3">3</option>
>                                 <option value="4">4</option>
>                         </select>
>                         <span id="the_price_details"></div>
>                         <div id="doing_update"><img 
> src="/static/indicator.gif" /></span>
> </form>
>
> <script>
>         alert("BLA");
>         jQuery('#the_price_details').hide();
>         jQuery('#doing_update').hide();
>
> </script>
>
> HRETE
>
> I've done some tests, and it seems like the scirpt doesn't ever get
> put into the page (maybe cluetip filters it out?)
>
> I've tested running the page by simply entering into the URL bar (i.e
> not going through cluetip), and the JS code I've got is fine, so it
> has to be something to do with cluetip.
>
> Anyone got any ideas?
>
> TIA!
>
> Andy

Reply via email to