Headers already sent by jQuery Mobile?

Headers already sent by jQuery Mobile?

Hi Guys,

Just starting to play with jQuery and jQuery mobile to be exact. I've written a login script in PHP that once the user has successfully logged in runs the following:

header("Location: index.php");

When that runs though, I get the following error:

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/app/login.php:22) in /Applications/MAMP/htdocs/app/login.php on line 138

I'm thinking that jQuery Mobile is posting something in the back end that's causing headers to be sent.

Any ideas?

Thanks!