dpp66953 2014-10-17 16:38
浏览 49
已采纳

在主页但不在内部目录中工作的代码 - 只显示加载

my code works fine in home directory but in inner directory it keep on showing loading image.never shows original page

here is my simple code

   <html><head><style type="text/css" media="all">@import "http://static.something.com/files/common_css/style16.css";</style>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>


       <script src="http://static.something.com/js/lightbox/js/jquery.lightbox-0.5.js" type="text/javascript"></script>
      <script type="text/javascript" src="http://something.com/js/jquery.form33.js"></script>              <script type="text/javascript">jQuery(document).ready(function($) {$('a[rel*=facebox]').facebox()})    </script>  
       </head><body>


     <?php


   echo'    <body style="cursor:auto" id="curpo" onLoad="$.image({ ajax: \'http://something.com/jquery/desigirls/77987\' });return false;" class="uiMediaThumb uiMediaThumbLarge uiMediaThumbAlb uiMediaThumbAlbLarge"></body>
';

      ?></body></html>

this code works fine here http://something.com/testage.php

but not works in this page http://www.something.com/touch/w2et/testage.php

everything is same.i think there is some issue with javascript or image references.i tried changing all but same problem.

here is jsbin link as well jsbin.com/royepawomi/edit

here also it is not working

  • 写回答

1条回答 默认 最新

  • donglong2856 2014-10-17 16:52
    关注

    The two links you have posted are two different domains

    www.way2enjoy.com and way2enjoy.com. I would suggest picking just one and using that.

    The reason for this is you cannot do cross domain AJAX requests. Having the www. in one means they are treated as separate domains.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