Smita Kapse has Published 498 Articles

Special Characters in HTML

Smita Kapse

Smita Kapse

Updated on 29-Jan-2020 07:30:58

6K+ Views

Some characters are reserved in HTML and they have special meaning when used in HTML document. For example, you cannot use the greater than and less than signs or angle brackets within your HTML text because the browser will treat them differently and will try to draw a meaning related ... Read More

Make HTML5 input type=“number” accepting dashes

Smita Kapse

Smita Kapse

Updated on 29-Jan-2020 06:29:36

3K+ Views

To allow HTML5 input type = ”number” to accept dashes, use a regular expression.Add the regular expression in the pattern attribute as shown below.[ 0 - 9 ] + ([ - \, ] [0 - 9] + ) ? "Add it to the code now:input type = "text" pattern = ... Read More

What HTML5 tag should be used for filtering search results.

Smita Kapse

Smita Kapse

Updated on 28-Jan-2020 09:17:26

209 Views

To filter search results, use the element. The header should be in the section of the search results:    Search results                                                                      

Performing Null check using HANA SQL Script

Smita Kapse

Smita Kapse

Updated on 18-Dec-2019 10:06:46

4K+ Views

You can go for using either NULLIF or COALESCE function to serve your requirement.NULLIF (expression, expression"): This function will return the same type whatever is specified as the first expression.Basically, NULLIF returnsThe first expression if the two expressions are not equal.NULL of type of first expressions if the expressions are ... Read More

Using subset of items present in the list in SAP Program

Smita Kapse

Smita Kapse

Updated on 18-Dec-2019 08:02:27

155 Views

You can use a SWITCH CASE statement to handle your scenario. This is a good choice if you know well in advance what all properties are required and what is not required. Also, it will let you to unit test your code.Otherwise, you can go for a collection like a ... Read More

How to turn a String into a JavaScript function call?

Smita Kapse

Smita Kapse

Updated on 03-Oct-2019 07:00:23

527 Views

To turn a string into a JavaScript function call, try to run the following codeExampleLive Demo                    function myFunction(argument) {             alert('My function ' + argument);          }          functionName = 'myFunction';          window[functionName]('is working.');          

Which one is better to use for a JavaScript link, “#” or “javascript:void(0)”?

Smita Kapse

Smita Kapse

Updated on 13-Sep-2019 13:14:45

201 Views

Using “javascript:void(0)” is definitely better, since its faster. Try to run both the examples in Google Chrome with the developer tools. The “javascript:void(0)” method takes less time than the only #.Here’s the usage of “javascript: void(0)”:If inserting an expression into a web page results in an unwanted effect, then use ... Read More

How to create vertical button column with GridLayout in Java?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:26

2K+ Views

To create a vertical button column, let us first create some buttons and set the layout as well −JPanel btnPanel = new JPanel(new GridLayout(10, 1, 10, 5)); btnPanel.add(new JButton("First Button")); btnPanel.add(new JButton("Second Button")); btnPanel.add(new JButton("Third Button")); btnPanel.add(new JButton("Fourth Button")); btnPanel.add(new JButton("Fifth Button")); btnPanel.add(new JButton("Sixth Button")); btnPanel.add(new JButton("Seventh Button")); btnPanel.add(new JButton("Eighth ... Read More

How to prevent a user from accessing a specific schema in MySQL?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:26

485 Views

To prevent a user from accessing a specific schema, you need to use delete command. Following is the syntax −DELETE FROM mysql.db WHERE Db IN("yourSpecificSchema", "yourSpecificSchema\_%")    AND User = "yourUserName" AND Host = "yourHostName";Let us implement the above syntax to prevent a user from accessing a specific schema. First ... Read More

How to display JTextArea in the form of a table with GridLayout in Java?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:26

758 Views

Display a component in the form of rows and columns using the GridLayout. Here, we have set a panel, within which we will create a layout with 3 rows and 5 columns −JPanel panel = new JPanel(new GridLayout(3, 5, 5, 5));Now, loop through and display JTextArea from 1 to 15 ... Read More

Advertisements