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 want to print only the results portion of this page, not the list of races, etc.

http://www.gopherstateevents.com/results/cc_rslts/combined_scores.asp?meet_id=403

I think I should know this but here we are...

Thanks in advance.
0
Hire Technology Freelancers with Gigs
LVL 11
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

we have simple asp.net/c# with html5 in the front.
<li><a href="">Glee is awesome 1</a></li> will be loop from database.
My question is e.g.<a href="">Glee is awesome 1</a> is clicked,
how can I drop the value into "ShowMeWhatYouSelected"?

so when <a href="">Glee is awesome 1</a> is clicked, the textbox value should be Glee is awesome 1 and etc.
and I do not want to make the page refresh.
Now if i click <a> firstName text box value is gone.

*** I don't have to use <a></a> in  the list. I can change something else if it is easier to solve this issue.

Thanks


<input type="text" id="firstName" value="John">
  <input type="text" id="ShowMeWhatYouSelected">
   <div id="callAgentListDiv"      
    style="
    display:inline-block;
    position: fixed;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 1090px;
    height: 600px;
    margin: auto;
    z-index:100;
    background-color: #f3f3f3;display:none;">
    <ul id="limheight">
         <li><a href="">Glee is awesome 1</a></li>
         <li><a href="">Glee is awesome 2</a></li>
         <li><a href="">Glee is awesome 3</a></li>
         <li><a href="">Glee is awesome 4</a></li>    
         <li><a href="">Glee is awesome 5</a></li>
         <li><a href="">Glee is awesome 6</a></li>
         <li><a href="">Glee is awesome 7</a></li>
         <li><a href="">Glee is awesome 8</a></li>
         <li><a href="">Glee is awesome 9</a></li>
         <li><a href="">Glee is awesome 10</a></li>
    

Open in new window

0
Dear experts,

I have this  requirement and its getting difficult for me to wrap my head around it.

Need to create an html page and redirect user to that page dynamically on click of a print button.
This new HTML page should populate all the data. Using c # & Asp.net. Where should I start, I got all the data part done.

Please share your thoughts any working examples. Much appreciated.

ps  I don't want to write it to disk

- dAn
0
Hi,

I have a added a class tag in a site, specifically to be able to catch it via regex.
This is the html tag which I'm trying to catch

Table class="AntivirusKPI" border=2 cellpadding=4 cellspacing=3>                  
    <TR align=center>
    <TD><B>Latest Engineversion</B></TD>
    <TD><B>Percentage compliant</B></TD>
      <TR><TD align=center>1.1.14405.2</TD><TD class="AvengineVersionCompliancy" bgcolor=lightgreen align=center>99% </TD></TR>
      </Table>

When I try to get it, I do not get any result with regex.

        $URl = 'http://mysite'
        $pattern='<table .*class=\s*"AntivirusKPI"[^>]*>(?:.|\n)+?</table>'
        $webclient = New-Object System.Net.WebClient
        $html = $webclient.DownloadString($url)
        $Regex = [Regex]::Matches($html, $pattern)
        $Regex.value

Note that I also would like to catch tags with <td class=... <tr class= ... etc.

Please advise.
J.
0
I'm using jquery addclass function to add a css class to an element to change the background color while the div or anchor element is clicked and default to former background color when the next element div or anchor is clicked. But I noticed that when I click the first anchor, the background actually changed to black according to my addClass, but it turned back to the original color just about few seconds after the click. I want it to stay as black color according to my addClass until I click the next div. I'm using this for header tabs. Please how can I achieve this?

HTML
<div id="menu1">
<a id="logoutid" href="logout.php"><img src="images/out1.png" alt="logout" title="Logout"></a>
<div id="notify"></div>
<a id="friendid" href="follow_page.php?u=myname><img src="images/follow.png" alt="follow" title="Follow"></a>
<a id="settingsid" href="profile_page.php?u=myname><img src="images/settings.png" alt="rss" title="Profile Setting"></a>
<a id="homeid" href="user_audio.php?u=myname><img style="margin-top:3px;" src="images/home.png" alt="home" title="Home Feed" width="27" height="26"></a>
</div>

Open in new window


CSS
.icon-selection {
    background-color: black;
}

Open in new window


