Commit 9646e810504df1b160c472b8c702ec043837ec2b

Authored by Amrita Vishnoi
1 parent 080282d5

trying to figure out to post an external page

150-DOCUMENTATION/Audit/Estimation/~$Ebix-Estimation Model_Health_Dev-Product Sprint 34(17-April-17).xlsx 0 → 100644
No preview for this file type
400-SOURCECODE/AIAHTML5.Web/AIAHTML5.Web.csproj
... ... @@ -68,6 +68,7 @@
68 68 <Content Include="app\views\da\da-view.html" />
69 69 <Content Include="app\views\Home\printPreview.html" />
70 70 <Content Include="app\views\LabExerc\lab-exercises-detail.html" />
  71 + <Content Include="app\views\iframeresizer.html" />
71 72 <Content Include="app\views\Link\iframeresizer.html" />
72 73 <Content Include="app\views\Link\Link-view.html" />
73 74 <Content Include="app\views\AnatTest\AnatTest-view.html" />
... ...
400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html
... ... @@ -4,6 +4,7 @@
4 4 <title></title>
5 5 </head>
6 6 <body onload="parentIframeResize();" >
  7 + <div>Hi Amrita</div>
7 8 <script type="text/javascript">
8 9 // Tell the parent iframe what height the iframe needs to be
9 10 function parentIframeResize() {
... ...
400-SOURCECODE/AIAHTML5.Web/app/views/iframeresizer.html 0 → 100644
  1 +
  2 +<html>
  3 +<head>
  4 +<title></title>
  5 +</head>
  6 + <body onload="parentIframeResize();" >
  7 + <div>Hi Amrita</div>
  8 + <script type="text/javascript">
  9 + // Tell the parent iframe what height the iframe needs to be
  10 + function parentIframeResize() {
  11 + var height = getParam('h');
  12 + //checking for broweser IE7/8/9,FF
  13 + if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x;
  14 + var ieversion = new Number(RegExp.$1) // capture x.x portion and store as a number
  15 + if (ieversion == 9) {
  16 + if (!parent.parent.name)
  17 + parent.parent.resizeIframe(height);
  18 + else
  19 + parent.resizeIframe(height);
  20 + }
  21 + else {
  22 + if (!parent.parent.parent.id) {
  23 + if (parent.parent.resizeIframe!=undefined)
  24 + parent.parent.parent.resizeIframe(height);
  25 +
  26 + }
  27 + else if (!parent.parent.id) {
  28 + parent.parent.resizeIframe(height);
  29 + }
  30 + else
  31 + parent.resizeIframe(height);
  32 + }
  33 + }
  34 + else {
  35 + if (!parent.parent.name)
  36 + {
  37 + if (parent.parent.resizeIframe!=undefined)
  38 + parent.parent.resizeIframe(height);
  39 + }
  40 + else
  41 + parent.resizeIframe(height);
  42 + }
  43 + }
  44 +
  45 + // Helper function, parse param from request string
  46 + function getParam(name) {
  47 + name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
  48 + var regexS = "[\\?&]" + name + "=([^&#]*)";
  49 + var regex = new RegExp(regexS);
  50 + var results = regex.exec(window.location.href);
  51 + if (results == null)
  52 + return "";
  53 + else
  54 + return results[1];
  55 + }
  56 + </script>
  57 + </body>
  58 +</html>
0 59 \ No newline at end of file
... ...