SSRS からユーザーにレポートを提示するために、iPad 用の小さな WebApp に取り組んでいます。MobiWave のような既存のソリューションがあることは知っていますが、顧客から、彼の環境により適したソリューションを開発するように依頼されました。
だから私の質問は次のとおりです。SSRS のコンテンツを iFrame に読み込んで、ユーザーに表示します。さて、リンクをクリックすると、次のような動作になります。Chrome と Safari Mobile (iPad 上) では、サイトは期待どおりに動作します。同じサイトを webapp として実行すると、リンクが新しいサファリ ウィンドウで開かれます。thisやthisのような多くのソリューションを試しましたが、期待どおりに機能しませんでした。
私のコードは次のとおりです。
<!DOCTYPE html>
<html>
<head>
<title> TEST </title>
<link rel="stylesheet" href="css/jquery.mobile-1.1.1.min.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/jquery.mobile-1.1.1.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<link rel="apple-touch-icon" sizes="72x72" href="images/touch-icon-ipad.png" />
<link rel="apple-touch-startup-image" href="images/startup.png">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
</head>
<body>
<div data-role="page" id="home">
<div data-role="header">
<ul data-role="controlgroup" data-type="horizontal" class="localnav">
<li><a data-role="button" data-rel="back" data-icon="arrow-l">Back</a></li>
<li><a href="./" data-role="button" data-icon="home" data-ajax="false">Home</a></li>
</ul>
</div>
<div id="content" data-role="content">
<iframe src="../ReportServer"></iframe>
</div>
</div>
</body>
</html>
編集
iFrame に読み込まれるコードは次のとおりです。
<html>
<head>
<meta name="Generator" content="Microsoft SQL Server Reporting Services, Version 10.50.1600.1">
<title>localhost/ReportServer - /Reportings</title>
</head>
<body><H1>localhost/ReportServer - /Reportings</H1><hr>
<pre>
<A HREF="http://localhost/ReportServer?&rs%3ACommand=ListChildren">[In übergeordnetes Verzeichnis]</A>
Donnerstag, 13. September 2012 15:16 39033 <A HREF="?%2fReportings%2fReport1&rs:Command=Render">Report1</A>
</pre>
<hr>
Microsoft SQL Server Reporting Services, Version 10.50.1600.1
</body>
</html>