Web Technology

Web technology refers to the means by which computers communicate with each other using markup languages and multimedia packages. It gives us a way to interact with globally all over the world, like websites. Web technology involves the use of hypertext markup language (HTML) and cascading style sheets (CSS) and various types of scripting languages (such as - PHP, JAVA, C# etc). Web Technology includes: 1) Internet 2) HTML (markup language) 3) Scripting Languages such as java, php, javascript, C#, node.js, python, ruby etc. 4) Web Building

Subjects

Latest Asked Question

A : hi use following command in linux; <strong><code>sudo yum install php70-mbstring.x86_64 php70-zip.x86_64 -y</code></strong> then restart httpd <strong><code>sudo service httpd restart</code></strong>  
45 Likes
A : hi  use this command in putty or terminal on aws sudo yum install -y httpd24 php70 mysql56-server php70-mysqlnd httpd24 only when httpd is not install; then run; sudo service mysqld start
45 Likes
A : hi just use this function: function timeConversion($input) {         $uSec = $input % 1000;         $input = floor($input / 1000);         $seconds = $input % 60;         $input = floor($input / 60);         $minutes = $input % 60;         $input = floor($input / 60);         $hour = $input;         return $hour.'Hrs '.$minutes.'Mins '.$seconds.'Sec';     }
45 Likes
A : function ChangeUrl(page, url) {         if (typeof (history.pushState) != "undefined") {             var obj = {Page: page, Url: url};             history.pushState(obj, obj.Page, obj.Url);         } else {             alert("Browser does not support HTML5.");         }     } ChangeUrl('Page1', ''loading.php');
45 Likes
A : Hey you can use it also. setTimeout(start, 1000); var i = 1; var num = document.getElementById(&#39;number&#39;); function start() { &nbsp; setInterval(increase, 1000); } function increase() { &nbsp;&nbsp;&nbsp; if (i &lt; 100) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i++; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; num.innerText = i; &nbsp;&nbsp;&nbsp; } }
45 Likes
A : Hi simple method just use this code &lt;?php echo date(&#39;t&#39;) - date(&#39;j&#39;); ?&gt;
45 Likes
A : Hi simple code is here &lt;?php &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $d=cal_days_in_month(CAL_GREGORIAN,date(&quot;m&quot;, strtotime(&quot;next month&quot;)),date(&#39;Y&#39;)); ?&gt;
45 Likes
A : Hi use this code //How to set flash data $this->session->set_flashdata('alert', 'This is my message'); // After that you need to used redirect function goes on previous page redirect("students/studentList"); // How to get flash data on view $this->session->flashdata('alert')
45 Likes
A : hi  firstly load image or file at local using  file_get_contents(); php function  ex :  $x  = file_get_contents(("http://fresheats.com/images/watermark.png"); imagecreatefrompng($x); It will work.
45 Likes
A : First thing need to do i.e install Laravel maatwebsite package for use Excel facade. Just run command as below in composer or girhub bash composer require maatwebsite/excel Then open config/app.php <?php return [....     'providers' => [....         Maatwebsite\Excel\ExcelServiceProvider::class,     ],     'aliases' => [ ....         'Excel' => Maatwebsite\Excel\Facades\Excel::class,     ],    .... And at last here is code for export
create new method for controller.
/** * Create a new controller instance. * * @return void */ public function exportFile($type){ $products = Product::get()->toArray(); return \Excel::create('download_excel_demo', function($excel) use ($products) { $excel->sheet('sheet name', function($sheet) use ($products) { $sheet->fromArray($products); }); })->download($type); }
45 Likes
A : DOMPDF Wrapper for Laravel 5  Require this package in your composer.json and update composer. This will download the package and the dompdf + fontlib libraries also. Installation :  composer require barryvdh/laravel-dompdf Run above line in github / composer use the facade: $pdf = PDF::loadView('pdf.invoice', $data); return $pdf->download('invoice.pdf');
45 Likes
A : <html> <body> <form>  <fieldset>   <legend>Personalia:</legend>   Name: <input type="text"><br>   Email: <input type="text"><br>   Date of birth: <input type="text">  </fieldset> </form> </body> </html>
45 Likes
A :                         $cookie_name = "UserDetails";                         $cookie_value = json_encode($sessionData);                         setcookie($cookie_name, $cookie_value, time() + (86400) * (30 * 365), "/"); 
45 Likes
A : <div class="search-bar" style=" "> <input onkeyup="search(this.value)" id="searchType" class="field" type="search" name="search" autocomplete="off" value="" placeholder="Search here...">  </div> <ul> <li data-position="Tomato" class="class item col-lg-4 col-md-3 col-sm-4 col-xs-6 item-class"> <div class="actions">Tomato</div> </li> <li data-position="Patato"  class="class item col-lg-4 col-md-3 col-sm-4 col-xs-6 item-class"> <div class="actions">Patato</div> </li> <li data-position="onion"  class="class item col-lg-4 col-md-3 col-sm-4 col-xs-6 item-class"> <div class="actions">onion</div> </li> </ul> <script> function search(str) { var value = document.getElementById('searchType').value.toLowerCase(); var classDiv = document.getElementsByClassName('item-class'); if (value) { var i = 0; var curr = ""; for (i = 0; classDiv.length > i; i++) { if (curr = document.getElementsByClassName("item-class")[i].getAttribute("data-position").indexOf(value) != -1) { document.getElementsByClassName("item-class")[i].style.display = "inline-block";  } else { document.getElementsByClassName("item-class")[i].style.display = "none"; } } } else { for (i = 0; classDiv.length > i; i++) document.getElementsByClassName("item-class")[i].style.display = "inline-block"; } } } </script>
45 Likes
A : <!doctype html> <html lang = "en">    <head>       <meta charset = "utf-8">       <title>jQuery UI Autocomplete functionality</title>       <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css"          rel = "stylesheet">       <script src = "https://code.jquery.com/jquery-1.10.2.js"></script>       <script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>              <style>          #project-label {             display: block;             font-weight: bold;             margin-bottom: 1em;          }          #project-icon {             float: left;             height: 32px;             width: 32px;          }          #project-description {             margin: 0;             padding: 0;          }       </style>              <!-- Javascript -->       <script>          $(function() {             var projects = [                {                   value: "java",                   label: "Java",                   desc: "write once run anywhere",                },                {                   value: "jquery-ui",                   label: "jQuery UI",                   desc: "the official user interface library for jQuery",                },                {                   value: "Bootstrap",                   label: "Twitter Bootstrap",                   desc: "popular front end frameworks ",                }             ];             $( "#project" ).autocomplete({                minLength: 0,                source: projects,                focus: function( event, ui ) {                   $( "#project" ).val( ui.item.label );                      return false;                },                select: function( event, ui ) {                   $( "#project" ).val( ui.item.label );                   $( "#project-id" ).val( ui.item.value );                   $( "#project-description" ).html( ui.item.desc );                   return false;                }             })                              .data( "ui-autocomplete" )._renderItem = function( ul, item ) {                return $( "<li>" )                .append( "<a>" + item.label + "<br>" + item.desc + "</a>" )                .appendTo( ul );             };          });       </script>    </head>        <body>       <div id = "project-label">Select a project (type "a" for a start):</div>       <input id = "project">       <input type = "hidden" id = "project-id">       <p id = "project-description">    
45 Likes
A : Hi use some thing like this in laravel 5.5 public static function getTotalJobList($employerId = Null) {             $query = self::select('*')                  ->orderBy('candidate', 'desc')                 ->get();          return $query; }   > to get multiple row use above :  public static function getTotalJobList($employerId = Null) {             $query = self::select('*')                  ->orderBy('candidate', 'desc')                 ->first();          return $query; } > If you want to get single row use as above.  
45 Likes
A : Hi use same routes for both get as well as post some thing like as below in laravel 5.5 :  Route::get('/candidates', 'CandidateController@candidates')->name('candidates'); Route::post('/candidates', 'CandidateController@candidates')->name('candidates'); Fully tested and workable.
45 Likes
45 Likes
A : use the following code to create canvas object in html using javascript <canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;"></canvas> javascript is here:- var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "#FF0000"; ctx.fillRect(0,0,150,75);  
45 Likes
Web Technology Related Topic's