我们如何自动刷新不是默认页面的页面。 [英] How can we auto refresh a page which is not a default page.

查看:72
本文介绍了我们如何自动刷新不是默认页面的页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何自动刷新不是默认页面的页面?



假设我有一个网站,我想在其中向所有订阅者发送邮件在网站页面New_News中添加任何产品时发送电子邮件ID。现在问题是我的默认页面是主页,如何设置自动刷新到该特定页面,即New_News。



我已经搜索了很多,但我发现每个结果都在page_load上刷新而不是网站的单个页面。



如果有人有想法,请与我分享!

How can we auto refresh a page which is not a default page?

Suppose I have a site in which I want to send a mail to all the subscribed Email id''s when any product is added in the site page "New_News. Now the problem is that my default page is homepage and how can I set auto refresh to that particular page i.e. "New_News".

I have searched a lot over this, but every result I have found to refresh on page_load not an individual page of the site.

If anyone have an idea kindly share to me!

推荐答案

你提到的场景并没有像你看到的那样得到解决。它叫做时事通讯。您正在谈论的邮件是由SMTP服务器使用SQL作业或Windows服务发送的,这些服务一直检查数据库中的新项目并将通知发送给所有订阅的用户。它必须对主页无效。因为如果您的家页面是acc由1000人组成,邮件将被发送给所有订户1000次。如果这是你的团队负责人向你建议的,那么贵公司就是解雇他的时候了。
The scenario you are mentioning is not resolved the way you are looking at it. It is called newsletter. The mails you are talking about are sent by SMTP servers using either SQL jobs or windows service that consistently check for a new item in the database and sends the notification to all the subscribed users. It has to do nothing with home page. Because if your home page is accessed by 1000 people, the mail will be sent to all the subscribers 1000 times. If this is what your team leader suggested to you, it is the time for your company to fire him.


嗨亲爱的,



你必须在特定的时间刷新你的页面后在Javascript中创建一个计时器,这是很容易的方法。
Hi Dear,

you must create a timer in Javascript after a specific time refresh you page, it''s easy way to do that.


在你的头部内容中添加以下标记它会自动刷新5秒后您的页面...您可以通过仅更改内容属性的值来更改刷新间隔.....



Add the following tag in your head content it will automatically refresh your page after 5 sec... you can change refresh interval by only changing the value of content property.....

<meta http-equiv="refresh" content="5" />


这篇关于我们如何自动刷新不是默认页面的页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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