Brian - thanks for the quick reply. so here's what i've got. i
certainly don't expect you to fix this for me, but off the top of yer
head, any ideas would be welcome:
<script src="/js/xui.bb.js" type="text/javascript"
charset="utf-8"></script>
<script type="text/javascript">
x$(window).load(function(e){
init_links();
});
function init_links(){
x$('a').click(function(e) {
load_page( e.srcElement.href );
return false; // stops browser from actually browsing
to the new page
});
}
function load_page( url ) {
// alert( 'loading: ' + url ); // debug
x$( "#content" ).xhr( url ).addClass( "current" );
init_links();
}
</script>
essentially what i'm trying to do is to easily take a large mobile
project, and make all a tags load ajaxian-style into a div with
id=content. lots of reasons why we're doing it this way, but in order
to save ourselves some time, i was hoping the above would work - ie
binding an ajax load function to the a tag's click event. it seems to
react nicely in webkit, but not the BlackBerry browser it's designed
for (nor FFX or IE)
any ideas on binding all a tags to a ajax-load-to-div using xui would
be incredibly helpful.
THANKS again, graham