html

Integrate 3rd Party Flash Component into an Adobe Air Application?

I'm fairly proficient with HTML/Javascript/CSS. It's my understanding that I can write an Adobe Air application using just those technologies. Let's assume I want to convert one of my webapps to an Adobe Air application, but this web app uses a 3rd party Flash component. Can I embed this 3rd party flash component into my Adobe Air applic...

Why aren't these styles resulting in a single-line header and centered page contents?

I am not that bad at this, but somehow i am not able to center the contents of the page. Also, the logo and tbar-right divs are not aligning properly (I'd like them to be arranged in a single line). This is my markup: <body> <div class = "container"> <div id="topbar" > <div class="logo"> <img src="images/rg-logo.jpg"/> ...

100% height and padding = overflow

Hi. I have a setup that looks like this: <html><head><style> table{ height:100%; width:100%; padding:0 20px 20px 20px; min-height:540px; min-width:720px; } tr.head{ height:35px; background:black; } td.left-bar{ background-color:green; width:220px; } td.spacer{ width:10px; } td.right-bar{ backg...

PHP Export MySQL to CSV - Results showing HTML

Hey everyone, I saw a post on this already, but it didn't really provide a solution (that has worked for me at least)... I have a PHP page that does some basic MySQL queries, the results of which are displayed on the page. I'm using some $_GET and $_SESSION variables throughout this process. In the same page, I also allow the user to ...

jQuery cloneTo instead of appendTo?

Hi. I am trying to use jquery appendTo in order to copy an element into another container. The object is indeed appended but, it is removed from the source. Is there a way I can append the element while leaving the source element where it is? call it copy call it clone call it whatever you feel like. Here is my current code: jQuery(do...

Can scripts be inserted with innerHTML?

I tried to load some scripts into a page using innerHTML with a div. It appears that the script loads into the dom, but it is never executed (at least in ff and chrome). Is there a way to have scripts execute when inserting them with innerHTML? sample code <!DOCTYPE html> <html><head> <title>test</title> </head> <body onload="document....

How Can I overide the CSS style IN a table

when you stretch your table in tinymce you get this <table class="opbouw" style="width: 725px; height: 170px;" border="0" cellpadding="0" cellspacing="0"> however I want it to be overruled because all tables must be 100% width for printing else its looks crappy. can anyone tell me how to overule it so the table is 100% when printing...

displaying links in java's JTextPane without html

I need to take text from a source as plain text and display it in a JTextPane or JEditorPane. The source text is not HTML but will contain URLs between square brackets which need to be displayed and function as hyperlinks. I've considered setting the pane's content type to text/html and surounding the url in html tags but that ends up i...

Background Image "Link" in CSS

I've inherited a large project that already has a large markup base coupled with a short deadline, so a complete rewrite is out of the question. As such, I have an issue that needs to be resolved ASAP: (Forgive my cryptic shorthand in advance) I have a header that contains an UL and a DIV. div id="header" ul id="nav" <a li...

CSS Set Table Cell Background Color Using Text Inside Table Cell

Have basically the same problem as this - text has a background color set and is in a table cell. Text background color is only behind the text, and does not fill the entire table cell, which it should. The solution is normally to set a bgcolor on the table cell. Difference is that this occurs in many places throughout this particular w...

Tiling a asynchronously loaded image - stuck between an <img> and a background URL

For a site with a lot of small thumbnail images, I wanted to use a placeholder gif while each image was loading. This requires code like the following: $('.this_img').each(function(){ var $this_img = $(this); var $this_src = $(this).find('.sliderImage:first').attr('src'); var img = new Image(); // wrap our new image in jQuery...

CSS problem in IE

I have the following code: DIV><TABLE><TBODY><TR><TD> <DIV id="namesClass" style="WIDTH: 700px"> <UL style="MARGIN-LEFT: 0px! important; LIST-STYLE-TYPE: none! important"> <LI style="PADDING-RIGHT: 5px; FLOAT: left">Construction hotel</LI> <LI style="PADDING-RIGHT: 5px; FLOAT: left">Associations hotel</LI> <LI style="...

Should I use ondeactivate or onblur when leaving a input textbox?

I have some HTML inputs and I need to run some javascript when the user exits them however I have always used onblur but a colleague has suggested ondeactivate. I can't find much info about ondeactivate and thought it was an old method for old browsers. Will onblur run on older browsers? ...

How can I count the number of lines a bunch of text wraps to inside a div?

I have a div with text loaded from a database in it. I have no control over the length of the text and want to calculate or count the number of lines it wraps to so I can hide all except a small segment at the beginning until a user clicks on "more". Is there any way to do this with javascript? Thanks in advance. ...

How to set img tag vertical center : html + css

I'm coding it <div> <a href="http://example1.com"&gt; <img src="example1.gif" /> </a> </div> <div> <a href="http://example2.com"&gt; <img src="example2.gif" /> </a> </div> a { text-align:center; height :80px; display:block; } The centering of the horizontal direction do well. but vertical is not. How to do it? By the...

How can I make the relative paths to JS & SWF files in HTML work?

I have created a simple flash menu and the SWF file, JS files (swfoject.js and flying.js) & XML files are in a folder called "icpmenu_es" on the server root. If I open the SWF file on my local HDD it works fine but if I alter the paths to the files for use on my website, it won't work at all. I know it has found the JS files because if I...

Download or just save an image file from a website using js

Hi friends, I want to download or just need to save the image file from a website using the javascript in pure coding itself.. Because i want to download nearly 1000 jpeg, so i would like to write a function to call and download those images. URL is available, from that i want to download the specific image Please guide regarding this...

Why is my style not being applied to a non-HTML element in IE?

This doesn't work in IE6 or 7: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Title</title> <style type="text/css"> N {display: block} </style> </head> <body> <div> <N>element1</N> <N>element2</N> <N>element3</N> <N>element4</N> </div> </body> </html> ...

Resizing effect on Html Table cell

I neeed jQuery help. He can we dynamically resize a table cell ?.If we resize it, change only affect that particular cell,rest should remain same. ...

How to get rid of the "Warning: trimming empty div" in Eclipse?

How do I stop this warning showing in Eclipse? Warning: trimming empty <div> No, I absolutely cannot make the div non-empty, I cannot change the code. ...