Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

ThinDirect incase of javaScripts

$
0
0

Hi,

 

Infrastructure at our customer site was being upgraded to WIN7 and IE9 and one of our web applications are not supported on IE9 so we had to make use of VmWare Thin App solution to let users use the web app on the Virtual IE8 browser through thinApp packaging.

 

So redirection and most of the operations are working successfully with out any issues

 

but we have an issue incase of redirecting the unlisted URLs under thinapp.txt file

 

Here is the issue:

 

1.We have an Applet and a Button is being exposed on it

2.we have a Javascript behind the button,which does open a new window onclick of the button.we make use of a javascript function window.open in this case

3.So for the first time in the virtual browser,when this button is clicked,a new blank window is opening and another window is opening with redirect helper message and then the same window is re-directed to IE9 Local/native browser

4.But the problem here is a blank window is being left open

5.where as incase of native browser (IE9/IE8) the blank window which is opened initially will ger redirected to another URL

6.Lastly when we close the blank window,and re-click the button on the applet,we are getting an error 'Access Denied'

 

we never faced these errors in a native/local browsers either IE8 or IE9

 

I am also enclosing the code behind the button,for an appropriate guidance:

 

the actual code behind the button is:

 

Thanks,

Kalyan

if (token != "" && URL != "")

       {

         // Create a new IE window for the page

  /*  var ImageWindow = "";

    ImageWindow = ImageWindow + randomnumber;

    var oPostPage = window.open("", ImageWindow,

    config="left=400, top=100, height=300, width= 500,toolbar=1,location=1,status=1,resizable=1, scrollbars=1");

    oPostPage.document.write("<HTML><HEAD>");

    oPostPage.document.write("<\/HEAD>");

    oPostPage.document.write("<BODY>");

    oPostPage.document.write(" This page is loading...");

    oPostPage.document.write("** please WAIT **");

    oPostPage.document.write("<form name='frm1' method='post' action='" +URL+ "'>");

        if(tpSource == "DOCPRD")

          {

         oPostPage.document.write("<input type='hidden' name='Token_Signature' value='" +token+"'>");

         }

         else

         {

                    oPostPage.document.write("<input type='hidden' name='TOKEN' value='" +token+"'>");

        oPostPage.document.write("<input type='hidden' name='SITEID' value='" +SiteID+"'>");

         }  

    oPostPage.document.write("<\/form>");

       oPostPage.document.write("<SCRIPT>");

    oPostPage.document.write("function popup() {");

    oPostPage.document.write("document.frm1.submit(); }");

    oPostPage.document.write("<\/SCRIPT>");

    oPostPage.document.write("<\/BODY><\/HTML>");

    oPostPage.document.frm1.submit();

    oPostPage.close();

   /*Inactivated by Kalyan as the invocation of Business Services From Browser Scripts Has been Solved*/

   // theApplication().SetProfileAttr("Token", "");

   // theApplication().SetProfileAttr("FileNetURL", "");

   // theApplication().SetProfileAttr("ErrorMsg", "");

   // theApplication().SetProfileAttr("SiteID", "");

   // theApplication().SetProfileAttr("DocumentGUID", "");

   /*End of Changes by Kalyan*/


Viewing all articles
Browse latest Browse all 176483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>