jquery/jquery-mobile — Issue #3445: Uncaught TypeError: Cannot call method 'form' of undefined
Author: manishtpatel
Created: 2012-01-17 18:13:35+00:00
State: open

I have following markup

- A page with listview
-List view contains multiple items(links)
-Clicking on items going to fetch new page
-Item page includes inline javascript within content
-Item page has back link on header using data-rel="back"

following gives an error
- Open page, then click on one of the item in listview, it will open new page though ajax.
- Click on back button
- back to listview
- click on any item now it will throw an error

error
Uncaught TypeError: Cannot call method 'form' of undefined

Temp Solution
Removing inline script from data-role="content" and putting it out side of data-role="page" should resolve the error

Let me if i can explain any further