Nancy Den has Published 335 Articles

Display the overflowed content when hovering over the element with CSS

Nancy Den

Nancy Den

Updated on 23-Jun-2020 15:48:59

2K+ Views

To display the overflowed content while hovering over elements, you can try to run the following code:ExampleLive Demo                    div.demo {             white-space: nowrap;             width: 180px;       ... Read More

Why the use of iostream::eof inside a loop condition considered wrong?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 13:40:06

131 Views

Just because we haven't reached the EOF, doesn't mean the next read will succeed.Consider you have a file that you read using file streams in C++. When writing a loop to read the file, if you are checking for stream.eof(), you're basically checking if the file has already reached eof. So ... Read More

How to set the page-break behavior before an element with JavaScript?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 12:32:23

390 Views

Use the pageBreakBefore property in JavaScript to set the page-break behavior before an element. Use the always property to insert a page break before an element.Note − The changes would be visible while printing or viewing the print preview.ExampleYou can try to run the following code to return the page-break behavior before ... Read More

How to create JavaScript data grid for millions of rows?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 11:51:58

194 Views

To display million of rows of data to the users in a grid, use any of the following grids −S. NoGridDescription1DataTablesAllows adding advanced interaction controls to any HTML table.2IngridAllows resizing columns, paging, sorting, row and column styling to tables.3SlickGridUses virtual rendering to allow you to work with hundreds of thousands ... Read More

How to match a regular expression against a string?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 08:51:16

212 Views

Use the match() method to match a regular expression against a string in JavaScript. You can try to run the following code to match a regular expression −The following is the parameter −match( param ) − A regular expression object.ExampleYou can try to run the following code to match a ... Read More

How to convert a date to a string using the universal time convention?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 07:59:39

95 Views

To convert a date to a string using the universal time convention, use the toUTCString() method. It returns converted the date to a string, using the universal time convention.ExampleYou can try to run the following code to learn how to convert a date to a string using UTC −   ... Read More

How to debug JavaScript in Visual Studio?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 06:47:21

2K+ Views

To debug JavaScript in Visual Studio, follow the below-given steps −Open Visual StudioSelect your project to be debugged in Solution Explorer.Right Click and select Browse With, and set a default browser.Now, go to START and type Internet Options.Above, uncheck both the options for Disable script debugging.Click Apply, and then Ok.Now ... Read More

How to use Custom Exceptions in JavaScript?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 06:35:16

126 Views

Use throw statement in JavaScript, to catch custom exceptions. You can try to run the following to work with custom exceptions −Example                                             Click the following to see the result:                          

What are callback functions in JavaScript?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 06:20:32

291 Views

When a function is passed to another function, it is called a callback function. It goes over this function than to call a passed function.ExampleYou can try to run the following code to learn how to work with callback functions −                 ... Read More

How can we create a new database by using PHP script?

Nancy Den

Nancy Den

Updated on 22-Jun-2020 13:34:56

71 Views

As we know that PHP provides us the function named mysql_query to create a new database.ExampleTo illustrate this we are creating a database named ‘Tutorials’ with the help of PHP script in the following example −           Creating MySQL Database                  

Previous 1 ... 5 6 7 8 9 ... 34 Next
Advertisements