V
V
vvrider2015-10-31 16:42:08
MongoDB
vvrider, 2015-10-31 16:42:08

How to implement search with time interval as a loop in meteor js?

How to implement time interval search as a loop in meteor js?
There is a meteor that inserts entries into mongodb and displays them in a specific section of the site.
How to make that, when clicked, there was a search in another table until a new record appears.
*** Actually, a record will be inserted (inputs from the front, input form) - then processed in the backend and give an output to another table. It is necessary in the form of some while loop to look for the occurrence of records in the table and output when it appears.
I just started to disassemble meteor, there is not enough information, so I can’t imagine how to do it here.
Any constructive help is encouraged) Thank you!

Answer the question

In order to leave comments, you need to log in

10 answer(s)
P
Pavel, 2015-10-31
@vvrider

On the server, publish the required collection, subscribe to this publication on the client, and the client will automatically receive all new entries in the collection, this is almost one of the main features of meteorjs))

L
lega, 2015-10-31
@lega

It is necessary in the form of some kind of while loop to look for the occurrence of records
It is not necessary to do this, let the handler that writes the data send out a notification (along with the data, so as not to climb into the database once again).

U
UZER2006, 2013-07-15
@UZER2006

In general, I settled on the option that it is impossible to implement this without JS.
The closest solution was with display:tableand display:table-row.
Thanks to all!

M
mdss, 2013-07-15
@mdss

jsfiddle.net/mdss/sfTWq/

M
mdss, 2013-07-15
@mdss

horizontal option
jsfiddle.net/mdss/RXBUD/

P
Pavel Tyslyatsky, 2013-07-15
@tbicr

Made through table, table-captionand table-row. Should work in IE8+. With a fixed height, I did it through padding and display: absolute;or padding and box-sizing: border-box;.
http://jsfiddle.net/z7huU/1/

P
PaulZi, 2013-07-15
@PaulZi

On pure CSS2 without JS, this is unlikely to work. At least with all the conditions (so that there is both overflow-y and not a fixed header).
Well, CSS3 has Flexbox layout for this.
I would recommend using a little JS script that calculates the block height with overflow-y and applies it.

P
pxx, 2013-07-15
@pxx

Continuing the topic of table emulation: jsfiddle.net/KYPX7/
Works in IE8+ for a running start, but the markup puts a sour face on my face.

V
VoidVolker, 2013-07-15
@VoidVolker

IMHO, the easiest way is to fix the top block:
position: fixed;
And the rest of the content will be scrolled by the standard browser scroll. If you use js, then there are a lot of ready-made vertical content sliders on the network.
I'm now busy with a similar task - only horizontal scrolling. As a result, I came to the conclusion that the easiest way would be to find a ready-made js script.

T
truekenny, 2013-07-15
@truekenny

Why is the option quorra.ru/#10c8f6b6f25e89d9fd7b69bcdc1e3b4d-9-8 not suitable?
For IE6 watch in a separate window quorra.ru/pages/10c8f6b6f25e89d9fd7b69bcdc1e3b4d.html
(IMPORTANT DOCTYPE Transitional)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question