Problems with Live and XMLHTTP
I have created a script that will send form data via XMLHTTP using POST and then update a div with the results. This is working fine as the correct results are displaying in the table, however I am having a few issues with launching some JQuery effects.
The problem I am having is that the effects won't work first time when clicked/hovered over, instead they will work second time around.
Here is the Live code I am using to call the effects after updating the Div:
- $(document).ready(function() {
- $('.Notes').live('hover', function() {
- $(this).tipsy();
- });
-
- $('.panel').live('click', function() {
- var Number=$(this).attr("ID");
- $(this).colorbox({width:"50%", inline:true, href:"#More_Info_"+Number});
- });
- });
Anyone got any ideas?