Click here to Skip to main content
14,641,347 members
Rate this:
Please Sign up or sign in to vote.
See more:
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..
Posted
Updated 9-Dec-10 23:14pm
v3
Comments
Sandesh M Patil 9-Dec-10 11:45am
   
Its really confusing, please elaborate
Sandeep Mewara 9-Dec-10 13:10pm
   
Not clear. Edit your question and try again to explain your issue.
Dalek Dave 10-Dec-10 5:14am
   
Edited for Readability.
Rate this:
Please Sign up or sign in to vote.

Solution 1

Why do you need this? If you can do it in aspx page
   
Comments
ramuksasi 9-Dec-10 14:29pm
   
thanks for reply...
if i do it in aspx page its loading time could take for long time gab. that is so am trying to do like that...
fjdiewornncalwe 9-Dec-10 14:45pm
   
Sounds like one of the most creative infinite loops I've seen. As Pradip queries, why do you need this?
Rate this:
Please Sign up or sign in to vote.

Solution 2

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.
   
Comments
ramuksasi 10-Dec-10 8:05am
   
thanks for suggestion Dalek Dave..
i tried that way but once the html page is get reloaded or refresh its automatically called to aspx page and its comes under loop.. unable to stop the loop... if u dont mind, will u give me any example regarding my issue..
ramuksasi 10-Dec-10 9:57am
   
hi dalek dave...
now its working for me..
thanks for ur suggestion..
Rate this:
Please Sign up or sign in to vote.

Solution 3

dfsfsf
<pre lang="java">
   
Comments
Manfred Rudolf Bihy 15-May-12 9:40am
   
Don't post this kind of message. If it isn' a solution it doesn't belong here!
Please remove this message, lest you be downvoted into oblivion.

Thanks for your cooperation!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100