I'm using cluetip to pull a page via ajax and want to display only a certain div from the page (using an ID selector). If I use the defautl ajaxProcess code, it works normally and pulls in the entire page into the cluetip. However, when I modify it to use .find to narrow it down using the ID selector, I get the following error: ret[i].getElementsByTagName is not a function on line 1362 of jquery- latest.js

Here's the code I'm using for ajaxProcess to grab the div by ID:

$("#test2").cluetip({
        sticky: true,
        ajaxProcess: function(data) {
                data = $(data).find("#def1");
                return data;
        }
});

Here's a test page with the first link using the standard ajaxProcess code and the second using mine:
http://hostorlando.com/test/cluetip.html

I have a feeling I'm missing something obvious but I've banged my head against it for a while and haven't made any progress. Any suggestions much appreciated.

--
Chris Scott
Adaptive Hosting Solutions
http://adaptivehostingsolutions.com/




Reply via email to