Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am using VS 2005. I have added ajax extension to it.

Now I am trying to develop website. I have designed (showtime.aspx) one page in which I have used some ajax code. E.g. Showing current time using ajax control

I have one menu page(menu.aspx). I am calling the showtime.aspx page in menu.aspx page using javascript ajax code. I have two section in my page. On left hand side menu and on right hand side blank space containing div. I am using this blank space to display all other page e.g showtime.aspx by using javascript ajax calling (Msxml2.XMLHTTP).

I am calling the page on click event of menu link (onclick="fnShowpage();"). so it will call the page using Msxml2.XMLHTTP. and show responseText in div of menu page.

When I call showtime.aspx page separately it work fine. show me desired out put. but when I call it from menu page using the Msxml2.XMLHTTP javascript. It displays the page but won't work.

Please guide me. whether I am doing right or wrong. I want to develop full ajax site. Please tell me how to do it.
Posted

1 solution

Kiran S. S. wrote:
I have added ajax extension to it

Kiran S. S. wrote:
using javascript ajax calling (Msxml2.XMLHTTP)


Having AJAX extensions and using Msxml2.XMLHTTP are not entirely same. What you are doing right now is using traditional AJAX using XMLHttpRequests.

Having AKAX extensions allow you to use ScriptManager, UpdatePanels and many more.

You need to read about them in order to use them. Go here:
ScriptManager Class[^]
UpdatePanel Class[^]


Kiran S. S. wrote:
but when I call it from menu page using the Msxml2.XMLHTTP javascript. It displays the page but won't work.

About this, what error are you getting exactly? Is the response handled properly?
Look here about XmlHttpRequest:
XMLHttpRequest Object[^]
W3C - XMLHttpRequest[^]
 
Share this answer
 
Comments
Kiran S. S. 15-Jun-10 7:01am    
I got your point. But how to use these controls to show another page in calling page.
Means page 1 contains link to page 2, I want show page2 in page 1 in small div.

How can do this. please give me one example

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900