Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x

HTML

58K

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

hi,

I can use VBA to download csv files published from google sheets with the function below which works well. However I also want to download csv files from another site that has the following format:

https://www.airbnb.co.uk/transaction_history/csv/XXXXXX?pending=1

(this is the URL that shows in the download history)

However all I get in the attached HTML file. Is there a way I could alter the VBA code to obtain the csv?

Thanks

Function DownloadFile(myURL, saveToPath)

Dim WinHttpReq As Object
Set WinHttpReq = CreateObject("Microsoft.XMLHTTP")
WinHttpReq.Open "GET", myURL, False, "username", "password"
WinHttpReq.send

myURL = WinHttpReq.responseBody
If WinHttpReq.Status = 200 Then
    Set oStream = CreateObject("ADODB.Stream")
    oStream.Open
    oStream.Type = 1
    oStream.Write WinHttpReq.responseBody
    oStream.SaveToFile saveToPath, 2 ' 1 = no overwrite, 2 = overwrite
    oStream.Close
End If

End Function

Open in new window

airbnb_txn_pending.csv
0
Industry Leaders: We Want Your Opinion!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Hi, I need a link checker. I'm using Inspyder Insight, but it gives me a phone number link that's on every page, and a few other pages that I don't need. I know I can exclude urls, but I don't want to exclude it from searching pages, I want to exclude it from seeing and reporting certain links.

So Ideally, if I could get a link checking tool where I can say: If the anchor text is a number or contains these characters, don't report it.

Anything like that out there? Thanks.
0
What is the syntax to set the Powerapps HTML control to reference a Sharepoint field that is already in a connection with the Powerapps app? I have my app working except displaying this one field that has HTML data in it from Sharepoint. It displays as a text field but shows all the HTML tags. Everything I've seen show to set the HTMLtext property but I cant find the right syntax. I do not want to change the SharePoint field type we use the HTLM formatting. There is limited documentation available for powerapps
0
I have a report that works with a regex and validates well enough w/ the regex. The client is asking to force the date field to be all caps though. I can add the style -  style="text-transform:uppercase" - to force this but when I do it throws an error. Anyone have any idea why this would happen? code below:
<cfinput type="text" 
                                          name="period" 
                                          validate="regex"
                                          pattern="^(JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC)-(19|20)[0-9]{2}$" 
                                          message="Please enter the Accounting Period in the correct format, i.e. MON-YYYY." 
                                          required="true"
                                          id="period"
                                          class="Headline12DrkBlu" 
                                          size="10" 
                                          maxlength="8"
                                          default="#period#">

 But if you add the style to force the all caps it errors out: 

            <cfinput type="text" 
                                          style="text-transform:uppercase"
                                          name="period" 
                                          validate="regex"
                                          pattern="^(JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC)-(19|20)[0-9]{2}$" 
                                          

Open in new window

0
Hi,

I have default.aspx page using frameset. I want to convert this using Masterpage. in asp.net and c#.

<%@ Page %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
	
  </HEAD>
<frameset rows="15%,85%"  border="0" frameBorder="0" frameSpacing="0">
     <frame src="AdminPage.aspx" NAME="Banner"  scrolling="no"/>
<FRAMESET border="0" frameBorder="0" frameSpacing="0" COLS="30%,70%">
    <FRAME SRC="index.aspx" NAME="frameName1">
    <FRAME SRC="blank.htm" NAME="frameName2">
</FRAMESET>
    </frameset>
</HTML>
 

Open in new window

0
Is it possible to email the HTML page as a PDF using  JavaScript?
0
I inherited a form that has an html button it
I need to build a on click event (Server side) that redirects to another page

Right now I have a .net label inside the button that works... but it does not make the entire "button" click area.

            <button>
                <asp:Label ID="lblPayNow" CssClass="lblbutton" runat="server" Width="100%" Height="100px"></asp:Label>
            </button>

Server side (.Net)

Page load
Dim path As String = HttpContext.Current.Request.Url.AbsoluteUri
path = path.Replace("TextLanding", "Payment")
lblPayNow.Text = "<a href='" + path + "' style='text-decoration:none;color:#ffffff; width:100%;'>Pay Now</a>"

