html

[GWT] Change Element's node name?

Is it possible to change the element's node name in GWT? I mean something like this: HTML h = new HTML(); h.getElement().setNodeName("mydiv") while there is no setNodeName() method for Element. I'd like to acquire <mydiv>some contents</mydiv> instead of default tag <div>some contents</div> Thanks for any hints. ...

JEditorPane is discarding empty elements

The following test fails with JRE 1.6.0_20 public void testSetGetTextWithList() throws Exception { final JEditorPane editorPane = new JEditorPane(); editorPane.setContentType("text/html"); editorPane.setText("<ul><li></li></ul>"); assertTrue(editorPane.getText().contains("<ul")); } Of course, there is a visual differen...

How to hide the url in php

Is it possible to hide the the url in the address bar of the web browser so that it won't necessarily match the location of the files. For example, this url: http://localhost/exp/regstuds.php You will always know by looking where to find the files in the computer. Is it possible to distort or disarrange or hide the url in such a way t...

absolute positioned element clipping if position outside its parent item IE7

Hi Im trying to position an element so its slightly positioned outside its parent item. In IE8 it works but in IE7 the positioned element gets clipped. Here's my code HTML: <div id="parent"> <div id="child">text</div> </div> The CSS #parent { height: 40px; width: 400px; position: relative; } #child { position: absolute; width:...

Column layout in HTML(5)/CSS

Is there a way in HTML5/CSS to have the columns layed out as shown below, and still have the text flow correctly? ###### ###### # C1 # # C2 # # # # # ###### ###### ###### ###### # C3 # # C4 # # # # # ###### ###### ###### ###### # C5 # # C6 # # # # # ###### ###### Just to clarify - I want to be able to w...

How to do a carriage return for a <th> tag in html

hello i have a table with <th> i want to do a carriage return when my titlle is long ...

how to use a specific font folder in my web site ?

Hi All, I have font folder of volta regular with license but i dont know how to use it in web site. Coz i dont want to replace it while user's machine don't have that font please tell me any solution to sort out this problem, Did have to upload it on server ? Thanks Mayur ...

Best practice to hide/encrypt email adress in webpage

I couldn't find a similar question, that's why here it is: Whats the best way to hide or encrypt an email link in a website, so that a crawler can't read it, but the user can nevertheless click it? I don't want to conufse the users by typing the email like this: john (at) mail.com or similar ways. (and i think this kind of links can ne...

problem in Printing A Webpage

There Is A Date Picker Code In my Program (Of Course We Placed A Calendar Picture In The Web Page) The Problem Now Is That How Can We Be Able Not To Include The Picture Of The Calendar Picture In Printing? ...

managing html rich text selections

Hi, I am writing a component for a web app which will display some html, and let me capture and manipulate the selection boundaries (of the text selected by the user). I have done this successfully (for Mozilla) with a simple div element using window.getSelection(). However, the browser selection API is different for IE. If I were to ...

C# parsing HTML for general use?

What is the best way to take a string of HTML and turn it in to something useful? Essentially if i take a URL and go get the HTML from that URL in .net i get a response but this would come in the form of either a file or stream or string. What if i want an actual document or something I can crawl like an XmlDocument object? I have som...

AJAX functionality not working

My questions are: How can I know if the AJAX is working properly?. How can I retrieve the sent data in the controller in CakePHP? My code is: function checkLength(obj,url){ alert("URL="+url+" OBJ="+obj); if(obj) { var params = 'query='+obj; var myAjax = new Ajax.Request(url,{method: 'post',parameters...

Background image is not displaying in IE6 and IE7

I Have 3 divs HTML MARKUP <div class="top-content-wrapper"></div> <div id="content-wrapper"> </div> <div class="bottom-content-wrapper"> </div> Applied CSS on .top-content-wrapper { background:url("img/white-box-top-bg.gif") no-repeat scroll left top transparent; height:10px; margin:0 auto; padding:0 30px; width:686px; } #content-w...

How can I layout a sidebar or pullquote?

I have 4 divs in a fixed width layout: a, b, c, and d, and they are ordered in the html like this: <div id="a"> </div> <div id="b"> </div> <div id="c"> </div> <div id="d"> </div> Using CSS, I want them to be laid out with divs a, b, and d in a vertical column, and div c to the right of and top-aligned with div b, like this: aaa aaa a...

Styling an Input Field

Hello When I try to alter the CSS for the input field named "title" below, which is classed by "submissionfield", the position changes, but the height, length, and font of the field do not change. How could I make the height of the input field "title" 22 px, the length 550 px, and the font Times New Roman? The CSS below does not do it...

XHTML editor wanted!

I need an editor that outputs clean HTML, and preferably strict XHTML with CSS, as I am going to display the resulting pages as help pages in a java application using xhmtlrenderer ("Flying Saucer") which apparently very much prefers XHTML with CSS 2.1. Having searched stackoverflow for HTML editor and XHTML editor, I've found several m...

Lightbox, floating a close button outside of an iFrame

Hey, I have decided to reword this question (as opposed to creating a new one)... I have a Lightbox (Colorbox), which opens an iFrame with basic HTML content. In fact, here is a picture: I would like the Close button to be where the Hollow White box is. The Lightbox (Colorbox) CSS is as follows, nothing I seem to do works. :( (The C...

HTML table td meaning

In HTML table, what does td stands for? I mean literally, what is it acronym for? Table division? Table data? ...

Automatically POST on document creation

In an HTML-document, i want to have a (if possible: invisible) form that POSTs the contents of one text input field to my server as soon as the document is created or if possible within s seconds. The document is created via javascript's open. How can i do that? ...

Progress Bar Filling - jQuery Implementation

I'm implementing my own Progress Bar using jQuery. My question is how can I fill (for example) only 30% of it with a background ? What are my options ? Basically, the Progress Bar is a simple div with rounded corners (-moz-border-radius). I'm using Firefox 3.6.3. [Update] I tried this example. How to force the right side of the filled a...