<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
$('#btn-fb-share').click(function() {
$('#btn-fb-share').attr("disabled", "disabled");
window.open(url,"Mywindow","location=yes,menubar=yes");
});
Run Code Online (Sandbox Code Playgroud)
在我的 Ipad 上(我在主屏幕上创建了网站的快捷方式),该链接不会在新窗口 (Safari) 中打开。我该如何解决这个问题?在我的 PC 上,链接在新窗口中正确打开。
编辑:我会尝试更清楚地解释它。
发生了什么:我的 Web 应用程序在与我的应用程序相同的窗口中打开 url。
应该发生的情况是:Facebook 页面在 safari 中的新选项卡中打开。(如果我通过 safari 而不是通过我的网络应用程序打开我的网站,我可以证明这一点。)
我希望你现在能看出区别。我需要在 Safari 中的新选项卡中打开我的链接。但现在它一直在我的窗口中打开它,在那里我没有“返回按钮”。
两张图片的唯一区别是。第一张图片是保存在我的主屏幕上的网站。第二张图是在Safari中直接打开的网站。
我有一个画廊,我希望用户用Colorbox打开图片.(然后发送带有邮件的图片或打印它等)
本网站必须动态编程,因为它也必须在IPad上工作.
现在到实际问题:
此div应显示在Colorbox中:
<div style = "display:none">
<div id="inline" style="height:100%; width:auto">
<img src="#" id="inline_img" style="max-height:90%; max-width:100%"/>
<div id="buttons">
<button > test </button>
<button > test1 </button>
<button > test2 </button>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
这是Javascripit函数,其中div在颜色框中打开.
$(function(){
//$('.element a').colorbox({});
$('.element a').click(function(){
// Using a selector:
$('#inline_img').attr('src',$(this).find("img").attr('src'));
$.fn.colorbox({
inline:true,
href:"#inline",
maxHeight:'90%',
maxWidth:'90%'
});
return false;
});
$('.element a').colorbox({
onComplete : function() {
$(this).colorbox.resize();
}
});
Run Code Online (Sandbox Code Playgroud)
但Colorbox总是比Picture本身大得多.Colorbox必须与图像一样大,并且位于屏幕中央.
首先,这是我在stackoverflow中的第一篇文章.我经常使用这一方,我发现了我需要的几乎所有东西.
现在问我的问题.我搜索了这个问题,但我没有找到任何东西.我想写一个应用程序,我可以点击一个按钮,制作一个人的照片,并将该照片与数据库中的用户链接.是否可以用WIA控制相机?我需要一台特殊的相机吗?
如果有人能为WIA的一般用途发布一个好的教程,我将不胜感激.
首先,我必须明确我想要完成的任务,它将是一个应用程序,我有4个全景图,每个全景图上的第一页是不同的.但最后3页是完全相同的.
无论如何有可能不在每个全景中定义这3个页面吗?我可以在XAML文件中定义内容并将其加载到全景图中吗?所以,如果我有变化,我不必在4个不同的页面上制作它们......
我希望你理解我的问题.
谢谢.
我的网站上的Facebook登录出现问题。下面的代码是我的FB连接代码。代码符号的注释部分使我进入了我的网站。我的问题是,当我“重新激活”此代码时,每次访问该页面时,它都会使我无法登录。但是我想在用户单击“使用Facebook登录”按钮时登录。当我单击Facebook登录按钮时,将显示一个弹出窗口,没有任何反应。
单击FB-Connect按钮时,可以通过某种方式调用JS函数吗?
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'xxxxxxxxxxxxxxxxxx', // App ID
status : true,
cookie : true,
xfbml : true,
oauth : true,
});
var login = false;
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
console.log('connected');
login=true;
var uid = response.authResponse.userID;
//this part of the code below redircts me to the part, where i login to my system.
/*var accessToken = response.authResponse.accessToken;
$.ajax({
type: 'POST',
url: '/?eID=login',
data: $(this).serialize(),
success: function(msg) {
alert("LOGIN");
$('#content').load('/live-session/tickets/');
}
});*/
}});
Run Code Online (Sandbox Code Playgroud) 我尝试用Json.Net将我的XML String转换为Json
在Json.Net 文档中,它说我必须使用此代码将xml转换为json:
string xml = @"<person id='1'>
<name>Alan</name>
<url>http://www.google.com</url>
<role>Admin1</role>
</person>";
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
string json = JsonConvert.SerializeXmlNode(doc);
Run Code Online (Sandbox Code Playgroud)
但在我的Windows 8 App中,我找不到XmlDocument类既没有SerializeXmlNode.
我尝试了这些类和函数:
var result = await response.Content.ReadAsStringAsync();
XDocument xdoc = new XDocument();
xdoc = XDocument.Load(result);
// Parse the JSON Radio data
string jsonText = JsonConvert.SerializeXNode(xdoc);
var radios = JsonArray.Parse(result);
Run Code Online (Sandbox Code Playgroud)
但是我收到以下错误:
An exception of type 'System.ArgumentException' occurred in mscorlib.dll but was not handled in user code
Additional information: Illegal characters in path.
If there is …
Run Code Online (Sandbox Code Playgroud)