i developed app with intel html 5 sdk and phonegap
android (android app urel https://play.google.com/store/apps/details?id=com.hybridsoftware.yazilimsozluk) and IOS(IOS app url https://itunes.apple.com/us/app/yazilimsozluk/id893994101?l=tr&ls=1&mt=8) apps work very well but windows phone(windows phone app url:http://www.windowsphone.com/tr-tr/store/app/yazilimsozluk/a6de2f03-f71d-4f27-ba90-d3bf9dd5ccd4) does not work..it does not load data
$(document).ready(function () {
does not work ..i used emulator but it does not work again
in
$(document).ready( i add alert function but it does not work my index.html is below
<!DOCTYPE html><html><head><title>Yazılım Sözlük</title><meta charset="UTF-8"><meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0;" /><link rel="stylesheet" type="text/css" href="/css/phone.css" /><link rel="stylesheet" type="text/css" href="/css/af.ui.css" /><link rel="stylesheet" type="text/css" href="/css/icons.css" /><script type="text/javascript" charset="utf-8" src="/js/appframework.ui.min.js"></script><script type="text/javascript" charset="utf-8" src="/js/af.slidemenu.js"></script><script> function onDeviceReady() { alert('1'); $.ui.launch(); intel.xdk.device.hideSplashScreen(); } document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);</script><script> $.ui.autoLaunch = false; $.ui.backButtonText = "Geri"; $.ui.useInternalRouting = false; //link tıklama sorunu function redirect(url) { alert('2'); window.location = url; }</script><script> $.ui.autoLaunch = false; $.ui.animateHeaders = false; $.ui.splitview = false; /* Required if building app using Intel XDK */ function onDeviceReady() { alert('3'); $.ui.launch(); intel.xdk.device.hideSplashScreen(); } $(document).ready(function () { alert('4'); document.addEventListener("intel.xdk.device.ready", onDeviceReady, false); $.ui.setLeftSideMenuWidth(180); $.ui.setRightSideMenuWidth(180); $.ui.launch(); });</script></head><body><script type="text/javascript" charset="utf-8" src="/js/jquery.js"></script><script type="text/javascript"> $.noConflict(); $(document).ready(function () { alert('5'); $.ajax({ type: "POST", url: "http://mobile.yazilimsozluk.com/home/KonuAnaListe/", data: "SonId=1", success: function (data) { $('#loading').show(); $.each(data,function(i, item){ //alert(item.KullaniciAdi); $("#liste").append('<li id="' + item.KonuId + '">' +'<a href="javascript:void(0)" onclick="redirect(\'konudetail.htm?' + item.KonuId + '\')">' +'<img src="http://yazilimsozluk.com/upload/kucuk/' + item.ProfilResmi + '" style="width:31px;height:31px;float:left;"/>' +'<span style="float:left; margin-left:15px; color:green;">' + item.KullaniciAdi + '</span><br/>' +'<span style="float:left; margin-left:15px; color:#08C;">' + item.KonuAdi.split("_").join("") + '</span>' +'<span class="af-badge" data-ignore-pressed="true" style="background: red;">' + item.OkunmaSayisi + '</span>' +'<div style="clear:both;"></div></a></li>'); $("#liste li:last").fadeIn("slow"); }); $('#loading').hide(); } }); }); function redirect(url) { window.location = url; } function konukategori(type){ jQuery(document).ready(function ($) { $.ajax({ type: "POST", url: "http://mobile.yazilimsozluk.com/home/KonuAnaListe/", data: "type=" + type, success: function (data) { $("#liste").html(''); $('#loading').show(); $.each(data,function(i, item){ //alert(item.KullaniciAdi); $("#liste").append('<li id="' + item.KonuId + '">' +'<a href="javascript:void(0)" onclick="redirect(\'konudetail.htm?' + item.KonuId + '\')">' +'<img src="http://yazilimsozluk.com/upload/kucuk/' + item.ProfilResmi + '" style="width:31px;height:31px;float:left;"/>' +'<span style="float:left; margin-left:15px; color:green;">' + item.KullaniciAdi + '</span><br/>' +'<span style="float:left; margin-left:15px; color:#08C;">' + item.KonuAdi.split("_").join("") + '</span>' +'<span class="af-badge" data-ignore-pressed="true" style="background: red;">' + item.OkunmaSayisi + '</span>' +'<div style="clear:both;"></div></a></li>'); $("#liste li:last").fadeIn("slow"); }); $('#loading').hide(); } }); }); } function KonuDevamGetir(){ jQuery(document).ready(function ($) { $.ajax({ type: "POST", url: "http://mobile.yazilimsozluk.com/home/MoreKonu/", data: "sonID=" + $('#liste li').last().attr('id'), success: function (data) { $('#loading').show(); if(data.sonId != -1){ $.each(data.m, function(i, item){ //alert(item.KullaniciAdi); $("#liste").append('<li id="' + item.KonuId + '">' +'<a href="javascript:void(0)" onclick="redirect(\'konudetail.htm?' + item.KonuId + '\')">' +'<img src="http://yazilimsozluk.com/upload/kucuk/' + item.ProfilResmiAdi + '" style="width:31px;height:31px;float:left;"/>' +'<span style="float:left; margin-left:15px; color:green;">' + item.KullaniciAdi + '</span><br/>' +'<span style="float:left; margin-left:15px; color:#08C;">' + item.KonuAdi.split("_").join("") + '</span>' +'<span class="af-badge" data-ignore-pressed="true" style="background: red;">' + item.OkunmaSayisi + '</span>' +'<div style="clear:both;"></div></a></li>'); $("#liste li:last").fadeIn("slow"); }); }else{ $('#devambtn').hide(); $('#endtext').show(); } $('#loading').hide(); } }); }); }</script><div id="afui"><div style="position:fixed; width:100%;height:100%; background:rgba(0,0,0,0.3); z-index:9999; text-align:center; padding-top:20%; display:none;" id="loading"><img src="imgs/loading-image.gif"/></div><nav><ul class="list"><li class="divider"></li><li><a href="javascript:void(0)" onclick="redirect('index.html')" class="icon home">Anasayfa</a></li><li><a href="javascript:void(0)" onclick="redirect('profile.htm')" class="icon user">Profilim</a></li><li><a href="javascript:void(0)" onclick="redirect('konuac.htm')" class="icon pencil">Konu Aç</a></li><li><a href="javascript:void(0)" class="icon graph" onclick="redirect('istatistik.htm')">İstatistikler</a></li><li><a href="javascript:void(0)" onclick="redirect('kariyer.htm')" class="icon chat">Kariyer</a></li><li><a href="javascript:void(0)" onclick="redirect('etiket.htm')" class="icon tag">Etiketler</a></li><li class="divider"></li><li><a href="javascript:void(0)" onclick="redirect('user.htm')" class="icon star">Giriş Yap</a></li><li><a href="javascript:void(0)" onclick="redirect('kaydol.htm')" class="icon pin">Kaydol</a></li><li class="divider"></li><li><a href="javascript:void(0)" class="icon cloud" onclick="redirect('sponsor.htm')">Sponsorlar</a></li><li class="divider"></li><li><a href="javascript:void(0)" onclick="redirect('konudetail.htm?852')" class="icon chat">Kurallar</a></li></ul></nav><div id="header"><a id='menubadge' onclick='af.ui.toggleSideMenu()' class='menuButton'></a><h1>Yazılım Sözlük</h1></div><div id="content"><div class="panel"><ul class="list" id="liste"></ul><a href="javascript:void(0)" class="button block green" onclick="KonuDevamGetir()" id="devambtn">Daha Fazla Konu</a><div style="width:100%;text-align:center; display:none; margin-top:15px; color:red;" id="endtext">Getirilecek başka konu yok.</div></div></div><div id="navbar"><a class="icon home" href="javascript:void(0)" onclick="konukategori(0)">Genel</a><a class="icon pencil" href="javascript:void(0)" onclick="konukategori(4)">Makale</a><a class="icon lamp" href="javascript:void(0)" onclick="konukategori(5)">Soru Cevap</a><a class="icon star" href="javascript:void(0)" onclick="konukategori(2)">Ilanlar</a></div></div></body></html>