Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: Portal & Bsp inputfield Problem - Access Denied in javascript

$
0
0

Hello,

 

I have the same issue.

I have relaxed the domain from my iframe so as I could launch some functions but when I try to click on an input field type Date, the popup cannot be displayed.

 

From my parent :

<script>

  function resizeIframe(width,height)

  {

    document.getElementById('id_mon_iframe').width = width;

    document.getElementById('id_mon_iframe').height = height;

  }

</script>

 

<iframe

width="100%"

name="frame_object"

src="/sap/bc/bsp/sap/my_test/index.do"

frameborder="0"

id='id_mon_iframe'>

</iframe>

 

From my iframe :

      <script type="text/javascript" language="JavaScript">

       function relaxDomain(input)

       {

         if (input.search(/^\\d+\\.\\d+\\.\\d+\\.\\d+$/) >=0 )

         {

           return input;

         }

         var lnDotPos = input.indexOf(".");

         return (lnDotPos >= 0) ? input.substr( lnDotPos + 1 ) : input;

       }

       function oniframeload()

       {

         var result = relaxDomain(document.domain);

         var width = 2100;

         var height = document.body.scrollHeight + 50;

         if(result != document.domain)

         {

           document.domain = result;

         }

         parent.resizeIframe(width,height);

       }

       </script>

     </htmlb:form>

   </htmlb:page>

</htmlb:content>

 

Détails de l’erreur de la page Web

Agent utilisateur : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

Horodateur : Sun, 21 Dec 2014 15:10:28 UTC

Message : Accès refusé (Access Denied).

Ligne : 125

Caractère : 3

Code : 0

URI : http : //xxxxx.xxxxx.xxx:xxxx/sap/public/bc/ur/Design2002/js/popup_ie6.js?6.0.17.0.0

 

Anyone with an idea?

 

Thx.


Viewing all articles
Browse latest Browse all 9164

Trending Articles



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