Tag: javascript

  • Checking Adult Images with Microsoft Azure Cognitive Services and JavaScript

    Checking Adult Images with Microsoft Azure Cognitive Services and JavaScript

    Discover the power of automating adult content moderation using Microsoft Azure Cognitive Services and JavaScript. This comprehensive guide walks you through the setup process, the intricacies of the Computer Vision API, and provides a ready-to-use JavaScript function for seamless integration. Ensure compliance with online content standards and enhance user safety with the techniques outlined in…

  • Free PHP, HTML, CSS, JavaScript/TypeScript editor – CodeLobster IDE

    CodeLobster IDE allows you to edit PHP, HTML, CSS, JavaScript and TypeScript files, it highlights the syntax and gives hints for tags, functions and their parameters. This editor easily deals with those files that contain a mixed content.

  • printing webpage without opening new window using jQuery

    Print is a create a big problem to mostly developers (I’m one of them). The problem like “print without opening new window”. Today, in this post I write a solutions of same problem. The solutions is : Use Jquery/Javascript with iframe elements. Small code for solution is below. var theUrl=”print.html”; $(“<iframe>”) // create a new…

  • how to check browser window visibility using jquery

    Whenever you switch the browser or tab then execute some events. Below is html & jquery code  to check your browser window visibility Using this code : Check the title bar when you are switch the browser or tab. If title bar display “Active” it means you are on current tab or browser If title…

  • how to use json in php?

    //test.php <script type=”text/javascript” src=”http://code.jquery.com/jquery-2.1.0.min.js”></script> <input type=”button” name=”show” id=”show” value=”Click TO Show Data ” /> <br> Json Encode Data : <div id=”json_output” style=”border:#000 1px solid;width:337px;height:337px;overflow:auto”> </div> Json Output Data of output variable : <div id=”json_output_variable” style=”border:#000 1px solid;width:337px;height:337px;overflow:auto”> </div> <script type=”text/javascript”> $(“#show”).click(function (){ var datastr=’format=json&id=37′; $.ajax({ type:’POST’, data:datastr, url:’json.php’, success:function(html) { $(“#json_output”).html(html); var obj=JSON.parse(html);//decode the json…

  • how to get multiple select values in javascript

    //Here client is id of multiple dropdown…. <select multiple=”multiple” id=”client” > <option value=’1′>1</option> <option value=’2′>2</option> <option value=’3′>3</option> </select> <input type=’button’ value=’Test’ onclick=’tes()’> <script type=’text/javascript’> function tes() { var cnt=document.getElementById(‘client’).length;       var arr=new Array();       var j=0;       for(var i=0;i<cnt;i++)       {         if(document.getElementById(“client”).options[i].selected == true)         {       …