在页面加载时显示div [英] show div during page is loading

查看:129
本文介绍了在页面加载时显示div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,



我只是想让以下场景运行:

- 我的vb.net页面正在通过查询一个网页。

- 发送的网页应该加载

- 在加载过程中,一个div应该显示

- 当加载请求页面,div应隐藏,请求显示请求的页面



您对此有何建议?



感谢先生,

Arthur

Hey,

I am just trying to get the following scenraio to run:
- My vb.net page is getting via querystring a web page.
- the sent webpage should get loaded
- during the loading process a div for example should get displayed
- when the request page is loaded, the div should get hidden and the requested page should get displayed

Do you have any suggestions how to do that?

Thanks in advcance,
Arthur

推荐答案

请参阅此CodeProject解决方案:页面加载时加载消息 [ ^ ]。



(我没试过。)



-SA
Please see this CodeProject solution: Loading Message when Page Loads[^].

(I did not try it though.)

—SA


一个选项是(仅)发送你想要显示的div的响应。

加上一个后台JS,它将请求页面内容并在加载后进行切换。



祝你好运,

Edo
One option for you is to send a response with (only) the div you want to show.
PLUS a background JS that will request the page content and make the switch after it loads.

Good luck,
Edo


嘿,



谢谢对于你的帖子。

不幸的是我忘了提到所请求的页面必须显示在同一页面中,因为所请求的页面确实有很多我需要的谷歌广告词元标签。谷歌广告词只是跟踪请求第二页的第一页:)



谢谢
Hey,

thanks for your post.
Unfortunately I forgot to mention that the requested page has to get displayed in the same page because the requested page does have a lot of meta tags I need for my google ad words. And Google Ad words is just tracking the first page which is requesting the second page :)

Thanks


这篇关于在页面加载时显示div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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