We help IT Professionals succeed at work.

HTML

60K

Solutions

31K

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.

Hi
I put MAMP server up on my new dev machine OS X 10.15.2

It works, but it only serves it as pure text, not as correctly formatted / rendered HTML, the < > tags don't work.

if I call 'localhost' in the address bar, it lists the files in the localhost  'htmldocs' directory, but 'localhost/index.htm' and it dumps the html text, tags and all.

My HTML is:
<html>

<h1>
<i>
This is a title
</i>
</h1>
</html>

Open in new window


Did I miss a field / checkbox? in setup?

Thanks
0
Are there good and bad coded forms ?

customer notices spam starting to arrive to his own account via their www enquiry form for the first time. The start of a flood perhaps.

I control the exchange email account but not the www form

so is there anything that the web designers can do to tighten up the code on the form?

thanks
0
Hi,

I have page and on body tag I am calling the ajax call.
The process takes sometime. And I wanted to add loader to the page in the mean time loader process the request.

Please advise to add loader.

Thanks

</head>
<body><!-- <===== PLEASE NOTE THIS IS YOUR BODY TAG -->
<script>
    $.ajax({
        url: '/der/surface/userHasSession',
        data: { currURL: window.location.pathname + window.location.search },
        type: 'GET',
        xhrFields: { withCredentials: true },
        accept: 'application/json',
        async: false
    }).done(function (userdata) {
        console.log('Done');
    }).fail(function (jqXHR, textStatus, error) {
        console.log('Session Check Fail: ');
    });
</script>

Open in new window

0
I need to replace an URL image with a local image.
<div class="section_bg_image" style="background-image: url(https://via.placeholder.com/1920x900)"></div>

Open in new window


/resources/newimage.png
How can this be done. Thank you.
0
Hello,
Appreciate your help.

I have a question about websites which are in mobile version. My experience in this aspect is quite less.
Please confirm whether we can fix the position of the HTML text line on the top of the web page, and still keep that line running from the right to the left side (using <marquee> tag) at the same time.
Please let me know if we have another way (some JS for example) to do this task without using the <marquee> tag.

Thanks in advanced.

I am available from 08:30 to 22:00, GMT +7.
0
To get started with aws, I have created a s3 bucket , created a index html and few other pages to test my static web pages. I also created a EC2 instance. I'm writing an web application in .net core , where I want to read some input files (XML or Json ), and do some processing write the output and store those files back in S3 bucket.

How do I read/write files in the S3 bucket?
0
How do I host my html, css, handlebars, node, express, mysql websites?  

I see all kind of hosting plans with website builders. But, I am not sure what to look for in hosting when "you" build your own sites.

Thanks,
Ed
0
How to join two const variables?

const p_data = [{type: 'text', value: 'Erwin', style: 'text-align:center;font-size:19px; font'}]
const s_data = [{type: 'text', value: 'John', style: 'text-align:center;font-size:14px;'}];
I tried this but it didn't work.. Any help please!
p_data += s_data
0
hello, expert.
there is one home listings site.
I would like to receive some information within this site.
this site's url is https: =  //www.hurriyetemlak.com/satilik
I marked the information I want with a red square.
I want to get the data I marked with beautifulsoup.
and I want to get this data in json format.
I'm new to python.
import bs4
import requests

r=requests.get("https://www.hurriyetemlak.com/satilik")
print(r.status_code)
soup=bs4.BeautifulSoup(r.content,"html.parser")
#print(soup.find_all("div",attrs={"class":"col-lg-12 mt-1 box list-container"}))
adresler=(soup.find_all("div",attrs={"class":"col-lg-12 mt-1 box list-container"}))
for x in adresler:
    print(x)

Open in new window

ı did something in its own right.
but I didn't make much progress
I don't know how.
I need your help.
thanks
Ads-z.png
0
Hi,
I am displaying data on the ViewAllTasks page which has a delete, an edit and an add.  They all work except for the update one.  I do not get any errors and the program seems to run fine but the database is not updated and the view is not updated as well.
The add does something similar and it works:  it inserts a record in the database and the view is updated via the loadData() javascript.  What is it that I am doing wrong?  Please help.  Thank you

JAVASCRIPT:
//Load Data in Table when documents is ready
$(document).ready(function () {
    loadData();
});

