HTML

57K

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

I have a form in html how to declare a codebehind in vb.net in the submit button in order to store the fields data on database?

regards
0
[Webinar] How Hackers Steal Your Credentials
LVL 9
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Hello Experts,

I have the following PowerShell Script that I received help with. I need to be able to convert the results to and HTML, CSV and Txt file. I need the results for each format. Please see my PowerShell below.

$bios = Get-WmiObject -Class Win32_BIOS
$cpu  = Get-WmiObject -Class Win32_Processor
$os   = Get-WmiObject -Class Win32_OperatingSystem
$sys  = Get-WmiObject -Class Win32_ComputerSystem
$key  = Get-WmiObject -Class SoftwareLicensingService

$sysProperties = [ordered]@{
	'-- PC --' = ''

        'Domain' = $sys.domain
	'PC Name' = $os.pscomputername
	'User Name' = $sys.UserName

	'-- Model --' = ''

	'Manufacturer' = $sys.manufacturer
	'Model' = $sys.model
	'Serial Number' = $bios.serialnumber
	'Product Number' = $sys.SystemSKUNumber

	'-- Hardware --' = ''

	'Processor' = $cpu.Name
	'Installed RAM' = $sys.totalphysicalmemory / 1GB -as [int]

	'-- OS --' = ''

	'Edition' = $os.caption
	'OS System Type' = $os.osarchitecture
	'OS Build' = $os.buildnumber
        'Product Key' =$key.OA3xOriginalProductKey;
}
$Separator = '-' * ($sysProperties.Values | Measure-Object -Property Length -Maximum).Maximum
@($sysProperties.Keys) | Where-Object {$_ -like '--*'} | ForEach-Object {$sysProperties[$_] = $Separator}
$sysProperties

Open in new window

0
The below I am mentioned my coding while am trying to get Hard Disk Serial Number. But I am getting error command on server side
 
My Code is :
 
$serial =  shell_exec('wmic DISKDRIVE GET SerialNumber 2>&1');
 
echo  $serial;
localhost Result : SerialNumber 202020202020202020202020365a4445334*****
 
BUT Server Result :
 
sh: wmic: command not found
kindly revert me as Correct Solution.
0
I have attached to this question (1) a PDF document, (2) a HTML document, and (3) a CSS style-sheet for the HTML document.

I am recreating the attached PDF document in HTML.

After viewing the HTML document and the PDF document, you will notice that the numbered lists in the HTML document are not indented like the PDF document's numbered lists.

I need CSS so that the numbered lists have the same formatting as the PDF document (with each successive line after the number indented).

I need the numbered references (below the <hr> tag) indented the same way as the PDF document as well (with each successive line after the number indented).

Any help with the CSS to do this would be much appreciated. The cleaner and simpler the solution the better, and I prefer solutions that would allow me to keep the HTML as it is (besides adding CSS classes to different tags if needed).
styles.css
cleaned-up.html
VBR.pdf
0
courseofmonth-native.JPGOnly 5 days left to get your HTML5 certification with your free Course of the Month. Take advantage of this month’s featured course and add a programming language to your resume today.
3
I'm looking for a tool that will label the components on a page with their position in the DOM, so I can see immediately that a particular div is a child of some other div and had some children divs. I know I've seen this tool but it was a long time ago and I don't recall where it came from. Chrome Dev tools?

Thanks for any help
0
I have an html5 web page created using a javascript countdown counter. I'd like to open a new web page or navigate to a new web page in the existing IFrame.
0
I am trying to style a sharepoint 2010 home page of an enterprise wiki. I edited the page --> Format text --> HTML and i entered my css there.
The problem is: SharePoint keeps adding .ExternalClass in front of my defined classes which prevent them from working.
0
ngAfterViewInit() {
            $('.owl-carousel').owlCarousel({
                  slideSpeed: 400,
                  paginationSpeed: 400,
                  singleItem: true,
                  addClassActive: true,
                  afterMove: function () {
                        var imgBg = $('.carousel-bg img.banner-application');
                        var indexNo = this.currentItem;
                        imgBg.removeClass('active');

                        $(imgBg[indexNo]).css({ opacity: 0, display: 'block' })
                              .animate({ opacity: 1 }, function () {
                                    $(this).addClass('active');
                                    $('.carousel-bg img.banner-application:not(.active)').animate({ opacity: 0 });
                              });
                  }

            });
      }