JQuery
$(document).ready(function() {
    $("#homeid").on('click', function() {
        $(this).addClass('icon-selection');
    });
});

Open in new window

0
I can't seem to get the autofill working on my forms for iPhone etc. (.Net 4.0 Web Site)

I've accessed numerous things online, done it and just never seems to work.

Example...  I tried following instructions Here and I have autofill options in Safari turned on as well.

(Two of my controls...)
<label for="nameoncard">Name on Card</label><br />
<input type="text" id="inpcardname" runat="server" name="nameoncard" class="field" placeholder="Cardholders Name" autocomplete="nameoncard"  />

No prompt for autofill when I go to the page from my iPhone.
0
I've reviewed the article by Julian Hansen detailing how to create linked dropdowns using JQuery and PHP. However, how would I go about this if I have the data stored in different folders located on a server?

Ex. Main Folder > Sub Folder > 3rd folder > Document

1st Dropdown list will provide a list of states (list extracted from Main Folder)

2nd Dropdown list will provide a list of cities (list extracted from Subfolder, dependent on 1st dropdown selection)

3rd Dropdown list will provide a list of counties (list extracted from 3rd folder, dependent on 2nd dropdown selection)

4th dropdown list will provide a list of word/excel/pdf documents (list extracted from document, list is dependent on 3rd dropdown selection)

The form should display as a popup form, with submit and clear buttons.

Test.html
Untitled-3.php
Untitled-2.js
0
Hello

I am printing view using lotusScript and HTML on web, I have set 100% table width.

HTMLPrint= HTMLPrint+ ""+tableStarter+"" + "<TABLE BORDER=""0"" CELLSPACING=""0"" CELLPADDING=""0"" WIDTH=""100%"" >"
                  HTMLNewArticle =HTMLNewArticle +   "<TABLE class = ""blueTable"" BORDER=""0"">"
Now for one of the TD on web takes too much width even thought it is data field.

After this I have set <th widht =""10"">datereview</th>
and while printing data i set <td width=""10"">doc.datefield(0)</td>
but while previewing on web it takes too much width while other who suppose to get proper width are getting smaller and wrapping in another line.
0
I'd like to have three small pictures on the left and one larger picture to the right of them that changes when the mouse passes over one of the smaller ones.  I'm using this, but its not changing images for me.  Can you see what's wrong? or if its simpler just suggest new code please for Wordpress, Thank You

I tried:
changeImage('img src="https://www.mysite/picture2.jpg')"/> and
changeImage('src="https://www.mysite/picture2.jpg')"/> to see if that would help, it didn't.

<table>
<tr>
<td style="border-width: 3px;" width="5%">
<script type="text/javascript" language="javascript">
                function changeImage(img){
                   document.getElementById('bigImage').src=img;
                }
            </script>
            <div>
                <p><img src="https://www.mysite/picture1.jpg" alt="" width="60" onmouseover="changeImage('img src="https://www.mysite/picture1.jpg')"/></p>
                <p>
<img src="https://www.mysite/picture2.jpg" alt="" width="60" class="size-medium wp-image-2289" onmouseover="changeImage('img src="https://www.mysite/picture2.jpg')"/>
                <p>
<img src="https://www.mysite/picture3.jpg" alt="" width="60" onmouseover="changeImage('img src="https://www.mysite/picture3.jpg')"/>
                <p>&nbsp;</p>
                </br>
            </div>
</td>
<td style="border-width: 3px;" width="25%">
<img src="https://www.mysite/StartingLargePicture.jpg" alt="" id="bigImage" />
</td>
</tr>
</table>
0
Hi All:

How does areas in pages expand. The rest of the areas/div/class adjust accordingly.

Let me know any property or attribute that allows this.

Best Regards

Sunnybrad
0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: 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!

Hello - I am very new to Angular 2 and am trying to figure out some things about input boxes/filters, etc.

I'm not seeing a lot of good examples online regarding how to build a custom search filter/dropdown in Angular 2...similar to a typeahead style filter in AngularJS.

....Where when a user starts entering text into an input box...a drop-down appears and shows all values in an array/table that match the text that has been entered.

I did find an example on GitHub...but it is marked as depreciated.

With me being so new to Angular in general...I am not sure I am searching for the correct terms either(?).

