Answer the question
In order to leave comments, you need to log in
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
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))
It is necessary in the form of some kind of while loop to look for the occurrence of recordsIt 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).
In general, I settled on the option that it is impossible to implement this without JS.
The closest solution was with display:table
and display:table-row
.
Thanks to all!
Made through table
, table-caption
and 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/
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.
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question