This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / 请教: HOW TO TRIGGER ASP PAGE #b FROM PAGE #a BUT STAY ON PAGE #a我想同时运行PAGE #a & PAGE #b ; STAY ON PAGE#a , PAGE#b JUST RUN THEN CLOSE.
我知道:
1. #include file (issue is not to allow param with querystring)
2. Server.Execute (Server.Transfer) (issue is same as 1)
3. Javascript: window.open (issue is Popup blocker will not trigger this open)
Thx.
-whereismyid(到处找ID);
2009-5-14
{301}
(#5264236@0)
-
A simple AJAX call.
-nicetomeetyou(_);
2009-5-14
(#5264322@0)
-
I knew. but here is ONLY old ASP
-whereismyid(到处找ID);
2009-5-14
(#5264454@0)
-
一个最简单的方法就是用iframe,iframe指向#b即可。AJAX也可以。AJAX不一定是.NET才行,它可以跟任何Server side技术合用的,包括老ASP。只要给出URL即可。
-haha168(叶雨:我是来捣浆糊的);
2009-5-14
(#5264893@0)
-
I will think about your suggestions. thx
-whereismyid(到处找ID);
2009-5-14
(#5265403@0)
-
Keep one thing in mind: it has to be done on client-side. There is no way to push two windows to client from server.Another question is do you need data from server? If answer is yes, you might use AJAX. Otherwise, what AJAX is going to do?
-deep_blue(BLUE);
2009-5-14
{124}
(#5265329@0)
-
Actually I need to run Data from server #b of page #b and run UI from server #a of page #aServer #b and Server #a belong to diff companies. So I don't know if iframe will work out.
-whereismyid(到处找ID);
2009-5-14
{91}
(#5265398@0)
-
Easy, just a hint: Create an agent in Server #a. When a ajax req is fired to #a, handler loads agent to read data from page b@server#b, then handler integrates data and sends it back to UI on client. This is partial page refresh.
-nicetomeetyou(_);
2009-5-14
(#5265665@0)
-
Sounds doable. Thanks. Since I don't need any data info back to page#a from page #b, how about the simple one: winhttprequest? server to server invoke page.
-whereismyid(到处找ID);
2009-5-14
(#5265707@0)
-
Sorry I don't know asp function stuffs, in my own project, I use Java Servlet//JSP/XSLT and hand code everything.
-nicetomeetyou(_);
2009-5-14
(#5265781@0)
-
ASP/ASP.NET/Servlet they are all same: accept and return data through http. So you can post any data (e.g. xml) to ASP and return any data (e.g. another xml) to client. It doesn't need to be HTML. This is basics of AJAX.
-liquid(豆泡松果 之 松果豆泡);
2009-5-14
(#5265868@0)
-
Have you tried to use ajax to send binary file back to browser, say, .jpg? The http connection is basically request/response model, with request coming first,(?) s it possible server send sth first to browser, if the session is valid?
-nicetomeetyou(_);
2009-5-15
(#5266156@0)
-
It is impossible. Just like you said, browser always needs to initiate the communication by sending GET/POST request and parse response, it is always a pull model, not push.
-liquid(豆泡松果 之 松果豆泡);
2009-5-15
(#5267627@0)
-
haha, it is possible man!!!I just knew it..
-nicetomeetyou(_);
2009-5-15
{16}
(#5267659@0)
-
牛歌卖小官子: XML & base64 encoding
-whereismyid(到处找ID);
2009-5-15
(#5267796@0)
-
我相信你没有试过...
-nicetomeetyou(_);
2009-5-15
(#5267943@0)
-
So after search engine, web framework, ERP... you are going to invent a push http model, wouldn't you?
-liquid(豆泡松果 之 松果豆泡);
2009-5-15
(#5268528@0)
-
以后看网页小心点,冷不防给你一个炸屏。:-)异步ajax.
-nicetomeetyou(_);
2009-5-15
{9}
(#5268554@0)
-
This is from somebody said "I have been doing enterprise dev for years and feel they are boring and tools are doom sometimes.". Sign. I guess you do know everything on the web is based on http, right? No matter what fancy name you can them.
-liquid(豆泡松果 之 松果豆泡);
2009-5-15
(#5268630@0)
-
我们一般用的都是同步AJAX, 但异步AJAX就有可能实现服务器对浏览器的控制,方法是:PAGE在LOADING的时候发个请求,然后一边处理本地,一边等待服务器的回应。。。仅仅是技术探讨。。
-nicetomeetyou(_);
2009-5-16
(#5268828@0)
-
It looks like that you don’t fully understand web mode – any web page must start from client, it sends a request to web server.Then web server processes and posts a web page to client. After the page goes to client, additional actions can be conducted on client-side by running some client-side code (javascript, vbscript, and so on).
-deep_blue(BLUE);
2009-5-15
{207}
(#5266131@0)
-
HOHO... we are not on the same page. My question is how to trigger page#a and page#b at same time then stay on page#a. but the page#b CAN be triggered at server side.I use winhttprequest to send and get response from page#b (even nothing at UI but page#b's data info exchange with DB is completed in this way.
So, I stay on page#a and run page#b at same time. Our client will only get page#a UI
-whereismyid(到处找ID);
2009-5-15
{230}
(#5266257@0)
-
If you think Server# 1 is a client of Server #2, I agree that this is a client/server mode. But I meant the server is web server, client can be browser, windows apps, another web server ...etc
-whereismyid(到处找ID);
2009-5-15
(#5266276@0)