<div class="application-center" (window:resize)="onpageResize($event)">
      <div class="application-overview" id="overview-deposit">
            <!-- CAROUSEL -->
            <div id="carousel-banner" class="carousel-banner">
                  <div class="carousel-content">
                        <div class="carousel-bg" *ngFor="let imageList of applyImageList; let i = index">
                              <a href="https://www.w3schools.com" (click)="getAcceptUrl(i)">
                              <img *ngIf="i === 0" [style.background-image]="getImage(i)" src="{{imageList.image}}" class="banner-application active"/>
                              <img *ngIf="i !== 0" [style.background-image]="getImage(i)" class="banner-application" style="display:none;" src="{{imageList.image}}"/>
                              </a>
</div>
                        <div class="owl-carousel carousel-inner swipe-banner-login">
                              <div class="item" *ngFor="let imageDataList of applyImageList; let i = index">
                                    <div class="carousel-caption">
                                          <h2 …
0
Hi,
i created dynamically  html button server side using c# code and  onclick() event , i am  calling server side method() on page post-back ...in server side redirect method some parameters are used ...

I want to redirect page in new tab and keep existing page as it is, please provide your solution  with onclick() event or server side code.

Server side dynamic html code created for link button:
fileTest.Append(" <span>");
fileTest.Append("<a id=\"lnkPsBtn" + TestCatBuilder.GetCategoryById(category.CategoryId).Name + "\" name =\"lnkPsBtn" + TestCatBuilder.GetCategoryById(category.CategoryId).Name + "\"onclick=\"SearchTestData('" + TestCatBuilder.GetCategoryById(category.CategoryId).Id + "')\" > ");
                    fileTest.Append(TestCatBuilder.GetCategoryById(category.CategoryId).Name);
                    fileTest.Append("</a></span>");
 
 Script code:
<script type="text/javascript">
        function SearchTestData(someid) {
            __doPostBack("lnkPsBtn" + someid, someid);
        }
 
        // Postback
        function __doPostBack(eventTarget, eventArgument) {
            if (!theForm.onsubmit || (theForm.onsubmit() !== false)) {
                theForm.__EVENTTARGET.value = eventTarget;
                theForm.__EVENTARGUMENT.value = eventArgument;
                theForm.submit();
            }
        }
    </script>
 
 
Test.Redirect(urlParams);
 
  /// <summary>
        /// this will redirect the current HttpContext to the …
0
Free Tool: Path Explorer
LVL 9
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Post MS security patch KB3191898 all of my Outlook 2007 users are receiving error "The program used to create this object is Outlook. That program is not installed on your computer." trying to open attachments sent in rich text format. The main issue seems to be meeting requests that no longer have the option to send as html and are rich text only.

The only workaround we have found is to copy/paste to say desktop and then open the attachment. We are not quite ready to upgrade and my security officer will not let us remove the 'vulnerability' patch which I understand. Any ideas on a better work around or a way to default Outlook 2007 meeting requests to html format?

Thanks in advance.
for-experts.PNG
0
Hi All,

Our new web master decided to open the Joomla HTML editor on one of our Articles.  This messed up our buttons and now the web page shows a bunch of code underneath it.  Please see attached image.

I tried adding the HTML and script tags to the code and the HTML editor strips it out.  I have not idea on how to fix this.
Example.JPG
0
I have created a index.html file from the 1st exercise, exactly as per the 1st HTML5 tutorial, the items on the item list is displayed in a single line no line breaks, why is that?

