I'm using livequery to achieve the following:

$('.stock a')
                                .livequery('click', function(event) {
                                    var thisTarget = $(this).attr('href');
                                    $.ajax({
                                        url:
'/user/ajax/unsubscribe.do?subscription=<bean:write name="mainDiv"
/>markadsvakt&interest='+thisTarget,
                                        type: 'GET',
                                        dataType: 'xml',
                                        timeout: 100000,
                                        error: function(){
                                            alert('Error loading XML
document');
                                        },
                                        success: function(xml){
                                            $("#stockspicked").empty();

$(xml).find('interest').each(function(){
                                                var item_text =
$(this).text();
                                                    $('<div
class="stock"></div>')
                                                    .html('<a
href="'+item_text+'"><img
src="/styles/sites/extras/mobile/tickers/'+item_text+'.png"><br/>Afskrá
vöktun á '+item_text+'</a>')

.appendTo('#stockspicked');
                                            });
                                        $(".stock").fadeIn("slow");
                                        }
                                    });
                                    return false;

                                });

This works fine in Safari and Firefox, but in IE7 the ajax portion is
skipped, in fact in IE it only runs the first directive, whatever that is.

Any clues?

Toti

Reply via email to