How would I modify the input box in the code below to include that functionality? So instead of the table itself starting to limit things as text is entered into the filter...the search box would dropdown so values that match what is being typed would be displayed...and the user can select the value from the drop-down list if they want...to have it then populate the table? Any assistance you can provide is greatly appreciated.


app.component.html

<div style="text-align:center">
  <h1>
    Welcome to {{title}}!
  </h1>
</div>
<div>

  <div>
<input placeholder="Enter Search Value" [(ngModel)]="searchText" />

   </div>
<hr>
  <table class="table">
  <ng-container *ngFor="let user of users | search:searchText">
      <tr>
        <th>First Name</th><td>{{user.firstName}}</td>
        <th>Last Name</th><td>{{user.lastName}}</td>
      </tr>
      

Open in new window

0
I cheched the default behavior of my Apache server:

- In case of a PHP file without sessions in it (session_start), the server responds without Cache-Control and Last-Modified in the reponse headers.
- In case of a PHP file with sessions, it responds with i.a.

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

Open in new window


I understand the second case and why Apache is doing this.

I don't understand the first case 100%. Apache does not include the Last-Modified header, because apparently by default it assumes a PHP file is dynamic, although a PHP file is not necessarily dynamic, for example:

<?php
    echo 'test';
?>

Open in new window


This is pretty logical of Apache, because you could just use an html file in a case like that. So we have to see the file as something like:

<?php
    echo microtime();
?>

Open in new window


Now every request the file is different. So the Last-Modified header would not make sense and that's why Apache is not serving (by default) the Last-Modified header in case of PHP files.

Till now I understand everything and it's clear.

Now check this: https://tools.ietf.org/html/rfc7234#page-5

A cache should do by default:

Although caching is an entirely OPTIONAL feature of HTTP, it can be assumed that reusing a cached response is desirable and that such reuse is the default behavior when no requirement or local configuration prevents it. Therefore, HTTP cache requirements are focused on preventing a cache from either storing a non-reusable response or reusing a stored response inappropriately, rather than mandating that caches always store and reuse particular responses.
0
hi,

i am stuck with a question from a customer!

my customer wants a webpage with a button that show a random number between 0 and 4000.

but the script need to generate that numer one by one. so first click the first number, then the second number, then the thirth and then the last number.

and the total number cannot be higher then 4000.

can anyone build this for me? i need a html of php page that can do this?
0
I would like to use a button in access or an event that will generate an html email using some of the values entered by the user on the form.  I am not sure if this is possible please let me know.
0
Hi,

I am looking to build a small Web App Tool that lets users add custom Screen Tips to their own Web App.

For example, a UX team can drag various screen tips onto various pages, and set parameters.

