weixin_33734785 2014-08-13 15:11 采纳率: 0%
浏览 10

如何在ajax选项卡上加载DOM

I need to load the DOM in my page while using ajax tab.

I am using a jquery ajax tab plugin to implement tab functionality.I am having 6 tabs in my application and all tabs are loading data using ajax tab plugin except first one.Since the page is loaded using ajax tab plugin,DOM is not loaded.I checked by putting a alert in my page inside the script tag.I am not getting the alert popup also.In the 6 tab,the very first tab is loading the data using normal page load.So,when i am focused on that 1st tab and reload the page,i am getting the alert popup and the script function is working fine.If i click any other tab and reload the page,i am not getting the alert popup and i need to show a alert popup on clicking the ajax tab.

What i thought was the DOM is not loaded using ajax tab data load.So how to load DOM while using ajax load.

For example:

sonepage.php

<script>
alert("check");
</script> 

The above will alert the popup when i am focused on first tab and if i am in other than first if i reload the page i am not getting the alert popup.I need to load the DOM in ajax load also.

Is it possible to do this.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 安装svn网络有问题怎么办
    • ¥15 Python爬取指定微博话题下的内容,保存为txt
    • ¥15 vue2登录调用后端接口如何实现
    • ¥65 永磁型步进电机PID算法
    • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
    • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
    • ¥15 如何处理复杂数据表格的除法运算
    • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
    • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
    • ¥15 latex怎么处理论文引理引用参考文献