JavaScript function refuses to work on production server but works on local server

后端 未结 1 969
旧时难觅i
旧时难觅i 2021-01-29 16:19

I am using the MM_goToURL() function which I borrowed from Macromedia Dreamweaver to send HTTP requests to specific URLs on the server. Below is the code for the function, it is

相关标签:
1条回答
  • 2021-01-29 16:43

    I have done some research, I figured that the domain name forwarding and masking causes the site to be in a html frame, thereby disabling the JavaScript link from working.

    This is the source code to the hosted site on my domain name:

     <html>
    
      <head>
       <title>Royalseeds </title>
       <META name="description" content="Royalseeds MPCS Limited"><META name="keywords" content="Royalseeds, Frozen Foods, Cool Room">
      </head>
       <frameset rows="100%,*" border="0">
        <frame src="http://www.optdesolver.com/RoyalSeedsMPCS/statistics_servlet.mpcs" frameborder="0" />
        <frame frameborder="0" noresize />
       </frameset>
    
       <!-- pageok -->
        <!-- 03 -->
        <!-- -->
     </html>
    

    The code above prevents the JavaScript from loading.

    Solution: I will disable the masking but allow forwarding.

    0 讨论(0)
提交回复
热议问题