Jump to content

Makwana Prahlad

Members
  • Posts

    77
  • Joined

  • Last visited

  • Days Won

    1

Makwana Prahlad last won the day on December 2 2019

Makwana Prahlad had the most liked content!

Contact Methods

  • Website URL
    http://www.ifourtechnolab.com

Profile Information

  • Gender
    Male
  • Location
    Ahmedabad
  • Interests
    HTML, CSS, JavaScript, C#

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Makwana Prahlad's Achievements

Newbie

Newbie (1/7)

1

Reputation

  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 file = document.getElementById("Imagelogo").files[0]; formdata.append("Logo", file); formdata.append("Imagelogo", $("#txtFile").file); formdata.append("ClientName", $("#ClientName").val()); formdata.append("Address", $("#Address").val()); formdata.append("Email", $("#Email").val()); formdata.append("website", $("#website").val()); formdata.append("ContactPerson", $("#ContactPerson").val()); formdata.append("PhoneNumber", $("#PhoneNumber").val()); $.ajax({ url: '/ClientMaster/Create', type: "POST", data: formdata, processData: false, contentType: false, success: function (data) { if (data != 1) { $("#createContainer").html(data); $('#ModelPopup').modal('show'); return; } else { $('#ModelPopup').modal('hide'); $.notify("Client Details Succesfully Added!", { align: "right", verticalAlign: "top", type: "success", background: "#20D67B", color: "#fff", }); Listing(); } }, error: function (xhr, ajaxOptions, thrownError) { alert(xhr.error); } }); }); }, 500); } }); }); I hope this code will be useful. Thank you.
  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 null; } I hope this code will be useful for you.
  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" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> Add bootstrap link
  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> </head> <body> <div class="container"> <h2>Dynamic Tabs</h2> <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" href="#home">Home</a></li> <li><a data-toggle="tab" href="#menu1">Menu 1</a></li> <li><a data-toggle="tab" href="#menu2">Menu 2</a></li> <li><a data-toggle="tab" href="#menu3">Menu 3</a></li> </ul> <div class="tab-content"> <div id="home" class="tab-pane fade in active"> <h3>HOME</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> </div> <div id="menu1" class="tab-pane fade"> <h3>Menu 1</h3> <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> </div> <div id="menu2" class="tab-pane fade"> <h3>Menu 2</h3> <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.</p> </div> <div id="menu3" class="tab-pane fade"> <h3>Menu 3</h3> <p>Eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p> </div> </div> </div> </body> </html> I hope this code will be useful for you. Thank You.
  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 ID. Also note the "id" is your channelID for future reference. Next, get a list of videos in that playlist: https://developers.google.com/youtube/v3/docs/playlistItems/list#try-it Just drop in the playlistId! GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet%2CcontentDetails&maxResults=50&playlistId=UUpRmvjdu3ixew5ahydZ67uA&key={YOUR_API_KEY}
  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).find('span').text('Mouse Enter'); }).mouseleave(function(){ $(this).find('span').text('Mouse Leave'); }); }); I hope this code will be useful for you. Thank you
  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 locally to your computer, and link it from your script file. The structure is like so: C:/web/index.html C:/web/js/jquery.js index.html: <head> <script src="js/jquery.js"></script> <script>$(function() { alert('hi') })</script> </head> You have the advantage of relying on your saved version offline if you don't have the Internet/Wi-Fi. You can also make custom edits to the jQuery source and modify it at will. I hope this code will be useful for you. Thank you.
  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</td> </tr> </table> <hr> <strong>Using float: left; </strong><br> <table border=1 class="floatedTable"> <tr> <td>Cell content</td> <td>Cell content</td> <td>Cell content</td> </tr> </table> <table border=1 class="floatedTable"> <tr> <td>Cell content</td> <td>Cell content</td> <td>Cell content</td> </tr> </table> //Css File .floatedTable { float:left; } .inlineTable { display: inline-block; } I hope this code will be useful. Thank you.
×
×
  • Create New...