html

horizontal scrollbar on top and bottom of table

Hi! I've a table that is very large. So I decided to put a horizontal scrollbar that is placed on the bottom of the table. But I would like this scrollbar to be also on top on the table. What I have in the template is this: <div style="overflow:auto; width:100%; height:130%"> <table id="data" style="width:100%"> Is this possible to ...

Printing a formatted HTML page in C#

I am looking for a way to print a formatted html file in landscape mode in c# (primarily wpf). Print dialog would be nice in order to set the page setting to landscape. I tried using Microsoft's html to xaml converter and it destroyed the formatting. I find it quite amazing that there is no method or grabbing a file and sending direct...

How do I execute a PHP function in an onclick event?

I have some HTML files, and what I want to do, is put something like the following, inside the <head> section of the html document: <script href="myphpfile.php" /> and then somewhere on my page, I want to call a PHP function from an onclick event, like so: <a onclick="performPhpFunction();" href="javascript:void(0);">Do something</a> ...

Render HTML with CSS in Java

Hi, I'm trying to display HTML in my java application that has a linked stylesheet include in my HTML. I am transforming my XML to HTML using XSLT from Java. I want to include a stylesheet so I can easily style the html output. However the stylesheet is being ignored and the html is being output normally. To do this I am using a JEd...

How can I have my links display a little transparent box on a:hover?

I'd like to display a little tooltip similar to this: That little black box appears when I put my mouse over it. How can I achieve this? Is it using jQuery or MooTools or what? Thanks from this beginnig web designer! ...

Get POST response from a url and print response to page?

I'm trying to get a POST response from a url and I can not get the response to print to my html page instead it just redirects me to the url in the action with the response. Is there a way to grab the response with html? php? Code of html page i'm using <html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <fo...

What do people mean when they say "DOM Manipulation"?

I always hear people talk about DOM this, manipulate the DOM, change the DOM, traverse the DOM; but what exactly does this mean? What is the DOM and why would I want to do something with it? Thanks a bunch for the info guys! ...

CSS/HTML: Preventing string of non-alphanumeric characters from being split by word wrap?

Is there a way to prevent a string of non-alphanumeric characters from being split by word wrapping in HTML/CSS? For example, in a table cell, if I have a string such as '--------', it will be split over two lines at the right-hand edge of the cell, whereas 'aaaaaaaa' will remain intact and be pushed onto the next line. Edited to say: ...

Where do I append the link rel for jQuery on my HTML file?

How do I tell me .HTML file to link the jquery .js file I downloaded? <html> <head> </head> <body> <a href="#">Test</a> </body> </html> Also, this script for example, where would it go in my .HTML? $(function(){ $(".someClass").tipTip(); }); ...

why is my button losing focus?

This is what I want to happen.. When a user hits 'enter' a 'SearchForItems()' should trigger. What is happening is another control, with 'other button', on the page gets focus returned to it anytime any other element is tabbed out of or after onkeyup. I am having to force focus on the 'Search button' on page load, but after that any ti...

How to create below type html window?

I have to create below type html page. background (orange) image. HTML gurus, Please help out.! ...

Adding more than one class

Is it bad thing if I add more than one class for one object. Let's say: <a href="#" class="paren" class="defaul">text</a> Don't ask me why, I just need it. Thanks. ...

PHP Curl - Get data generated with AJAX

Hi, I want to get data generated by an AJAX request. In this page http://www.fipe.org.br/web/index.asp?p=51&amp;aspx=/web/indices/veiculos/default.aspx there are some html selects. When the user click on the first one (Marca), the second one is filled. I want to get this data. This is my code: <?php $curl = curl_init(); $postData = arr...

displaytag library and selected checkbox values

I am using the displaytag library to display a list of "permission" objects. The permission object contains an id, name, value, and associated application ID. When creating a "user group" one sets the name of the user group, the description, and selects the permissions to add to it by scrolling through the list in the displaytag table ...

Sometimes for no reason whatsoever my ul is positioned lower.

This is really really weird. Sometimes when I reload it shows where it should be, like this: When I change the color to Orange or Blue (haven't tested any other colors, that ul is brought down. What's the reason? Thanks for the help! #topuserbar a { color:Orange; } Here is the complete CSS and HTML. body { background-imag...

How to make a "hybrid" HTML drop-down list that can work as a text box as well?

For my website, I need to have a way for users to enter their cities. I'd like to use 2 drop-down list for that: a "State" and a "City" drop-down lists. The choices in the "City" list would depend on what "State' has been selected. However, there bound to be cases where a user's "City" is not in the drop-down list. To handle those case...

EXTRACTING data from a particular url and populating a dictionary in iPhone

Hi everyone, I am a newbie to iPhone app development. I would like to know the procedure to extract data from a particular website which itself populates the webpage's content using a jquery. I would like to extract this data and display it in my own format. Here is the url: source webpage Kindly let me know if there exists any fram...

Higher z-index appearing below lower z-index

What would make a html element e.g. an ul aboslutely positioned with a zindex of say 5000 to appear below a div of a lower zindex say 0? This behaviour is seen in IE8. ...

jQuery post.How to load invalid HTML markup to a div without breaking it

I am building a small CMS kind of application.I am loading a div with jQuery post method from the content returned from an asp.net page. <html> <body> <h3>Edit your posts</h3> <div id="divMArkupContainer"> </div> </body> <script> $.post("ajaxhandler.aspx", function (data) { $("#divMArkupContainer").html(data)...

HTML - What is the correct way to do the following layout?

Diagram A can be accomplished by having a valign="top" and align="right" on the parent TD. The red rectangle is a div with style="float:right". This works on most browsers, but not IE. IE will put a linebreak before the div. The Text is not surrounded in any tag. It is the first thing in the TD. The problem with the setup in Diagram A w...