html

Use HTML Tidy executable with php, instead of compling

I have an application in php that is intended for shared hosting. So, I am going to have a hard time always getting html tidy compiled, since the hosts will vary, and what they provide will vary. Is it possible to just include the tidy executable in with my php application, and somehow, pipe html through that for cleaning? I am just l...

How to call html to jsp?

hi, my html file having the search box and when click on search box it will go to the jsp file... can you provide any sample code for this.. plz help me ...

jquery desktop blocking input and textarea

I'm trying to modify this: jquery desktop by adding a input field inside one of the windows. However, I can't type anything into the input. I opened firebug and the classes are flashing when I click the text input so I'm guessing that's what's blocking it. But I don't know how to fix this. Any help is appreciated. ...

.php vs .html . Why is IE rendering them differently?

I copied one of the html pages in a project and just changed the extension from html to php. The rendering is identical in all browsers but IE. It seems that IE treats the pages differently based on the extension. I checked the HTTP headers and they are the same for both pages. Did anyone have the same problem? ...

Thumbnails from HTML pages created and used automatically in web application

I am working on a Ruby on Rails app that visualizes product trees. The tree is built of nodes an everything is rendered in HTML/CSS3. Some of the products make several hundred SQL queries as the tree builds up (up to 800 queries on the biggest tree). I'd like to have small thumbnails of each tree to present it on an index page. So rende...

select numbers and insert to database ??

I have a html file that has invoice details I would like to know is there a way that I can retrieve only the invoice numbers and store it separately in my sql database using php? <p>Invoice ID: 0201</p> <p>MID : Q987</p> <p>Desciption: Solid Concrete Blocks</p> <p>Qty: 7478 Blocks </p> <p>&nbsp;</p> <p>Invoice ID: 0324</p> <p>MID : Q44...

How to open a folder using 'openWithDefaultApplication' in Adobe Air 2.0?

How would I create a button that links to an external folder using the openWithDefaultApplication class? I'm new to Adobe Air and developing using Dreamweaver (JS and HTML). Thanks in advance! http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html ...

Need to center align the image in CSS

Hi, I am trying to center align (both horizontally and vertically) the image inside a div box in html and css. I am not able to center align it. Here is my below code. <div style="float:left;margin: 10px" > <div style="border:1px solid gray;width: 60px;height: 60px;text-align:center;"> <img style="max-height: 60px;max-width...

SIFR and HTML entities

Hi, I have a webpage with an 'o' with an acute. How would I get this entity to display in sIFR3? I have output the html as both ó and Many thanks, C ...

How can I randomise <li> elements on page refresh?

Does anyone have any ideas about how I could go about randomising an list each time the page is refreshed? A jQuery solution would be perfect as I'm already using it. Any advice appreciated! ...

in JSF - How to rerender a component on button press. (The smart way?)

Hi, I have a simple HTMLCommandButton that I want to cause a rerender to another component. I know of a simple way to do that - add an ajax support object and have it run on "onclick" event and rerender. <h:commandButton value="Submit" action="#{actions.submitToDB}"> <a4j:support event="onclick" reRender="Button0" /> </h:commandButto...

Performance Comparison of HTML Added via Javascript vs. Normal HTML Markup

Has anyone ever tested, or does anyone know, the performance differences of these two different ways of rendering the same html content (other than the fact that one has imported the jquery library and the other hasn't, and that there are two requests in the Ajax version versus one)? Add HTML via Ajax <html> <head> <script src="jav...

create vertical menu with css.

how can i create menu like this.??? Thank you. ...

PHP: Not receiving some POST variables?

I have a form, it passes the following values: image_title, image_description, image_file I wanted to present this form multiple times, so I did the following: image_title_1, image_description_1, image_file_1 image_title_2, image_description_2, image_file_2 Multiple times, so I have the fields 1 - 10. I submit the form and print o...

how to generate HTML response in a servlet

how to generate HTML response in a servlet ...

PHP: building (X)HTML output with DOM - pros and cons?

I just started out with a new site and I decided to use DOMImplementation for building the complete site. What do you think about this, is it fast enough? I expect it to be quite a bit slower than the basic print method. I prefer the DOM one because it allows greater flexibility when building the final output, not to mention the more er...

Inserting html code in a mysql table

Hi everyone... I use joomla to manage a website... and i am developing a stand alone php application that will insert and modify data into the tables that are used by joomla to store the html of webpages that it dynamically creates... The way it works is i use a joomla component to create content and the html code of these articles ar...

HTML input textbox with a width of 100% overflows table cells

Does anyone know why the input elements with a width of 100% go over the table's cells border. In the simple example below input box go over the table's cells border, the result is horrible. This was testet and it happens in the same way on: FF, IE7 and Safari. Does it make sense for you? Am I missing something, do you know about a possi...

What is encoding characters the URL? Browser or PHP?

Imagine this simple form <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> <fieldset> <legend>Contact Me</legend> <label for="email">Email:</label> <input type="text" name="email" id="email" /> <button type="submit">Submit</button> </fieldset> </form> Now imagine it is accesse...

PNG encoded with multiple images + HTML usage

I got a PNG having multiple images encoded in it. How do I make use of all the images in a HTML, one for default, on mouse over use the other (I don't want to create different images and work). Are there any examples? ...