//Load Data function
function loadData() {
    $.ajax({
        url: "/Tickets/ListITTasks",
        type: "GET",
        contentType: "application/json;charset=utf-8",
        dataType: "json",
        success: function (result) {
            var html = '';
            $.each(result, function (key, item) {
                html += '<tr>';
                html += '<td>' + item.ITNumber + '</td>';
                html += '<td>' + item.ITDescription + '</td>';
                html += '<td>' + item.ITEnterDate + '</td>';
                html += '<td>' + item.ITAssignedTo + '</td>';
                html += '<td>' + item.ITEstimatedCompletion + '</td>';
                html += '<td>' + item.ITPriority + '</td>';
                html += '<td>' + item.ITFrom + '</td>';
                html += '<td>' + item.ITStatus + '</td>';
                html += '<td><a href="#" onclick="return getbyTicketNumber(' 

Open in new window

0
Hi experts, I want to update my IndexedDb that the value of msales be updated and be added to 30.00 to become 250.00 in result and the value of created will remain.

My IndexdDB
key = 1975 value = {msales: "220.00", created: "11-18-2019"}

Js
function gsaleslocal(){
	var sales = "30.00"

	var transaction = db.transaction(["gsales"],"readwrite");
	var store = transaction.objectStore("gsales");

	var mytrx = {
	    msales: sales,
	};

	var request = store.put(mytrx,1975);
	
	request.onerror = function(e) {
			console.log("Error", e.target.error.name);
	}
	request.onsuccess = function(e) {
			console.log("Successfully added");
	}
};

Open in new window

0
Hi
I'm curious, if I follow the code format of this Github platformer.js example below, anonymous class,

Will it be uncomplicated to pop it into HTML and devices (maybe a converter like Cordova needed for platform specifics) ? (I'm adding to my previous question.)
I think the code is an excellent layout of everything I need. It is obvious where the touch listening will happen, like the other (click) events, tho I've never seen it work. Do touch and key events simply attach to the document, like the clicks? The document? - Not a screen?
Everything else looks very straightforward, to me. The game loop occurs at the end of all the methods' code

Thanks
(function() { // module pattern

  //-------------------------------------------------------------------------
  // POLYFILLS
  //-------------------------------------------------------------------------
  
  if (!window.requestAnimationFrame) { // http://paulirish.com/2011/requestanimationframe-for-smart-animating/
    window.requestAnimationFrame = window.webkitRequestAnimationFrame || 
                                   window.mozRequestAnimationFrame    || 
                                   window.oRequestAnimationFrame      || 
                                   window.msRequestAnimationFrame     || 
                                   function(callback, element) {
                                     window.setTimeout(callback, 1000 / 60);
                                   }
  }

  

Open in new window

0
We have a local server that hosts a records database and interface.  The interface is php and is accessed via browser, the database is mySQL.  We have a new piece of equipment that exports data into an xml file that is stored on a Windows 10 PC.  I would like to have some javascript/html that can upload the xml file and put its nodes into specific element ids on the browser accessing the records database.  The nodes of the xml file are always the same but the data changes.  The file always has the same name and when the machine loads a new xml file it replaces the old file.

I seem to be having trouble extracting the local xml file nodes after uploading them.  I need a specific way to get individual xml nodes into html elementids.  I've put a copy of the relevant part of a php file of the page I'm working on.  The part where I'm focused on begins on "function showResultra(xml) {"

There is extra language here, I'm using FileReader (a user uploads the xml file) and what I've been able to piece together.  

I can see the xml file in the console but I cannot seem to get at the xml nodes and put them into the html elements.  So, I know I'm getting the xml file when I load it, and I've tested separately that I can replace the content of the html elements, but I cannot seem to get the xml nodes from the xml file to the elements.  


//HTML

<li>  		<form action='#' onsubmit="return false;">
		<input type='file' id='fileinput'>
		<input type='button' id='btnLoad' 

Open in new window

0
Hi Experts,

I have a PHP Page that gets its pricing from a DB, but when I update the DB, the prices on  the PHP do not change. However, if i open another browser or incognito, the new prices are there.

How do I fix this? Is it something with meta-refresh?
0
Hello,
I've a little script that processes csv tab-delimited files and outputs other csv modified following our needs.

The script (called arch.pl)  is the following:

#!/usr/bin/perl

# open(FD_IN, "<STDIN") || die "Errore apertura standard input";
while (<STDIN>) {
	$Riga = $_;
	$Riga =~ s/\n//;
	$Riga =~ s/\r//;
	@Campi = split("\t", $Riga);
	#eliminazione di cragna importata da filemaker
    $Campi[1] =~ s///g if ( $Campi[1] ne "" );
	$Campi[4] =~ s///g if ( $Campi[4] ne "" );
	$Campi[5] =~ s///g if ( $Campi[5] ne "" );
	
	#eliminazione di spazi bianchi iniziali e finali
	sub  trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s };
	    for (my $i=0; $i <= 9; $i++) {
       $Campi[$i] = trim($Campi[$i]);
    }
	#tengo solo la prima lettera della sezione
	$Campi[7] = substr($Campi[7], 0, 1);
	printf("\"".$Campi[0]."\"|\"".$Campi[1]."\"|\"".$Campi[2]."\"|\"".$Campi[3]."\"|\"".$Campi[4]."\"|\"".$Campi[5]."\"|\"".$Campi[6]."\"|\"".$Campi[7]."\"|\"".$Campi[8]."\"|\"".$Campi[9]."\"\n");
	$cntRecord++;
}
# close(FD_IN);	

Open in new window


now the script is called in console via:

> perl arch.pl<input.csv>output.csv

Open in new window


the question is: can I embed this code in a .cgi web page and pass to it the input.csv with an upload file form?
0
Hello,

If you view my menu here on an iPhone or a responsive view.

http://careers.baffinland.com

The menu will slip below the logo and have the dropdown menu fly out to the right.  How can I make it locked to its position at top and fly out to the left below the logo?  So the hamburger menu will be aligned to the right side of the dropdown menu
0
Hi,
I have a main view which has a "Comments" link on each row that when clicked it opens up a partial view. The partial view displays a table and textboxes, and an "Add" button that when clicked it adds the data entered in the textboxes to the table.

The first time I click on comments, I add data to the textboxes and hit the Add button and everything works.

The problem is:  when I open the partial view from another record(by clicking on Comments) and add data to the textboxes, after I click on add it adds an extra blank row.  It is as if the add button is clicked twice.  Could you please help me solve this issue?  The code I am using is below.
Thank you very much.

**PARTIAL VIEW:**
        @model IEnumerable<HelpDeskSupport.Models.Comment>

        <html>
        <body>
    <table class="table table-striped table-bordered" cellpadding="0" cellspacing="0" border="0" width="1500" id="tblComments">
        <thead>
            <tr>
                <th>
                    @Html.DisplayNameFor(model => model.TicketNumber)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Comment1)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.AssignedTo)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.CreatedBy)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Date)

Open in new window

0
Hi,
I have a main form displaying data.  Then I have a "Comments" link on each row and on the click of it a partial view with a table opens up.  The partial view is to view/add comments and other data.  In this partial view, after the table, there are textboxes I can fill with data.  After adding data I click on "Add" and when I am done I would click on "Save" and whatever I typed in the textboxes is entered in the database.  This all works and gives you an idea of what I am working with(see attached pics as well).  

What I am looking for now is a way to fill the Ticket Number textbox(on the partial view) with the number from the Number field(on main form).  Also, this number should not be edited on the partial.  How can I achieve that?

I have been unable to find a solution.  Please help.  Thank you.

THIS IS THE CODE IN THE CONTROLLER:
//VIEW ALL COMMENTS AND DISPLAY IN PARTIAL
        [HttpPost]
        public ActionResult ViewComments(int ticketNum)
        {
            List<Comment> AllComments = new List<Comment>();
            using (DBModel db = new DBModel())
                AllComments = db.Comments.Where(x => x.TicketNumber == ticketNum).ToList();

            return PartialView("ViewComments", AllComments);
        }


//INSERT COMMENT
        public JsonResult InsertComments(List<Comment> commentsArray)
        {
            using (DBModel db = new DBModel())
            {
                //Truncate Table to delete all comments. 

Open in new window

0
Hi
How do I modify the following VBA code so that I can send the body of the email
as html eg  

Dim oHBody As String = ""
            oHBody = oHBody & "<html><body><font size=3  color=" & sColor1 & " name = 'Calibri'>" & oIntro & "</font></body></html>"
            oHBody = oHBody & "<br>"


Sub SendReports(DisplayMsg As Boolean, Optional AttachmentPath)
    Dim objOutlook As Object
    Dim objOutlookMsg As Object
    
    ' Create the Outlook session.
    Set objOutlook = CreateObject("Outlook.Application")
    
    ' Create the message.
    Set objOutlookMsg = objOutlook.CreateItem(0)
    
    With objOutlookMsg
        '.To = strTo
        'Subject = strSubject
        '.Body = strBody
        '.Attachments.Add strAttach
        '.Save
        '.Open
    End With
    Set objOutlook = Nothing
End Sub

Open in new window

0
Ok I know this sounds bizarre but I have a web page that I access on my phone.  It has a "submit" button that I need to be very sensitive to the touch, so that the instant I press it, it responds.  Sometimes I have to do it multiple times to get it to submit.  I assume an app would be better but for now my only option is a web page.  Is there any way that I can make this a more "responsive to pressing" submit button than it is now?  It is big enough that it is hard to miss.

Thank you!
0
I need some advice on whether or not a particular website development strategy that I'm considering implementing is feasible, ... or if it would be an SEO nightmare.  

What I'd like to do is to try to use ES6's "backticks" functionality to implement a very simple "includes" mechanism for re-usable elements within a static HTML page.  The idea would be to avoid having to use any kind of JS-based framework or library (ie: React, jQuery, etc), and to instead just leverage the native functionality within ES6.  

Consider the following very simple and very functional example:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>ES6 Backticks Test</title>    
  <style>
  .red { color:red; }
  </style>   
</head>
<body>	
<div id="example"></div>	
<script>
document.addEventListener("DOMContentLoaded",function(){
	let first = "Yvan", last = "Gagnon", nuts = 2
	example.innerHTML = `
	<h1 class="red">Hello ${first} ${last}!</h1>
	You collected ${nuts} nuts so far!
	<hr>
	Double it and get ${nuts + nuts} nuts!!
	` 	
});
</script> 			
</body>
</html>

Open in new window


This approach would allow me to create separate JS-based include files for different re-usable elements throughout a static HTML website (ie: header, footer, sidebar, etc), and I'm tempted to run with it.  However, .. would this be an SEO nightmare?  I ask because when I view the underlying source code, I don't see the rendered HTML source code.  All I see is exactly what you see in the code sample I've provided.  Still .. my understanding is that the major search engines are all now executing JavaScript when crawling sites, which allows for them to be properly indexed.  So what is the modern-day consensus on this?  Am I wasting my time? Or is this approach that I'm considering actually viable?

Thanks,
-- Yvan
0
Hi,

I have an SSRS report (SSRS 2016) which I would like to refresh every minute.
Found this link https://www.mssqltips.com/sqlservertip/5916/sql-server-reporting-services-ssrs-auto-refresh-report/ but I do not see the option of refresh.

Have changed the cached setting to expire after 1 minute but the execution time on the report doesn't change after one minute.
If I refresh the page, it does show new execution time, but the html should refresh itself every minute.

Adapted the rdl file with   <AutoRefresh>60</AutoRefresh> but still no luck.
Please advise.
J.
0
Hi Guys, the mobile site we have here for https://holidaysarecoming.net isnt appearing properly in Chrome, it looks fine in FF and incognito Chrome, i thought it could be a cache thing but i have tried purging the cache on Cloudflare and its showing me this, it should be showing like
logo-not-appearing.jpg
FF-appearance.jpg
0
How do I get rid of the blue border on the active state when clicking on the logo in the upper-left corner to back to the home page?

https://sheboyganbjj.com

I already added the following code as an embedded style.

#Map img a:active {
    border: 0;
    text-decoration:none;
}
0
Hi Experts,

I have a calculated field in a Caspio datapage that would like to change the appearance as follows.

1- Bigger size and bold.
2- Should be flashing.

The calculated value is.

case when [@field:Browser]="Chrome 78.0"  or [@field:Browser]="Safari 13.0" or [@field:Browser]="Firefox 69.0.1" or [@field:Browser]="Firefox 19.1" or [@field:Browser]="Firefox 68.1.1"   then ''  else 'Please update your browser!' end

Open in new window


See related question here.

Thanks
0

HTML

60K

Solutions

31K

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.