Tried 2 different browsers and got the same result.
0
I have a working Jquery modal dialog which includes a form to collect a contacts address. At the top of the form is a drop down list which returns pre-defined addresses and a 'Use Address' button (id="signal).  The user can choose a pre-defined address if they wish and click the 'Use Address' button which takes the address values and pre-populates the form, thereby, saving the user from having to type in the address manually.

The html for modal form is
<div id="addcontact-window" title="Add Agency Contact">
    <div align="center">
    <p id="errors6"></p>
    </div>
    <form id="addcontactForm" name="addcontactForm" action="" method="post">
    <div id="addcontactFormBody"></div> 
    </form>
    </div>

Open in new window


The jquery code which declares/defines the dialog is:

$("#addcontact-window").dialog(
                        {
                        autoOpen: false,
                        maxWidth:850,
                        maxHeight: 700,
                        width: 850,
                        height: 700,
                        draggable: true,
                        modal: true,
                        buttons: {
                          "Save": function () 
                          { 
                          $.post("./add_agencycontact_process.php", $("#addcontactForm").serialize(), function(response)
                            {
                            if(!response)
                            {
                            

Open in new window

0
I want to modify the default behavior for link click: before actually following the link, I want to wait 3 seconds. Here's my code:

<div id="appdtic">appdtic</div>
<div><a href="tst.html?from=link1">first link</a></div>
<div><a href="tst.html?from=link1">second link</a></div>
<div><a href="tst.html?from=link3">third link</a></div>
<script>
   function dofunc(loc) {
      window.location.href=loc;
   }
   var elements = document.getElementsByTagName('a');
   for(var i = 0, len = elements.length; i < len; i++) {
      elements[i].onclick = function () {
         document.getElementById('appdtic').style.backgroundColor='yellow';
         alert('some alert!');
         setTimeout(dofunc(elements[i].href), 3000);
         return false;
      }
   }
</script>

Open in new window


Problem is that it does not wait 3 seconds.
Alerts are for testing purposes.

Thank you for your time.
0
I have a few dynamically created checkbox lists. I am using the below code to move the selected checkboxes to the top of the list.

function movefilters(elem) {
	/* Start of move checked items to the top */
	$(".media-search-list input:checkbox:checked").parent().each(function(){
		$(this).prependTo($(this).parent());
		$(this).animate({ scrollTop: 0 }, "fast");
	});
	/* End of move checked items to the top */
}

Open in new window


I would also like to sort the selected checkboxes alphabetically. Can you please advise how I would adapt the above code to do this?

Below is some of my html code for reference.

<ul class="media-search-list">
  <li data-search-term="architectural design">
    <input data-media-filter-value="Architectural design" id="architectural_design" type="checkbox">
    <label for="architectural_design"> <span class="label-title">Architectural design</span> <span class="label-title-quality">(25)</span> </label>
  </li>
  <li data-search-term="backlits">
    <input data-media-filter-value="Backlits" id="backlits" type="checkbox">
    <label for="backlits"> <span class="label-title">Backlits</span> <span class="label-title-quality">(15)</span> </label>
  </li>
  <li data-search-term="wall decor">
    <input data-media-filter-value="Wall decor" id="wall_decor" type="checkbox">
    <label for="wall_decor"> <span class="label-title">Wall decor</span> <span class="label-title-quality">(23)</span> </label>
  </li>
</ul>

Open in new window

0
I wanted to change the background color of a DIV (id=appdtic) on every click on all links; the bg-color should stay yellow for 3 seconds, and then the browser should load the link provided. Here's the code that does NOT work:

<div id="appdtic">appdtic</div>
<div><a href="tst1.html">first link</a></div>
<div><a href="tst2.html">second link</a></div>
<div><a href="tst3.html">third link</a></div>
<div><a href="tst4.html">fourth link</a></div>
<script>
   function dofunc() {
      alert('func alert!');
   }
   var elements = document.getElementsByTagName('a');
   for(var i = 0, len = elements.length; i < len; i++) {
      elements[i].onclick = function () {
         document.getElementById('appdtic').style.backgroundColor='yellow';
         alert('some alert!');
         setTimeout(dofunc, 3000);
      }
   }
</script>

Open in new window


The alerts inside the functions are for testing purposes. But, this doesn't work as expected. For me, it seems that setTimeout is ignored. What is wrong in the code?

For comparison, here is another code that works, although id does something else (it waits 3 seconds before actually submitting the form):

Yes, the button is not of a submit type, and is outside the form, so to circumvent the default event of the form.

<form name="formular" id="formular" method="post" action="test2.php">
</form>
<input type="button" value="send" id="submit">
<script>
    function submitForm() {
        document.getElementById("formular").submit()
    }

    document.getElementById('submit').onclick = function() {
        setTimeout(submitForm, 3000); 
    }
</script>

Open in new window


Thank you for your time.
0
Hello,

I am creating a HTML Form WebPart and want to sumit the data captured on the form elements to an application hosted else where. Can anybody suggest that why the code below isn't working



<script type="text/javascript">
function submitForm(containerElement) {
    var theForm = document.createElement("form");
        theForm.action = 'http://abc.intranet.xyz.com/search/?';
        theForm.method = "post";
        theForm.innerHTML = document.getElementById(containerElement).outerHTML;
    var formToSubmit = document.body.appendChild(theForm);
        formToSubmit.submit();
}
</script>

<div id="myform" onkeydown="javascript:if (event.keyCode == 13) _SFSUBMIT_">




<select name="SEARCH_rm_taxonomy_tax_office">
      <option value="" >Any Office</option>
   <option value="Global" selected="True">Global</option>
   <option value="Americas">Americas</option>
   <option value="Europe%2FAmsterdam">Amsterdam</option>
   <option value="Asia+Pacific%2FAustralia">Australia</option>
   <option value="Asia+Pacific%2FBangkok">Bangkok</option>
   <option value="Europe%2FBrussels">Brussels</option>
   
   
</select>


<select name="SEARCH_rm_taxonomy_tax_practicearea">
      <option value="" selected="True"> Any Practice Area </option>
   <option value="Banking+%26+Finance"> Banking & Finance </option>
   <option value="Capital+Markets"> Capital Markets </option>
   <option value="Corporate">Corporate </option>
 
</select>

<input type="text" …
0
How do I embed VideoLan VLC player in a HTML webpage on Raspbian on RPi3?
0
Get HTML5 Certified
LVL 9
Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Oh men,
Im wondering it is a free plugin or some calendar for  an consulting room apointment
its any idea or recomendation if its for free or open source better
regards
0
I am using Javascript, HTML, Json and PHP.  The emails were sending but now they are not.  Any help is appreciated.  Thank you.

www.mediascrubber.com/videos.html


<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<script>
$(function() {
  $("#myform").on('submit', function(e) {
    e.preventDefault();
    $.ajax({
      url: '//jsbin.com/vufeyag.json',
      dataType: 'json',
      data: $("#myform").serialize()
    }).done(function(d) {
      if (d.success==true) {
        $("#myform").hide();
        $("#results").text("Thanks!").show();
      }
    });
  });
});
</script>>

Open in new window


<?php

$webmaster_email = "ds@mediascrubber.com";
$email_address = $_REQUEST['email_address'] ;

function isInjected($str) {
	$injections = array('(\n+)',
	'(\r+)',
	'(\t+)',
	'(%0A+)',
	'(%0D+)',
	'(%08+)',
	'(%09+)'
	);
	$inject = join('|', $injections);
	$inject = "/$inject/i";
	if(preg_match($inject,$str)) {
		return true;
	}
	else {
		return false;
	}
}


if (!isset($_REQUEST['email_address'])) {
header( "Location: $feedback_page" );
}
elseif ( isInjected($email_address) ) {
header( "Location: $error_page" );
}
else {
mail( "$webmaster_email", "Subscruber",
 
   "From: $email_address" );
   

}
$jsonurl = "http://api.wipmania.com/json";
$json = file_get_contents($jsonurl);
var_dump(json_decode($json));
?>

Open in new window


<form id="myform" class="form-horizontal" action="send_mail.php" method="post">
				<div class="input-group">
                <input type="text" name="email_address" class="def-input" placeholder="Your Email Here">
                <span class="input-group-btn">
                <button class="btn-form btn" input type="submit">Subscribe</button>
                </span>
                
				</div>
                </form>
                <div id="results" style="display: none;"></div>

Open in new window

0
Before the Gridview at the bottom I need a button to add a new record but I can not figure out the html to make it work.

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="Test.Admin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" lang="javascript">
        $(document).ready(function () {

            //Initialize the Account Termination Date datepicker
            $('#divDatePicker').datetimepicker({
                format: 'MM/DD/YYYY',
                useCurrent: false,
                minDate: new Date(),
                maxDate: new Date().setYear(new Date().getFullYear() + 1)
            });
           
            //Initialize the BootGrid
            $(function () {
                $('#<%= grdAdmin.ClientID %>').bootgrid({
                    caseSensitive: false,
                    formatters: {
                        "commands": function(column, row)
                        {
                            var buttonText;



                            buttonText = "<button type=\"button\" class=\"btn btn-xs btn-default command-add\" data-row-id=\"" + row.ID + "\"><span class=\"fa fa-camera\"></span></button>" +
                                "<button type=\"button\" class=\"btn btn-xs btn-default command-edit\" data-row-id=\"" + row.ID + "\"><span class=\"fa fa-pencil\"></span></button> " +
     …
0
Form field validation for a date requirement to be: Current date on or after 10/01/2017 - cold fusion form

A new requirement for a form. I need to detect the date a form is being submitted to be the current date on or after 10/01/2017 in a cold fusion form.

The date won't be placed into the form field/s but I need to detect the date. This will be implemented on 10/01/2017 fyi. I'll need to set the code up to test say for today's date then once working set it up to detect 10/01/2017 for when it goes live.

Thanks for any help. I'll start researching the topic as I've never tried to work this type of code before. Current code for one of the fields is:

  <cfset errorMsg = ""> 
   	<cfif NOT refind("^[DdFfGgHhNnVv][A-Za-z0-9]{1,21}$", form.Contract_Number) AND NOT refind("^70[Zz]0[a-zA-Z0-9]{2}\d{2}[a-zA-Z][a-zA-Z0-9]{8}$", form.Contract_Number)>
	   <cfset errorMsg = "The Contract Number is required and can contain no more than 22 alphanumeric characters.,">
	</cfif>
	<cfset session.invoiceDataContr.errorString = errorMsg>

Open in new window

0
I am using this code.  Whenever an email is sent another page pops up (thank_you.html) saying thank you.  I don't want that.  I simply want the input field that previously said "Your Email Here" to now say.  "Thank You".    How can I do this?

www.mediascrubber.com/videos.html

Its at the very bottom of the page.  Subscribe.

I assume I would do an echo "Thank You" of some sort.  But where?

<form class="form-horizontal" action="send_mail.php" method="post">
				<div class="input-group">
                <input type="text" name="email_address" class="def-input" placeholder="Your Email Here">
                <span class="input-group-btn">
                <button class="btn-form btn" input type="submit">Subscribe</button>
                </span>
                <!--input type="submit" value="Submit" /-->
				</div>
                </form>

Open in new window


<?php
/*
This first bit sets the email address that you want the form to be submitted to.
You will need to change this value to a valid email address that you can access.
*/
$webmaster_email = "ds@mediascrubber.com";

/*
This bit sets the URLs of the supporting pages.
If you change the names of any of the pages, you will need to change the values here.
*/
//$feedback_page = "feedback_form.html";
//$error_page = "error_message.html";
$thankyou_page = "thank_you.html";

/*
This next bit loads the form field data into variables.
If you add a form field, you will need to add it here.
*/
$email_address = 

Open in new window

0
I have a form to send an email.  However it does not work........

<form class="form-horizontal" action="mailto:ds@mediascrubber.com"  method="post" enctype="text/plain" >
                  <div class="input-group">
                    <input type="text" class="def-input" placeholder="Your Email Here">
                    <span class="input-group-btn">
                      <button class="btn-form btn" type="button">Subscribe</button>
                    </span>
                  </div>
              </form>

Open in new window

0

HTML

57K

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.