java连接aspx,在html页面中从javascripts调用aspx页面

Hi friends,

I am developing visitor tracking concept in my webpage.

Basically aspx page loading time is higher than html so I am designing the page in htm and functionality called from aspx.

If any user came to reach my page through search engine first html page only is loaded, then it calls to aspx page, complete the tracking task and again it call it to html page.

This is the concept in my site.

While I am calling the aspx page from html using javascript, control is transferred to aspx to complete the task then return to the html page, but that loop could be unbreakable.

I need a help from to you to stop the loop when that aspx page executed the first time.

Then calling function could be stopped in the html page.

Maybe like this?

loaded to html page --> call to aspx page (at the end of the page call to html page(same page))--> html page which is previous one..

I am unable to stop the loop in the above structured problem.

I may be confusing you, but this is a problem.

Can anyone help to call aspx page functionality from html page using javascript?

thanks in advance..

解决方案

Why do you need this? If you can do it in aspx page

I think you are having a problem describing what you need.

Let me rephrase it for others.

When the first page is hit, it calls an ASP page that runs some functionality, and returns to the first page.

However once it hits the first page again it calls the ASP page again.

Result: Infinite loop!

Suggestion:

Flag the ASP call in the html.

So that once the page has been hit the first time it is TRUE, but when you do the call to the ASP page set it to FALSE.

On the return, if it reads FALSE it will not call the ASP Page.

dfsfsf

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值