来自HTML页面中javascript的aspx页面调用 [英] aspx page call from javascripts in html page

查看:188
本文介绍了来自HTML页面中javascript的aspx页面调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我正在网页中开发访客跟踪概念.
基本上,aspx页面的加载时间比html高,因此我正在以htm和从aspx调用的功能来设计页面.

如果有任何用户通过搜索引擎到达我的页面,则只会首先加载html页面,然后它将调用aspx页面,完成跟踪任务,然后再次将其调用到html页面.
这是我网站上的概念.

当我使用javascript从html调用aspx页面时,控制权已转移到aspx以完成任务,然后返回到html页面,但是该循环可能不会中断.

我需要您的帮助,以在首次执行该aspx页面时停止循环.
然后可以在html页面中停止调用函数.

也许是这样吗?

加载到html页面->调用aspx页面(在页面末尾调用html页面(同一页面))-> html页面是上一页..

我无法停止上述结构化问题中的循环.
我可能会让您感到困惑,但这是一个问题.

任何人都可以帮助使用javascript从html页面调用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..

推荐答案

为什么需要这个?如果您可以在aspx页面中完成此操作
Why do you need this? If you can do it in aspx page


我认为您在描述所需内容时遇到了问题.

让我为别人改一下.

当单击第一页时,它将调用运行某些功能的ASP页,然后返回到第一页.
但是,一旦再次到达首页,它就会再次调用ASP页面.

结果:无限循环!


意见建议:
在html中标记ASP调用.
因此,一旦第一次点击该页面,它就是TRUE,但是当您执行对ASP页面的调用时,将其设置为FALSE.
返回时,如果它读取为FALSE,则不会调用ASP页面.
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
<pre lang="java">


这篇关于来自HTML页面中javascript的aspx页面调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