All of this works...
I just need the "Pay Now" link to fill the button
0
Hi guys, i was wondering what is the best way to remove dates from all posts

You can see the date here


http://mediastreet.ie/interview/mediastreet-interview-ciaran-cunningham-ceo-carat-media/
0
Hi.

I have a virtual directory on my server called "uploads". The directory points to a specified folder outside the www-root.
How do I link to files in the virtual folder as an URL? I suppose I have to build in server.mappath somehow, but I can't make it work.
Any good advice? :-)

Best

Ulrich
0
https://www.aspsnippets.com/Articles/Google-Places-AutoComplete-example-without-using-Maps.aspx

why above codes do not work on mvc project?
I just create one and with it and it does not work. Can you help? i have basic html form inside of my mvc with just one address field.
0
Free Tool: Subnet Calculator
LVL 10
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

I was wondering if someone knows a script or could help get me started with a script (jquery, jquery mobile, javascript, CSS or combination) that simulate what the attachment shows. Basically, if they select an item to order it should appear in one window and the items to select from should be in the other window and some sort of animation should indicate that is happening. It is a phone interface but the click event should be able to make it useful from a regular web window. Thank  you.
sliding-screen-shot-666-.png
0
Scenario:
<form id="a">
Form collecting data (Name, Email, Address)
Submitting to Firebase
</form>

<form id="b">
Upload field to send file to Dropbox
</form>

Using:
Jquery, Bootstrap
Firebase

Not tied to any of these if suggested to change.


1. Added Form with fields ( in a <form> ) container
2. click submit to add to firebase
This works

3. Added a second <form> to hold the upload control
4. Added javascript to upload to dropbox
5. Has a "add files" button to add the files (javascript also located in main.js)
This does not work.  No errors, just does not fire. No console responses either.

I'm thinking maybe they need to be combined into 1 <form>??  Partial code below.

HTML for uploader
<section class="container main">

    <form onSubmit="return uploadFile()">
        <input type="file" id="file-upload" />
        <button type="submit">Add Files</button>
    </form>

    <!-- A place to show the status of the upload -->
    <h2 id="results"></h2>
</section>
            </div>
        </div>
    </div>
    <script src="https://www.gstatic.com/firebasejs/4.5.0/firebase.js"></script>
    <script src="main.js"></script>

Open in new window


Javascript for uploader
function uploadFile() {
    var ACCESS_TOKEN = 'abababababTHISISAFAKEACCESSTOKENababababababab';
    var dbx = new Dropbox({
        accessToken: ACCESS_TOKEN
    });
    var fileInput = document.getElementById('file-upload');
    var file = fileInput.files[0];
    dbx.filesUpload({
            path: '/testLFL' + file.name,
            contents: file
        })
        .then(function (response) {
            var results = document.getElementById('results');
            results.appendChild(document.createTextNode('File uploaded!'));
            console.log(response);
        })
        .catch(function (error) {
            console.error(error);
        });
        
    return false;
}

Open in new window

0
<script>

$(document).ready(function() {
          flexibleHeight();
    
	$('#example').DataTable( {
		 "scrollY":'50vh',
    "scrollCollapse": true,
		"scrollX": true,
		"searching":false,
		"paging":true,
		"sPaginationType": "listbox",
		"info": false,
    "dom": '<"top"flp>rt<"bottom"><"clear">',
     "columnDefs": [
    { "width": "20%", "targets": 0 }
  ]
		
	});


	$('input[type=text]').addClass('input-sm , form-control');
  $('.form-control').css('width, none');
  $('select').addClass('input-sm , form-control');
   $(".dataTables_length > label > select").css("display", "inline-block");

	 $( function() {
    var availableTags = [
      "ActionScript",
      "AppleScript",
      "Asp",
      "BASIC",
      "C",
      "C++",
      "Clojure",
      "COBOL",
      "ColdFusion",
      "Erlang",
      "Fortran",
      "Groovy",
      "Haskell",
      "Java",
      "JavaScript",
      "Lisp",
      "Perl",
      "PHP",
      "Python",
      "Ruby",
      "Scala",
      "Scheme"
    ];
     $( "#tags" ).autocomplete({
      source: availableTags
    });
 });
	 $( function() {
    $( "#datepicker" ).datepicker();
  });

   $(".glyphicon").click(function(){
        $(".filter").toggle();
    });



  
  $(window).resize(function(){
            flexibleHeight();
        });

  
});

