doubo6658 2012-05-04 14:38
浏览 34

如何将动态php页面放入jquery手风琴“活动”部分

I am redoing my site and have at any time 80-120 vehicles, all identified in my db by their unique stock number. I'm using jQuery's accordion to list the vehicles: http://www.login.carcityofdanbury.com/New/?cat=01

How do I embed edit.php?stock=__STOCK__ into the div of the open accordion, once the accordion opens? I tried just using just an HTML <embed> tag, but it is making the page load extremely slow.

I am new to the whole jQuery, Ajax, coding thing and am completely a self taught "learn as I go" guy, so a demo, tutorial or example would be great.

  • 写回答

3条回答

  • dotxxh0998 2012-05-04 14:49
    关注

    You could get some help here: http://api.jquery.com/jQuery.ajax/

    Example:

    $.ajax({
           url: "yourPage.php",
           success: function(data){
             $("#youarea").text(data);
           }
         });
    
    评论

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决