-
Content Count
173 -
Joined
-
Last visited
-
Since there is no 'NodeJS/MongoDB' discussion section I decided to post my question to 'JavaScript'. I am trying to start the server by running mongod.exe, and by doing the same thing using cmd. I want to start the server and use it with a tool called Robo 3T to manipulate NoSQL databases. There is no active connection can be seen in Robo 3T after I start mongo. Can anyone explain what I am supposed to do? What is the correct way to run MongoDB on Windows?
-
document.getElementById("demo").innerHTML = days + "d " + hours + "h " + minutes + "m <span style='color:red'>" + seconds + "</span>s "
-
How to load page in div compatible with all device?
smus replied to Maxilboss93's topic in JavaScript
Have you tried an <object> tag as a container for your page? -
Yes, you can, by using pure CSS (not necessarilly with W3.css). Try something like this: <style> .label:after{ content:'text I want to change'; } .label:hover:after{ content:'changed text'; } </style> <body> <p>text <span class="label"></span> text</p> </body>
-
The page already goes with <style>section{display:none}</style> written in it. Adding and removing classes won't influence it. I also tried section.style.display='unset' which provides the same result as 'initial', and section.style.display=' ', but it does not work at all. As it is discussed here: https://stackoverflow.com/questions/18534561/what-is-use-of-initial-value-in-css 'initial' only resets to a CSS default, not to a browser default. And they only plan to add something in CSS4. While we are waiting the only reasonable way I thought about is to check each element
-
Very helpful, thanks! display = "initial" works, however, it changes the style not to display = "block" (which is default one for <section> tag), but to display = "inline". I wonder what the result would be if we do the following: <style> section{display:none} </style> <script> document.getElementsByTagName('section')[0].style.display = 'block' document.getElementsByTagName('section')[0].style.display = 'initial' </script> will it switch back to display = 'inline'? If so, why?
-
For example, an element's default value is 'inline'. It was as 'display:block' on my page, but now it is hidden by 'display:none'. I want it back to visible again, but to its default state. I tried element.style.display = "", element.style.display = "auto", as well as element.style.removeProperty = "display", as it is described here: https://stackoverflow.com/questions/21457904/change-element-display-none-back-to-default-style-value-js But it could not be changed from 'display:none' (only by using 'display:block') There is an official list of default style properties, like, for
-
Server settings, try absolute address
-
For the default value, you should simply add value="yourdefaultvalue" to your input tag. What do you want to display "LHS,RHS" in your code, when datalist is set to "initial or awlays"?
-
var pageBreak = document.getElementById("pageBreak") All var declarations must be inside the function
- 8 replies
-
- window.print();
-
(and 2 more)
Tagged with:
-
vmars316, not working at all or with errors? Looks like collectedTextareas variable was not initialized
- 8 replies
-
- window.print();
-
(and 2 more)
Tagged with:
-
Thanks very much for the idea! Used this function for sorting the array: function arraysort(s) length = ubound(s) for i = 0 to length for j = 0 to length if s(i)<s(j) then t = s(i) s(i) = s(j) s(j) = t end if next next arraysort = s end function
-
Problems populating fields and clicking on login button
smus replied to aircooled's topic in JavaScript
:= looks like it is taken from Delphi code -
You mean I place them in an array, sort the elements as I want and display them in that order? That makes sense. Because now it only iterates through the folders and prints it out as it was returned from the file system.
-
smus started following Using FileSystemObject for listing available subfolders in a directory
-
<%@LANGUAGE="VBSCRIPT"%> <% Option Explicit On Error Resume Next ' this section is optional - it just denies anonymous access ' If Request.ServerVariables("LOGON_USER")="" Then ' Response.Status = "401 Access Denied" 'End If ' declare variables Dim objFSO, objFolder Dim objCollection, objItem Dim strPhysicalPath, strTitle, strServerName Dim strPath, strTemp Dim strName, strFile, strExt, strAttr Dim intSizeB, intSizeK, intAttr, dtmDate ' declare constants Const vbReadOnly = 1 Const vbHidden = 2 Const vbSystem = 4 Const vbVolum