function flexibleHeight(){
  var mainwindow = $(window).height();
 
   var header  = $('.filter').outerHeight();
 
  var oxynet  = mainwindow - header;
 


  

Open in new window

0
Hi All we have a string in our selenium tests which we we want to appear as a link in the report we are generating for example <a href=\"{link}\">{link}</a>. The probably is when the html report is generated it converts the < symbol to ;lt; and > to ;gt;. Is there a way we can try and prevent this occurring so the link appears correctly in the report
0
Hi there. I'm trying to center-align the 3 circle images and captions under them over mobile but not having much luck. Here is my page... http://machebeuf.org/future

Any ideas experts?
0
I'm developing a game on html5 with WebGl and I want to integrate PayPal service for digital goods in the game (coins, credits, boosters etc..). All examples that I have found in documentation regarding Express Checkout was connected with PayPal checkout.js lib that substitute a div for IFrame with PayPal button. I don't have ability to put such kind of button on my page because I draw everything on Canvas. I need ability to create dynamic requests and be notified when purchase transaction is done. So, is there a way to use PayPal on the client-side without standard IFrame solution?
0
Hello Friends,

Please let me know if you any idea about 'how to deploy outlook signature for domain users centrally? ' using group policy or any codes like addins, html etc..

I want to standardise email signature of all users across the organisation (e.g. Their name on the top and then phone, email, company info etc..).

Email Server Platform: O365
Outlook Client: Outlook 2010 Standard, Outlook 2013 Standard/Pro Plus, Outlook 2016 Standard/Pro Plus
OS: Windows 10 Pro

Thanks
0
Here is the tutorial I followed to get this far:
https://www.experts-exchange.com/articles/1132/Browser-Bot-Automate-Browsing-Sequences-With-C-PART-ONE.html#c2064546

What I'm doing is using an embedded web browser to interact with an HTML page.

In my code I'd like to set a checkbox to checked.


I'm trying to use an web browser object in MFC to interact with a website and check a checkbox.

I have a function that gets the DOM object and then where I'm struggling is using the interface to select the checkbox.  I've been able to interact with textfields and buttons no issue. Just the checkbox that's killing me.
My elementFromID function basically does this

   
 pDisp->QueryInterface(nTypeIID, (void**)&pElement);

Open in new window


Where nTypeIID is IID_IHTMLElement or whatever 2nd param is passed in.
pElement is what is returnedback.


   
So getting the element isn't the issue, it's interacting with it.
No where in the MSDN documentation can I find where it says how to set a checkbox value.

   
 void* pElem = ElementFromID(L"checkbox_id", IID_IHTMLElement);
	if (pElem != nullptr)
	{
		IHTMLElement* pCheckbox = (IHTMLElement*)pElem;
		VARIANT checked;
		checked.boolVal = true;
		checked.vt = VT_BOOL;
		pCheckbox->setAttribute(L"checked", checked, FALSE);

        // Alternate approaches that failed
        /*pElem = ElementFromID(L"order_terms", IID_IHTMLInputElement);
		IHTMLInputElement* pCheckbox = (IHTMLInputElement*)pElem;
		

Open in new window

0
On a Windows 10 computer using Windows mail - if there is a link in an email and I place my mouse pointer on it a box pops up with the html code for that link. Is there a way to disable this feature?

Thank you.

Robert
0
Tech or Treat! - Giveaway
LVL 10
Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Hi Experts,

In my project we have charts and need to convert them as png or jpg file . After few googleing its possible with canvas
am not sure its possible

Thanks in advance
0
Hi
I have a Powershell script that creates a html page, that ends up looking like this in ie. Chrome and IE:
transposed.PNG
But when I insert the source code in an email, it looks like this in Outlook:
transposed_outlook.PNG
The reason is pretty clear - Outlook doesn't understand som of the CSS.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
BODY{background-color:white;}TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}
TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:#4368a0;padding-left: 10px;padding-right: 10px;color: white}
TD{text-align: right; border-width: 1px;padding: 0px;border-style: solid;border-color: black;padding-left: 10px;padding-right: 10px;text-transform: uppercase;}
tr:nth-child(odd) {background-color: #a3bbe0;}
tr:last-child { background:#b5b5b5;font-weight: bold;border-top: 2px solid black}
td:first-child { background:#b5b5b5;text-align: left;}td:last-child { background:#7eb27c;}
</style>
</head><body>
<table>
<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup>
<tr><th>Date</th><th>02-10-2017</th><th>03-10-2017</th><th>04-10-2017</th><th>05-10-2017</th><th>06-10-2017</th><th>10-10-2017</th><th>11-10-2017</th></tr>

Open in new window

0
I'm having issues generating HTML/PHP code to PDF. Im using mPdf Here is my code:

<table id="packing_slip">
<?php

foreach($sheets as $s):
echo "<tr>";
echo "<td>";
$name= explode(' ',$s['customer_name'])
?>
<div style="text-align: center">
<img alt="" src="/">
</div> 
<h2 style="text-align: center">Hi <?php echo $name[0] ?>!</h2>
    <div align="center">
   <br> Here is your delivery for: <br>
   <?php echo date('l, F dS', strtotime($s['delivery_week']));?>
   <br>
   ORDER NO. <?php echo $s['order_id'] ?>&nbsp; | &nbsp;  CUSTOMER NO.<?php echo $s['client_id'] ?>
   <?php $query="select * from orders left join deliveries on orders.id = deliveries.order_id left join deliveries_meals on deliveries.id = deliveries_meals.delivery_id where orders.id = '{$s['order_id']}'";
        $result_main = mysqli_query($conn,$query);
        $row_main = mysqli_fetch_assoc($result_main);

        $query_meals = "select label, subtitle, meals.name from meal_options left join meals on meal_options.meal_id = meals.id where meal_options.id ='{$row_main['meal_option_id']}' ";
        $result_meals = mysqli_query($conn,$query_meals);
        $row_meals = mysqli_fetch_assoc($result_meals);

        ?>
   <hr style="height: 5px;border-top:1px solid #000 !important;margin-bottom:0px">
   <hr style="height: 5px;border-top:1px solid #000 !important;margin-top: 5px !important;">
   </div>
   <?php foreach($s['meals'] as $m):?>
   <h3><?php echo $row_meals['name'];?> </h3>
   <h5><i><?php 
  

Open in new window

0
I am New to MVC, Iam working on a functionality that take input in 1st page and displays info on second page what i have selected in page 1. i.e selected radio button, Data in dropdown.

I have two views View 1: HtmlHelper Form with radio button, 3 drop downs and datepicker. View 2: Want to show what i have selected in View1. Mainly radio buttons and datepicker values. I thought of using Viewbag for passing data between views but not possible because i need Jquery to find selected Html element.

viewbag.radio = $('input:checked').val();
0
I am trying to use datatables in my Django. But i have no idea why tables in datatables is not displaying. In fact, it is just a very normal table.  

{% block link %}
    <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
    <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('#example').DataTable();
        } );
    </script>
{% endblock %}

{% block body %}
<h2 style="font-family: Calibri"> Timesheets </h2>
{% if some %}
    <table  id="example" class="display" cellspacing="0" width="100%" border="1.5px">
        <tr align="center">
            <th style="font-family: Calibri" > Student ID </th>
            <th style="font-family: Calibri" > Student Name </th>
            <th style="font-family: Calibri" > Start Date </th>
            <th style="font-family: Calibri" > End Date </th>
            <th style="font-family: Calibri" > Action </th>
            <th style="font-family: Calibri" > Status </th>
        </tr>
        {% for item in query_results %}
            <tr align="center">
                <td style="font-family: Calibri" > {{item.studentID}} </td>
                <td style="font-family: Calibri" > {{item.studentName}} </td>
                <td style="font-family: Calibri" > …
0
what is the deference between reciprocal link and regular link ?
0

HTML

58K

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.