By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,390 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,390 IT Pros & Developers. It's quick & easy.

problem on ticker

P: 8
hi,im working on tickers

according to me whenever the stock becomes less than the minimum level the ticker should be generated.

so i wrote a script using php to do dis.which is working fine.
but now my problem where do i place dis script in page n also der r many other pages wherein dis ticker should be generated.

first thing i thought was to include dat script in every possible page and refresh d script after 2 sec say.but i dont think it is feasible solution.

please tell wat should i do.
Feb 2 '07 #1
Share this Question
Share on Google+
2 Replies

acoder
Expert Mod 15k+
P: 16,027
Well, if you've got it working in PHP, you can use AJAX to get the response every two seconds. There's no need to refresh the page.
Feb 2 '07 #2

P: 23
Well, if you've got it working in PHP, you can use AJAX to get the response every two seconds. There's no need to refresh the page.
Acoder is correct. You can use AJAX. But, if your problem is that you need to place the script over and over again, try using a sitewide template. U can easily make 1 in PHP.
Feb 2 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.