Hello Community,first, sorry for my bad englisch...
Now to the problem:
i have a index.html like this:
<body>
<head>
<script src="jquery.js"></script>
<script>
$(document).ready(function(e) {
myPublicFunction = function(){
alert("hallo");
};
$(document).bind('complete', function(){
alert("call");
var contact = phoneGap.contacts.create();
contact.displayName = "Plumber";
contact.nickname = "Plumber"; //specify both to support all devices
var name = new ContactName();
name.givenName = "Aaabc FUNKTIONIERT";
name.familyName = "Aaabc";
// save
contact.save(onSaveSuccess,onSaveError);
});
});
<script>
</head>
<html>
<iframe src="datei.php" id="iframe" height="100%" width="100%"></iframe>
</html>
</body>
and the datei.php with that javascript code:
$(document).ready(function(e) {
parent.parent.myPublicFunction();
window.parent.parent.$(window.parent.document).trigger('complete');
});
both of the function works fine in google chrome and in the mobile browser (android), but it doesn't work in phonegap...
can somebody help me please...
big thx,
Manuel