http://www.laptopshop.co.uk/ 当点击 Buy Now 后明明是提交到<form action="http://www.laptopshop.co.uk/shoppingcart/confirmation2.php" 了,但页面没有跳转》

解决方案 »

  1.   

    <form blank='AAA'>AAA可以是该页面的潜入框架名。
      

  2.   

    应该不是Ajax啊     <form action="http://www.laptopshop.co.uk/shoppingcart/confirmation2.php" name="detail" method="post" style="margin:0px; margin-top:5px;">
          <input name="ADD TO BASKET" value="BUY NOW" type="image" src="http://www.laptopshop.co.uk/images_small/site_images/buyitsml.gif" onmouseover="this.src='http://www.laptopshop.co.uk/images_small/site_images/buyitsml_over.gif'" onmouseout="this.src='http://www.laptopshop.co.uk/images_small/site_images/buyitsml.gif'"
    style="width:60px; height:20px; cursor:hand; border:0px; font-size:12px; color:#fff;">
          <input type="hidden" name="prodlist" value="ML3108b_RF2756">
          <input type="hidden" name="session_id" value="h3m2jf3qvc106co7n21agn7pc6">
          <input type="hidden" name="url" value="Lw==">       <input type="hidden" name="action" value="add">
    </form>
      

  3.   

    难道是传说中的隐式提交! 呵呵!没跳转肯定用的是AJAX技术!
      

  4.   

    ajax 提交,为form标签添加一个ajax提交事件(addListener)
      

  5.   

    肯定有跳转,抓包结果:
     00:00:00.000 0.977 503 POST 302 改向到 http://www.laptopshop.co.uk/ http://www.laptopshop.co.uk/shoppingcart/confirmation2.php
     00:00:00.977 1.925 8950 GET 200 text/html; charset=iso-8859-1 http://www.laptopshop.co.uk/
     00:00:02.064 0.913 145 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/ibm.gif
     00:00:02.066 0.869 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/img_t_seriesa.jpg
     00:00:02.069 0.878 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/gateway.gif
     00:00:02.070 0.904 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/ml3108.jpg
     00:00:02.073 0.918 147 GET 304 text/css http://www.laptopshop.co.uk/includes/topstyles.css
     00:00:02.437 0.820 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/acer.gif
     00:00:02.453 1.655 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/aspire3000.jpg
     00:00:02.465 0.840 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/panasonic.gif
     00:00:02.466 0.806 146 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/panacf73.jpg
     00:00:02.471 0.846 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/extensa5520.jpg
     00:00:02.474 1.258 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/sony.gif
     00:00:02.475 1.277 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/sonyar.jpg
     00:00:02.477 1.292 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/bx51cashback.jpg
     00:00:02.478 1.314 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/targus.gif
     00:00:02.480 1.329 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/amw07eu.jpg
     00:00:02.482 1.345 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/tech_air.gif
     00:00:02.483 1.648 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/techair3106.jpg
     00:00:02.484 2.084 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/belkin-f8n048-dk.jpg
     00:00:02.500 2.439 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/toshiba.gif
     00:00:02.500 2.453 147 GET 304 image/gif http://www.laptopshop.co.uk/images_mods/button1-bm.gif
     00:00:02.511 2.057 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/samsung.gif
     00:00:02.513 1.640 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/samsungr70.jpg
     00:00:02.514 2.072 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/belkin.gif
     00:00:02.519 2.096 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_big/aspire_5633.jpg
     00:00:02.523 2.108 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/asus.gif
     00:00:02.526 2.121 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/compaq_hp.gif
     00:00:02.528 2.414 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/fujitsu_siemens.gif
     00:00:02.529 2.654 146 GET 304 image/gif http://www.laptopshop.co.uk/images_small/misc/small-logo/lenovo.gif
     00:00:03.015 2.344 148 GET 304 image/png http://www.laptopshop.co.uk/images_mods/topbg.png
     00:00:03.054 2.361 148 GET 304 image/png http://www.laptopshop.co.uk/images_mods/button.png
     00:00:03.078 1.013 148 GET 304 application/x-shockwave-flash http://www.laptopshop.co.uk/banners/adbanner.swf
     00:00:03.078 2.317 146 GET 304 image/png http://www.laptopshop.co.uk/images_mods/itembg.png
     00:00:03.109 0.287 185 GET 304 application/octet-stream http://s9.addthis.com/js/widget.php?v=10
     00:00:03.109 2.307 146 GET 304 image/png http://www.laptopshop.co.uk/images_mods/titlebg.png
     00:00:03.109 2.315 146 GET 304 image/png http://www.laptopshop.co.uk/images_mods/reftick.png
     00:00:03.437 2.288 146 GET 304 image/gif http://www.laptopshop.co.uk/thawte.gif
     00:00:03.437 2.315 147 GET 304 image/jpeg http://www.laptopshop.co.uk/images_mods/itemadded1.jpg
     00:00:03.437 2.354 147 GET 304 image/png http://www.laptopshop.co.uk/images_mods/cards.png
     00:00:03.437 0.001 0 GET (缓存) text/javascript https://ssl.google-analytics.com/urchin.js
     00:00:03.464 63.641 354 GET 200 image/gif https://images.scanalert.com/meter/www.laptopshop.co.uk/32.gif
     00:00:03.465 2.012 147 GET 304 image/gif http://www.laptopshop.co.uk/images_small/site_images/isis.gif
     00:00:03.500 2.717 146 GET 304 image/gif http://www.laptopshop.co.uk/images_mods/baskitembg.gif
     00:00:03.500 2.735 145 GET 304 image/gif http://www.laptopshop.co.uk/images_mods/minidelete.gif
     00:00:03.500 2.747 146 GET 304 image/png http://www.laptopshop.co.uk/images_mods/baskbottom.png
     00:00:03.500 2.764 146 GET 304 image/gif http://www.laptopshop.co.uk/images_mods/baskbutton.gif
     00:00:03.500 2.774 147 GET 304 image/png http://www.laptopshop.co.uk/images_small/rightmenu/purchase.png
     00:00:03.500 3.035 147 GET 304 image/png http://www.laptopshop.co.uk/images_small/rightmenu/refurb.png
     00:00:03.500 3.060 147 GET 304 image/png http://www.laptopshop.co.uk/images_small/rightmenu/sonycb2.png
     00:00:03.500 3.117 147 GET 304 image/png http://www.laptopshop.co.uk/images_small/rightmenu/tosh50.png
     00:00:03.526 2.547 146 GET 304 image/png http://www.laptopshop.co.uk/images_mods/footerbg.png
     00:00:03.529 2.682 147 GET 304 image/png http://www.laptopshop.co.uk/images_mods/baskettop.png
     00:00:03.542 3.360 147 GET 304 image/png http://www.laptopshop.co.uk/images_small/rightmenu/externalright.png
     00:00:03.543 3.563 147 GET 304 image/png http://www.laptopshop.co.uk/images_small/rightmenu/videolib.png
     00:00:03.547 13.531 329 GET 200 image/gif http://www.google-analytics.com/__utm.gif?utmwv=1&utmn=653554946&utmcs=iso-8859-1&utmsr=1440x900&utmsc=32-bit&utmul=zh-cn&utmje=1&utmfl=9.0&utmdt=Laptopshop.co.uk%20Laptops%20and%20more&utmhn=www.laptopshop.co.uk&utmr=0&utmp=/&utmac=UA-173936-1&utmcc=__utma%3D111336729.549793760.1205070988.1205070988.1205070988.1%3B%2B__utmb%3D111336729%3B%2B__utmc%3D111336729%3B%2B__utmz%3D111336729.1205070988.1.1.utmccn%3D(direct)%7Cutmcsr%3D(direct)%7Cutmcmd%3D(none)%3B%2Bhttp://www.laptopshop.co.uk/shoppingcart/confirmation2.php返回的数据:HTTP/1.1 302 Found
    Date: Sun, 09 Mar 2008 14:12:57 GMT
    Server: Apache/2.0.52 (CentOS)
    X-Powered-By: PHP/5.1.6
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: rights=1; path=/; domain=www.laptopshop.co.uk
    location: http://www.laptopshop.co.uk/
    Vary: Accept-Encoding
    Content-Encoding: gzip
    Content-Length: 20
    Connection: close
    Content-Type: text/html; charset=iso-8859-1这怎么可能没有跳转。至于为什么后退不能点,可能它作了其他处理吧,没跳转一说太牵强,而且点了buy now还是当前页,不知道他咋想的
      

  6.   

    最讨厌看都不看就打四个字Ajax上去的人,都08年了,觉得有事没事叫Ajax很时尚还是咋的?94年,你有事没事叫Ajax我们还能崇拜你一下,现在一开个贴,甭管人家说什么,先来一个AJAX,看这主没反应,再整个Flex秀秀,不懂?那叫时尚Ajax怎么返回的http头里面有这行呢?
    location: http://www.laptopshop.co.uk/ 
    你说这是让谁重定向呢?
    兄弟你帮我解释解释,说道说道?
      

  7.   

    应该是直接提交,没有用AJAX,把网速调到非常慢的时候可以看到那个页面的两边刷新了,中间没有动,考虑一下框架,或者缓冲技术?
      

  8.   

    感谢各位的热心解答,点了buy now还是当前页,就是这种效果,全页源代码我都么复看过了,如果是用AJAX我也就懒得问了,源代码很容易看到的,http://www.laptopshop.co.uk JS文件就调用了两个,并且不是和这相关的,表达单提交时也没有用到任何处理函数,如果是提交到<form action="http://www.laptopshop.co.uk/shoppingcart/confirmation2.php"再返回处理结果的话应该有明显的跳转或延迟感的,但没有,而且绝对没用到框架,可以看到里面显示的是用DIV标签,有兴趣的朋友可以一起探讨、研究下,再次感谢各位的回答
      

  9.   

    如果跳转了,那怎么达到这种类似、感觉像是aJax的技术呢?这才是关键所在