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.

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

报告相同问题?

悬赏问题

  • ¥20 matlab计算中误差
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