Note that there are some explanatory texts on larger screens.

plurals
  1. POduplicate windows opening using HTTP client on Titanium Appcelerator
    primarykey
    data
    text
    <p>In my current app for Android I have an HTTP client that sends a request to a website and the JSON response is turned into a tableview. I have noticed that when I open the result window and move scroll across the table I actually have 2 identical tables one on top of the other. Another problem I've noticed is that when I press the android:back button the window closes and i get a black empty window, inorder to get the original main view I need to hit the back button again. added here are <a href="http://pastie.org/private/vowwmtmz0efcocqvp3so7a" rel="nofollow">the main window code</a> and the <a href="http://pastie.org/private/sbzkqzn9s32y3uvzjnfg" rel="nofollow">search result page</a>. thanks a bunch!</p> <p>--the same question is posted on [appcelerator Q&amp;A]</p> <p>ok, the flow is like this: 1. the main window (win 1) opens, it has a search bar and 2 buttons. each button opens a different version of the same window (win 2).</p> <ol> <li>win 2 has a search bar and a few buttons.</li> </ol> <p>if the search bar on any window (1 or 2) is filled and executed, a third window (win 3) is opened.</p> <ol> <li>in this window, an HTTP client (xhr) sends the proper request and the response text (JSON) is parsed and then fills a table view (tv).</li> </ol> <p>the table view appears twice one on-top of the other and when i add an event that alerts the window it's in i get "you are in search window" alert box twice.</p> <p>when i click the back button, i get back an empty white window. if i click back button one more time i go back to the original window i came from.</p> <p>--update: i re-wrote the whole thing but still nothing happens.</p> <p>----update: I added a flag to prevent the "onload" function to be called twice but this is just a hack. I'm looking for a more fundamental answer</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload