Changing page after successful AJAX call

Changing page after successful AJAX call

I have two offline apps - let's call them A and B. Both using same/latest version of jquery and jquerymobile

When A log's on, jquery does an ajax call, if credentials are good, the page changes to the main menu.
When B log's on, jquery does an ajax call, if credentials are good, the page does NOT go to the main menu.

Both have <a href='mainmenu' id='login'> HTML tags.
Both have $("#login").click( LoginFunction )
Both return true inside the success call of ajax.
Both return false inside the error call of ajax.
Both have return outside the call to ajax.

My understanding is in jqmobile, a return of true will ensure the <a href> link is followed. Anything other than a true return means the link is not followed.

Any suggestions/ideas on what I am doing in one, but not in the other?