HTML

59K

Solutions

30K

Contributors

HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.

Share tech news, updates, or what's on your mind.

Sign up to Post

After the ajax post is success, how can i reload html div id = resultlist?
This ajax call is to add a record into the database.

<script>
                                   function AddNew(fleetid, feeDescription, priceType, cost)
                                   {
                                       $.ajax({
                                           url: "/Home/AddFeePrice",
                                           datatype: "json",
                                           data:
                                           {
                                               'feedescription': document.getElementById(feeDescription).value,
                                               'pricetype': document.getElementById(priceType).value,
                                               'cost': document.getElementById(cost).value,
                                               'stage': 'Active',
                                               'fleetId': document.getElementById(fleetid).value
                                           },
                                           type: "POST",
                                           success: function (data) {
                                               var result = data.updateFeeStatus;
                                               alert("Success " + result);
                                            },
                                           error: function (error) {
                                    

Open in new window

0
Determine the Perfect Price for Your IT Services
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

We are using an older Rainbow Portal Intranet site at work which allows users to sign in (For certain permissions) or use without signing in to use default permissions.

We have set up a page which ALL associates must read. So we want to log the users name or LAN ID when they open the page, The site has a log built in , it logs the date, time, user name (which is always blank), what page they looked at and length of time they were there. This gives us everything we need except assoc name.

Is there away I can get the LAN name of the user if they have not signed into the site in the Stored Procedure.
If you have any questions I will try to answer, but trying to put code in the HTML of the site would be very difficult if possible
0
how to show java-script alerts and HTML dialog input in Xamarin crosswalk ????
its working by default when using crosswalk in android studio ..
1
How do I create a list of items in flexbox.. Each entry in the list will have the attached image format

Thanks  Capture.JPG
0
I'm trying to develop HTML text highlighter for my project i noticed the component find on page  in android chrome which perform very fast i need to know is this component depend on java-script for highlighting or it used native code in android and i want to know what the algorithm they used on it to make it very fast i need some hint to implement it in my project but i need to be able modify it as i need like diacritic ignore and so on  find in page
0
Hi Web Experts,

I’ve found a menu on W3Schools which would probably suit my website quite well, because it’s lite (and has very little JavaScript and no external links except font-awesome which I can easily workaround), is 2 level, simple and responsive (using a hamburger menu).  Here’s the info on it, and here’s the demo.

It seems to work quite well except for some minor problems (some of which I might be able to work around myself), but one problem I don’t know how to fix is:

If I add more “Dropdown” menus (which I’ve done here), then on my phone click “Dropdown 1”, then change my mind and click “Dropdown 2”, it opens “Dropdown 2” so I can see the items under it, but within a second it automatically takes the 3rd option under the “Dropdown 2” menu (“Link 2C”).  (I guess this is related to the fact that “Link 2C” appears in the same position that “Dropdown 2” was before I clicked “Dropdown 2”.)  This problem happens on my phone (Samsung J7) in both browsers (Chrome and Samsung “Internet”), and I've also noticed it on a Samsung J5 and old Samsung Gio.  (No such problem occurs if I click "Dropdown 2" then "Dropdown 1".)

Is anyone able to offer a fix for this, please?

Thanks.
tel2
2
Which is faster?

(ASP.Net) ASPxImage vs (HTML) Image
(ASP.Net) ASPxLabel vs (HTML) Div

I would like to use the that is more efficient (speed & memory).
0
I have a jquery bootgrid. I am trying to display the sum of the "Time" in the footer: ID = #totalTime. I can't get this code to work.

----------Javascript
            // dynamically find columns positions
            var indexTime = -1;
            $(bootGrid).find('th').each(function (e) {
                if ($(this).attr('data-column-id') == 'time') {
                    indexTime = e;
                }
            });
            var totalTime = 0.0;
            $(bootGrid).find('tbody tr').each(function () {
                var time = 0.0;
                // loop through rows
                $(this).find('td').each(function (i) {
                    if (i == indexTime) {
                        time = parseFloat($(this).text());
                        alert(time);
                    }
                });
                totalTime += time;
            });
            $('#totalTime').text(totalTime.toFixed(2));

Open in new window


---BootGrid
            <table class="table table-condensed table-hover table-striped" id="grid-data">
                <thead>
                    <tr class="grid-header-nav">
                        <th data-column-id="time_id" data-visible="false">Time ID</th>
                        <th data-column-id="time">Time</th>
                    </tr>
                </thead>
                <tbody>
                    @{
                        foreach (TimeInfo timeinfo in Model.TimeInfos)
                        {
                            <tr>
                                <td>@timeinfo.Time_ID</td>
                                <td>@timeinfo.Time</td>
                            </tr>
                        }
                    }
                </tbody>
                <tfoot>
                    <tr>
                        <td>Total Hours</td>
                        <td id="#totalTime"></td>
                    </tr>

                </tfoot>
            </table>

Open in new window

0
HI Experts,

I have a child theme based on Appointment Pro that I am using on www.atlas365.ca

As you can see, in mobile view I have a burger menu, but how can I make the burger menu appear in tablet view as well, in order to avoid the menu overlap the logo?

Thank you,
0
Hello Experts,

I am attempting to have a table of contents generate automatically on SharePoint Online's Enterprise Wiki.  I came across this article that is exactly on point for this topic; however, upon initial implementation it didn't work as expected.

Further investigation led me to realize the classes defined within the code weren't correct so I update them and now the TOC does automatically generate based upon the heading type; however, there's no level differentiation in terms of the TOC's outline occurring so H1 is at the same outline level as say  H4.  

Unfortunately I am not well-versed in java script so I was wondering if one of you could lend me a hand?

Thank you

Incorrect Style Outline
<style>

#toc {

 display: table;

 border: 1px solid #aaa;

 background-color: #f9f9f9;

 font-size: 95%;

 padding: 7px;

}

#toc #tocHeader  {

 font-weight: bold;

 text-align: center;

}

#toc a:before { /* content:"• "; */ }

#toc a { line-height: 15px; margin: 10px; }

#toc .toc_Level1 { margin-left: 5px; }

#toc .toc_Level2 { margin-left: 15px; }

#toc .toc_Level3 { margin-left: 25px; }

#toc .toc_Level4 { margin-left: 35px; }

</style>

<div id="toc"></div>

<script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>

<script type="text/javascript">

function GenerateTOC() {

  $("#toc").append('<p 

Open in new window

0
Big Business Goals? Which KPIs Will Help You
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

I have asmx and I hope to have html / jquery to consume it.
The asmx below using class library as parameter.

I do not know how to consume it on html/jquery. Can you show me how to do that?

Thanks,


[WebMethod]
        public string CreateDisciplinaryComplaintInPDF(Domain.DisciplinaryComplaint dd)
        {
            Controller.PDFservice ps = new Controller.PDFservice();
            Domain.DisciplinaryComplaint ddNew = new Domain.DisciplinaryComplaint();
            #region data mapping
            ddNew.fullName = dd.fullName;            
            #endregion
            string returnString =  ps.GetDisciplinaryComplaintDownloadData(dd);
            return returnString;
        }

Open in new window

0
I have a graphic, shaped in a circle 9 (with 2 extra spots bellow it), its got 10 spots on it.  I want to break this down into 10 pieces, in a grid.

Something like this, 5x6, 'g' represents graphic:

_ _ g _ _
_ g _ g _
g _ _ _ g
_ g _ g _
_ _ g _ _
_ g _ g _

Was hoping for a suggestion on the best CSS to tackle this.
0
I have an MVC Web application. On the cshtml page, I have a data table that I am trying to format a date like M/dd/yyyy. My issue is that when the date is null, it displays "1/01/0001". I would like for it to just display blank if it is null. My code is below.

                            <td>@jobinfo.MLR_Submission_Date.ToLocalTime().ToString("M/dd/yyyy")</td>

Open in new window

0
With help from Zakaria Acharki and leakim971, I have added touch events to my drawing routine at: www.barnwellmd.com/PainDiagram/Testdrawing.html (modified so it doesn't send data to me).

However, sometimes when drawing on a touch screen, the line drawn is not under the finger. For example:drawing problem image.
I have tested the routine on a: Pixel Phone, Iphone, Samsung tablet, Microsoft Surface Book. The routine always draws at the wrong place using the Pixel Phone. The others frequently (not always) draws at the wrong place when zoomed in to and scrolled down on the page. Zooming and scrolling is disabled on the image itself but you can zoom and scroll off the image.

I believe this is the code causing the problem:
if( ev.targetTouches ) {
    var rect = ev.target.getBoundingClientRect();

    ev._x = ev.targetTouches[0].pageX - rect.left;
    ev._y = ev.targetTouches[0].pageY - rect.top;
}

Open in new window

I tried changing:
var rect = ev.target.getBoundingClientRect();

Open in new window

to:
var rect = canvas.getBoundingClientRect();

Open in new window

where canvas is defined as:
canvas = document.getElementById('imageView');

Open in new window

But that did not work.

I will appreciate and try any suggestion even if your not sure if it will work.

Thanks!

Here is all the JavaScript code for the routine:
var imageData, context, pixels;

function clearCanvas()
{
	context.putImageData(imageData, 0, 0);
}

function checkFields()
{
	var themessage = "Please complete the following 

Open in new window

0
I have a function in Access to retrieve some data from a web page. I need to get the correct syntax to access the next page of the process.

This is the code that I'm currently using that is not working.
   Set lnk = QPR.Document.Links(1)    ' 3=TMMK-VEH,4=TMMK-PWT,5=TMMC,6=TMMTX,7=TABC,8=NUMMI,9=TMMI,10=TMMBC,11=TMMAL,12=TMMNK
   lnk.Click

Open in new window


I believe the target page has been changed.

This is the source code of the page. I need to to click the link that is labeled "TMMK-VEH".
<html>
	<head>
	   <title>ToyotaSupplier.com: Supplier Key Performance Indicators</title>
	   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	   <link href="theme/Master.css" rel="stylesheet" type="text/css">
	   <script>
			function hidestatus() {
			    document.status = '';
			    return true;
			}
			if ( document.layers ) {
			    document.captureEvents( Event.MOUSEOVER | Event.MOUSEOUT );
			}
			document.onmouseover=hidestatus; document.onmouseout=hidestatus;
		</script>
		<script LANGUAGE="javascript" SRC="include/actionSubmitter.js"></script>
		
		
		
		
  
  		<script charset='UTF-8'>

			var environment = "prod";
			if(environment=='stage'){
					window['adrum-start-time'] = new Date().getTime();
					(function(config){
					    config.appKey = 'AD-AAB-AAH-WRX';
					    config.adrumExtUrlHttp = 'http://cdn.appdynamics.com';
					    config.adrumExtUrlHttps = 'https://cdn.appdynamics.com';
					    config.beaconUrlHttp = 

Open in new window

0
I have a user on W10 pro using Office 2016 Pro Plus.

Question is specifically about Outlook.

When viewing mail in the framework everything appears fine, but when he goes to reply all HTML formatting in the message is lost and reduced to code.  The setting in Outlook is showing HTML (as it should since original was sent in HTML), but messages are defaulting that way.

Same user has same Outlook mailbox profile on another machine with 2016 Pro Plus installed and no issues.  Tried a bunch of setting tweaks found online, ran simple repair and online repair, tried different profile.

Any thoughts?
0
Hi experts
Created a page in html and published and it's working fine but when same page copied and paste on different location, after publish page is not displaying properly its displayed like symbolic instead of image...
Please assist me..
Check attached file plz
0
Hi PowerShell Gurus,

Happy New Year Guys!

Once again, I need your help.

The company I work for has tasked me with generating a daily report, html preferred sent via email, of the Uptime of Windows Servers in our environment.

1. Query only active servers in our domains (Get-AdComputer -Filter {OperatingSystem -like "*windows*server*"} but I am having issues with the syntax of only active\enabled systems)
2. Generate an "Uptime Report\Date of Report" in an excel-like html format with systems that have been up longer than 30 days as red, systems that will need a reboot soon (21 to 29 days) yellow, and systems that are still within the 0 to 20 days window, as green
3. Email a list of users, daily, with this report so they can remediate these systems during our scheduled maintenance window

I found the system uptime code on the internet:

<#
.SYNOPSIS
Outputs the last bootup time and uptime for one or more computers.

.DESCRIPTION
Outputs the last bootup time and uptime for one or more computers.

.PARAMETER ComputerName
One or more computer names. The default is the current computer. Wildcards are not supported.

.PARAMETER Credential
Specifies credentials that have permission to connect to the remote computer. This parameter is ignored for the current computer.

.OUTPUTS
PSObjects containing the computer name, the last bootup time, and the uptime.
#>

[CmdletBinding()]
param(
  [parameter(ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)]
  

Open in new window

0
Hello Experts!

Please I want the ENTER KEY to perform the same function as the Submit button in the code below.

I've tried this:
$('.chat_message').keypress(function (e) {
	 var key = e.which;
	 if(key == 13)  // the enter key code
	  {
	    var to_user_id = $(this).attr('id');
        var chat_message = $('#chat_message_'+to_user_id).val();
        if (chat_message == ""){
            toastr.error("Your message is empty");
            return false;
         }
        var to_username = $('#to_username_'+to_user_id).val();
        $.ajax({
            url:"../controllers/insert_chat",
            method:"POST",
            data:{to_username:to_username, to_user_id:to_user_id, chat_message:chat_message},
            success:function(data)
            {
                $('#chat_message_'+to_user_id).val('');
                $('#chat_history_'+to_user_id).html(data);
            }
        })
	    return false;  
	  }
	});

Open in new window

Each time I press ENTER KEY, the page reloads and bootstrap modal disappears.

modal_content += '<input name="chat_message_'+to_user_id+'" id="chat_message_'+to_user_id+'" placeholder="Type your message here ..." type="text" class="form-control chat_message" autocomplete="off"><span class="input-group-btn"><button name="send_chat" id="'+to_user_id+'" class="btn btn-sm btn-info no-radius send_chat" type="button"><i class="ace-icon fa fa-share"></i>Send</button></span></div></div>';

Open in new window


AJAX:
$(document).on('click', '.send_chat', function(){
        var to_user_id = $(this).attr('id');
        var chat_message = $('#chat_message_'+to_user_id).val();
        if (chat_message == ""){
            toastr.error("Your message is empty");
            return false;
         }
        var to_username = $('#to_username_'+to_user_id).val();
        $.ajax({
            url:"../../insert_chat",
            method:"POST",
            data:{to_username:to_username, to_user_id:to_user_id, chat_message:chat_message},
            success:function(data)
            {
                $('#chat_message_'+to_user_id).val('');
                $('#chat_history_'+to_user_id).html(data);
            }
        })
    });

Open in new window

0
Active Protection takes the fight to cryptojacking
LVL 1
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

Hello, I would like to find the id's (I mean to be able to rebuild the URL with the good id linked to the points found on this svg OpenLayers map.
Could you help me, and tell me were I can find this data. It should be already dowloaded, am I right?
Maybe could you tell me the technology I should use, or the files I need to edit.

https://urbanisme.irisnet.be/permis?set_language=fr

When I download the whole page, I find in the folder, some wms files (joined here). Do you think I can get the data there?

Thanks
0
DataTables warning: table id=data-table - Requested unknown parameter 'Practice skills' for row 0, column 5. For more information about this error, please see http://datatables.net/tn/4
Upload2.html
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Import CSV File into Jquery Datatables using PHP Ajax</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
  <script src="https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js"></script>  
  <link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css" />
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  <style>
  .box
  {
   max-width:600px;
   width:75%;
   margin: 0 auto;;
  }
  </style>
    </head>
    <body>
	<div class="container">
   <br />
    <h3 align="center">Mark distribution Sheet</h3>
   <h3 align="center">Introduction to Mobile Application</h3>
   <br />
<form action="import2.php" method="post" enctype="multipart/form-data">
<div class="col-md-3">
     <br />
     <label>Add More Data</label>
    </div> 
	<div class="col-md-4">  
            <input 

Open in new window

0
i have create a report.html  i need an extra page on report.html is that possible
0
<h1>Final Report</h1>
<h1>Session Sept2018-Jan2019</h1>
<h2 align=left>Programme             :      Diploma In Computer Science</h2>
<h2 align=left>Course/Module Code            :      TSE3204</h2>
<h2 align=left>Course/Module Name            :      Cisco Discovery1</h2>
<h2 align=left>Lecturer(s)      :      Mdm Jihadah Binti Ahmad</h2>
<h2 align=left>Examiner            :      Mdm Suraya Binti Sulaiman</h2>
<h2 align=left>Date            :      11 Jan 2019</h2>
<h2 align=left>Course/ Module Learning Outcomes:</h2>
<p align=left>Upon successful completion of the course students will be able to:</p>
<ul>
<li align=left>Demonstrate aptitude and competence for working with Cisco routers, switches and Cisco IOS. </li>
<li align=left>Show the practical skills required for associate-level networking support positions.</li>
<li align=left>Demonstrate skills necessary to pass 2 different Cisco certification exams, CCENT or CCNA</li>
  <ul>
https://codepen.io/estelle-yi/pen/GPWaga
0
i wanna to create an auto generated report that able to write content ,insert result analysis  is there any example of source code to wrote in php or html
basic_html.doc
0
import.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);


if ( ! empty($_FILES['csv_file']['name']) ) {

    $file_data = fopen($_FILES['csv_file']['name'], 'r');
    fgetcsv($file_data);

    while($row = fgetcsv($file_data) ) {
      
        if( count($row)>15):
            //now you know you have at least 16 element
            $data[] = array(
			'student_id'  => $row[0],
            'name'  => $row[1],
            'Sem'  => $row[2],
            'sec'  => $row[3],
			 'Chapter_Exam'  => $row[4],
			  'Practice skill'  => $row[5],
			   'Assignment'  => $row[6],
			   'Final_Exam'  => $row[7],
			   'Total'  => $row[8],
			   'Grade'  => $row[9],
			   'C01'  => $row[10],
			   'C02'  => $row[11],
			   'C03'  => $row[12],
			   'C04'  => $row[13],
			   'C05'  => $row[14],
			    'Status'  => $row[15]
				);
        endif;
		};

    echo json_encode($data);

Open in new window


upload2.html
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Import CSV File into Jquery Datatables using PHP Ajax</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
  <script 

Open in new window

1

HTML

59K

Solutions

30K

Contributors

HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.