Did you try any debugging? I'm not sure what you have in this
environment, sorry. Can you view the Javascript console? Can you add
some logging to the console, to see if your callback is even called? Did
you try it in desktop IE where you might have more debugging tools?
You are using the old page events. I would try the new 1.4+ pagecontainer events.
They are a pain, but it is good to change now because the old events
are going away in the future.
Did you try appending instead of prepending?
why wouldn't you
hard code if (external panel - accessible from all
pages)
He'd have to repeat the panel
HTML in every document, in case of reload. Well, if it were a
website, or if he ever uses d
ata-ajax="false'
.
But,
since it is PhoneGap, there is no good reason to repeat in every
document. Because...
- User cannot
"reload" the document (no browser chrome with
which to do that)
- User cannot type-in a
document URL (again, no browser chrome)
- User does not see URLs, there
are no useful URLs to email to somebody, for another site to
link-to, etc.
So, in PhoneGap
projects, (as well as Rhodes) I only include scripts and styles
in <head>
of the start/home
page. Every other page gets completely blank
<head>
. (Even
<title>
isn't really useful...)
On a website, you can
have the server check to see if it is an Ajax request or not. If
not, use blank <head>
and save from
needlessly sending redundant HTML that will just be ignored. You
do not have that luxury in PhoneGap, it is just loading from a filesystem.