IF user = first time THEN show $TOOL_TIP_23 (and don't show again)

IF user = 5th time THEN show $TOOL_TIP_31 (and show everytime)

IF user IS not equal to sending a message THEN show $TOOL_TIP_12 (and don't show again)

Google use this in their own onboarding:

ost
I have a couple of questions which I hope someone can help me with:

01 - has anyone come across any PHP libraries that might be useful for this?

02 - is anyone aware of any existing products that do this (i'm sure there are loads, but can't find them)

Thank you in advance for your help.
0
Dear experts,
Searching for something probably basic nowadays.
A PS1 script wihich handle everything concerning a USer in AD. Format ideally on HTML with section or in a table.
I should exist no ?

Thanks for you help.
0
My boss wants to send this code snippet as an email so users can click the video inline and play the buffered video
<iframe width="560" height="315" src="https://www.youtube.com/embed/HIutIK8V3a8" 

frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>

Open in new window

how can I send this email from my Office365 email

thx
0
Hi,

I have this static html page in which I would like to add content from a powershell script.
I'd like to keep editing the html in Dreamweaver.
How can I achieve this? I could use get-content of htmlpage, then replace the string with output of powershell then set-content to save it but there has to be a better way?

Please advise.

J.
0
Hello

How can I print any row from an HTML table using a browser Console?
0
Free Tool: IP Lookup
LVL 11
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Hi,

we need to Load external web site and show it as a live website tile in our application where x-frame-options set to same origin for the external website.

We followed below approaches but nothing is working.

Please help us to know any framework/approach to achieve this.

Iframe : < iFrame src="www.xyz.com">

Ajax Approach : Ajax HttpGet Call to the external web siteand get the html and render on our website.But replacing the image, css and html links from html is not working properly.


Web Request Approach : Server side HttpGet Call to the external web siteand get the html and render on our website.But replacing the image, css and html links from html is not working properly.
0
I've embedded a tumblr blog in a website. Once the tumblr plug-in has initialised, the screen drops down by a couple of cms and I can't stop it.  Does anyone know why this happens.

Page is here:-

http://www.outstandingcarerating.co.uk/blog.html
0
I searched my question in Google and Youtube , but I could not found the answer i want . Every body is telling about "How to get data from sql database inside the <select> elment. This is very easy  But my question is some different.
<select name="colName">
<option value="column_1">ColumnOne</option>
<option value="column_2">ColumnTwo</option>
<option value="column_3">ColumnThree</option>
</select>

Open in new window

That was HTML code ,Now PHP,...
<?php
if(isset($_POST)) {
$colName = $_POST['colName'];
// SQL Query...
$sql = "SELECT $colName FROM tableName WHERE id = 3";

?>

Open in new window

I want that if an option from  select element is selected , then PHP should get value from 'option value' and put in SQL Query.. and according to this value , a specific column (having the name same as <select> element's value) should be retrieve to show in browser.
Generally, we run sql query as ..
$sql = "SELECT columnName FROM tableName WHERE someone = someone";

Open in new window

But here above I use a variable .
$sql  = "SELECT $colName FROM tableName WHERE id=3";

Open in new window

0
Dear Experts

I have in mind an "intricate" calculation involving: Asp Classic + javascript and Access database and html tables. My background in javascript is "-0.000"

It is my code and I want give to the user many ways for calculation the variables of any 2 urls selected.


<%
set conn=server.CreateObject("adodb.connection")
conn.open "Provider=Microsoft.jet.oledb.4.0;data source="& server.MapPath("db\bd1.mdb")
set rs_main=server.CreateObject("adodb.recordset")
%>

<%
rs_main.open "select * from add0",conn,1,2
%>

<h2>Statistics</h2>

<table style="width:100%">
 <tr>
    <th style="width:40%">Url</th>
	<th style="width:10%">X1</th>
	<th style="width:10%">X2</th>
	<th style="width:10%">X3</th>
	<th style="width:10%">X4</th>
	
  </tr>
</table>  
<%
do while not rs_main.eof
%>


  
<table style="width:100%">
  <tr>
  <!--
  CLICKLING ON THE CHECKBOX THE USER WILL SELECT TWO URLS AND THEIR DATA FOR CALCULATION BELOW
  -->
     <input name="choices" type="checkbox" value="something1" /><td style="width:40%"><%response.write(rs_main("url"))%></td>
    <td style="width:10%"><%response.write(rs_main("X1"))%> </td>
    <td style="width:10%"><%response.write(rs_main("X2"))%></td>
	<td style="width:10%"><%response.write(rs_main("X3"))%></td>  
	<td style="width:10%"><%response.write(rs_main("X4"))%></td>
	</tr>
</table>

<%
rs_main.movenext
loop
%>

<br><br>

<!--
CALCULATION PLACE HERE
-->
<table style="width:100%" height=10 >
<input type=text style="width:50%" 

Open in new window

0
Hi,

I had a problem with a content from urls like below. I need to extract json code from the url below and decode and then use it.
Unfortunately it was invalid json. json_decode returning null. I want complete part of html : "<div... from the url and save it as html file.


$url = "http://content-preview.webcollage.net/epartner/view-ppp?environment-id=live&module=axe&partner=epartner&wcpc=1492543619127&is-secured=false&format=js";

$unparsed_json = file_get_contents($url);
		$test = json_decode($unparsed_json);
		if(json_last_error()=== "JSON_ERROR_NONE")
		{
			echo "no errors";
		}
		else {
			echo json_last_error_msg();
		}

Open in new window

output: Json syntax error
0
what is meaning of below
document.getElementById("demo").innerHTML

is it html or javascript or ajax or what syntax?

when we say document which document?
what it mean by innerHTML is there is somethong like outerHTML
what is getElementById

how do we give id to element
what are elements
if no id then what happens

please advise
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.