Jump to content

Makwana Prahlad

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Makwana Prahlad

  1. Hello,@Niladri Please try this code,To JQuery click event is not working on dynamically created ul Li list in mvc. $("body").on("click", "#btnCreate", function(e) { $.ajax({ type: "Get", url: "/ClientMaster/AddClient", success: function (response) { $("#createContainer").html(response); $('#ModelPopup').modal('show'); setTimeout(function () { $(".btnSave").on("click", function () { var formdata = new FormData($('form').get(0)); var
  2. Try this line: window = Object.assign(window, { innerWidth: 500 });
  3. Hello,@likecoding Please try this code,To How to return string between special characters public static String innerSubString(String txt, char prefix, char suffix) { if(txt != null && txt.length() > 1) { int start = 0, end = 0; char token; for(int i = 0; i < txt.length(); i++) { token = txt.charAt(i); if(token == prefix) start = i; else if(token == suffix) end = i; } if(start + 1 < end) return txt.substring(start+1, end); } return nu
  4. try this: <div id="carouselExampleControls" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="..." alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="..." alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="..." alt="Third slide"> </div> </div> <a class="carousel-control-prev" href="#carouselExampleControls" ro
  5. Hello, @dane Please try this code,To Javascript Tabs not working <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script
  6. First, you need to get the ID of the playlist that represents the uploads from the user/channel: https://developers.google.com/youtube/v3/docs/channels/list#try-it You can specify the username with the forUsername={username} param, or specify mine=true to get your own (you need to authenticate first). Include part=contentDetails to see the playlists. GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=jambrose42&key={YOUR_API_KEY} In the result "relatedPlaylists" will include "likes" and "uploads" playlists. Grab that "upload" playlist
  7. At first, you need to use a input[type=file] to get a File. <input type=file id=file/> <div id=result></div> And then use FileReader to read file to target format, just like base64, text, buffer. const file = document.getElementById('file').files[0] const result = document.getElementById('result') const reader = new FileReader reader.addEventListener('load', () => { result.innerHTML = reader.result }) reader.readAsText(file, 'UTF-8') See: https://developer.mozilla.org/en-US/docs/Web/API/FileReader
  8. Hello, @gordonisnz Please try this code,To w3css replace text on hover ? HTML Code : <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> </head> <body> <div class="involved"><span>share</span> </div> </body> </html> $(document).ready(function(e) { $('.involved').mouseenter(function(){ $(this).fi
  9. <li><a href="more.html">Overview</a></li> <li><a href="more.html">Small Business</a><ul> <li><a href="more.html">Overview</a></li> <li><a href="more.html">Small Business</a></li> <li class="last"><a href="more.html">Corporate</a></li>
  10. Hello, @Raymond Herrera Please try this code,To how to install jQuary on Linux. Get jQuery up and running in a minute or less: Insert this into your HTML (most commonly in the head, but you can throw it before the end body tag too): <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> Then place a script element after your jQuery one. This would alert 'hello' after the DOM is ready. <script>$(function() { alert('hello') });</script> Using jQuery locally: After you get a feel, try downloading jQuery
  11. I'd like my video to start playing automatically when the page is launched without sound just like on this page: [LINK REMOVED]. I've tried any possible jQuery/javascript/CSS option I could find online but I always end up with Google error that's blocking the video from autoplay unless there was an interaction. How did they do it in the link above?
  12. To start MongoDB, run mongod.exe from the Command Prompt navigate to your MongoDB Bin folder and run mongod command, it will start MongoDB main process and The waiting for connections message in the console. If you want to connect mongodb through shell, use below commands For more information follow this link: https://medium.com/stackfame/run-mongodb-as-a-service-in-windows-b0acd3a4b712#:~:text=To start MongoDB%2C run mongod,connections message in the console.
  13. To change the data type of a column in a table, use the following syntax: SQL Server / MS Access: ALTER TABLE table_name ALTER COLUMN column_name datatype; My SQL / Oracle (prior version 10G): ALTER TABLE table_name MODIFY COLUMN column_name datatype; For More information follow this link https://www.w3schools.com/sql/sql_alter.asp
  14. Hello, @vmars316 Please try this code,To Put two tables side by side (on same line) <strong>Using display: inline-block; </strong><br> <table border=1 class="inlineTable"> <tr> <td>Cell content</td> <td>Cell content</td> <td>Cell content</td> </tr> </table> <table border=1 class="inlineTable"> <tr> <td>Cell content</td> <td>Cell content</td> <td>Cell content<
  15. Use the ampersand & to glue variables together: $url = "http://localhost/main.php?email=$email_address&event_id=$event_id"; // ^ start of vars ^next var
  16. Hello, @Bozaizen Please try this code,To Portfolio gallery with filtering <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * { box-sizing: border-box; } body { background-color: #f1f1f1; padding: 20px; font-family: Arial; } /* Center website */ .main { max-width: 1000px; margin: auto; } h1 { font-size: 50px; word-break: break-all; } .row { margin: 10px -16px; } /* Add padding BETWEEN each column */ .row, .row > .column { padding: 8px; } /* Create three equal columns tha
  17. public static Object[] remove(Object[] array, Object element) { if (array.length > 0) { int index = -1; for (int i = 0; i < array.length; i++) { if (array[i].equals(element)) { index = i; break; } } if (index >= 0) { Object[] copy = (Object[]) Array.newInstance(array.getClass() .getComponentType(), array.length - 1); if (copy.length > 0) { System.arraycopy(array, 0, copy, 0, index); System.arraycopy(array, index + 1,
  18. Hello,@discount85 Please try this code,To Need help with search bar <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * { box-sizing: border-box; } #myInput { background-image: url('/css/searchicon.png'); background-position: 10px 12px; background-repeat: no-repeat; width: 100%; font-size: 16px; padding: 12px 20px 12px 40px; border: 1px solid #ddd; margin-bottom: 12px; } #myUL { list-style-type: none; padding: 0; margin: 0; } #myUL li a { border: 1px solid #ddd; margin
  19. try this one <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * {box-sizing: border-box} body {font-family: Verdana, sans-serif; margin:0} .mySlides {display: none} img {vertical-align: middle;} /* Slideshow container */ .slideshow-container { max-width: 1000px; position: relative; margin: auto; } /* Next & previous buttons */ .prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-si
  20. The following SQL statement selects all customers with a CustomerName starting with "a": SELECT * FROM Customers WHERE CustomerName LIKE 'a%'; The following SQL statement selects all customers with a CustomerName ending with "a": SELECT * FROM Customers WHERE CustomerName LIKE '%a'; The following SQL statement selects all customers with a CustomerName that have "or" in any position: SELECT * FROM Customers WHERE CustomerName LIKE '%or%'; For more information follow this link https://www.w3schools.com/sql/sql_like.asp Thnak you😇
  21. Hello Please try this query,To How to reset the id in a table The DBCC CHECKIDENT management command is used to reset identity counter. The command syntax is: DBCC CHECKIDENT (table_name [, { NORESEED | { RESEED [, new_reseed_value ]}}]) [ WITH NO_INFOMSGS ] i hope this query will be useful for you. Thank you.
  22. <!DOCTYPE html> <head> <title> How to get selected value in dropdown list using JavaScript? </title> </head> <body> <h1 style="color: green"> GeeksForGeeks </h1> <b> How to get selected value in dropdown list using JavaScript? </b> <p> Select one from the given options: <select id="select1"> <option value="free">Free</option> <option value="basic">Basic</option> <option value="premium">Premium</option> </select> </p>
  23. <form> <input type="image" src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQksciuZ2x1A6GVjN9wuG928WoJX79Vuhvu8g&usqp=CAU" alt="Submit" width="48" height="48"> </form>
  24. Hello,@Azimut Please try this code,To Installation npm install upper-case --save Usage import { upperCase, localeUpperCase } from "upper-case"; upperCase("string"); //=> "STRING" localeUpperCase("string", "tr"); //=> "STRİNG" I hope this information will be useful . Thank you.
  • Create New...