html

PHP solutions for storing forms in JSON

Forgive my second-rate google-fu, but I'm finding this topic tricky to search for. All I can find is crappy form-generators that will pump out HTML. I'm looking for a library or established approach to store forms (fields rather than form data) in JSON format. Is there either a open-source form-builder that takes simple input and makes ...

Get content within a html tag using php and replace it after processing

I have an html (sample.html) like this: <html> <head> </head> <body> <div id="content"> <!--content--> <p>some content</p> <!--content--> </div> </body> </html> How do i get the content part that is between the 2 html comment '<!--content-->' using php? I want to get that, do some processing and place it back, so i have to get and p...

Will domain sharding of content become redundant?

So currently IE7 can only handle 2 simultaneous images from a single domain, hence domain sharding. What does the future hold for domain sharding, will new browsers that can handle more connection render it unneccessary? ...

Style Sheet Loading Problem

Using C# In my webpage style sheet is not loading, i am using Google Chrome Browser Code. <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head runat="server"> <title>Data Entry</title> <link rel="stylesheet" href="G:/style.css" type="text/css" charset="utf-8" /> </head> </html> The above code is not loading the style.css file. How ...

Table scrollbar without changing headers and provide sorting in headers

Hello All, Here is mytable and need the headers to remain while there is a scrollbar only to the results and provide the sorting facility in the name. <table> <tr> <td>id</td> <td>name</td> <td>type</td> </tr> <% while(resultSet.next()) { %> <tr> <td><%=resultSet.getString...

Feedback on website please.

Hello everybody, I was wondering what everybody thought of this project I've been working on and whether there is anything that I should change before launching it. Bare in mind this is my first go at designing a full site. Feel free to feedback on any aspect you feel is not up to scratch, ie design, code, whatever you like. I'll be...

Applying DIV/Span tag to a word by specific co-ordinates

Sample HTML Data <body style="width:300px;"> <h3>Long-Text</h3> A simple tool to store and display texts longer than a few lines. The search button will highlight all the words matching the name of objects that are members of the classes listed in searchedClasses, itself a member of the KeySet class. The highlighted words are hyperte...

How to make a rating image like imdb.com

Hi, I am trying to make some raing part in my website. I want a rating image, when the user moves mouse over over first star to ninth star, all stars in the sequence are lighted. And when the user clicks for example 9th star then the movie's rating is going to be nine. How can i do that? ...

Center horizontal list style menu

Hi, I have the following code: CSS #main { width:100%; height:120px; border:solid 1px #efefef; } #links { background-color:#808080; } #links ul { margin:0px auto; padding:0px; list-style:none; background-color:#eee; height:30px; } #links ul li { float:left; margin:0px; list-style:none...

Where to write the code for modalpopupextender Popup when a link is clicked for asp.net (VS 2005)

Hello Guys, I am trying to get a popup when a link is clicked. I have no idea where i should place the code for modalpopupextender in the code. Does the code has to be written along with the link button. I get many errors like "An extender can't be in a different UpdatePanel than the control it extends" and many such. Please someone hel...

Why isn't my UL Menu working?

Here's the HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Hi World!</title> <link rel="stylesheet" type="text/css" href=...

How to mark up caption for HTML lists

AFAIK, there is no dedicated element--like <caption> for tables, <figcaption> for figures, etc.--to mark the header of a list. What markup should I use? In HTML 3.0, there was an element <LH> but it is deprecated now. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eget enim nec metus feugiat porta. Suspendisse ...

How to pull data from xml and break it in pages (pagination)

Hey everyone, I am using simplexml to pull data from an external xml source. I have got values even for limiting the number of results to display. I thought I could paginate with a simple query within the URL, something like "&page=2" but it is not possible as far as documentation shows. I downloaded a pagination class intended to use w...

Popup when a link is clicked.

Hello I need a popup when a link is clicked. But in the page load itself, popup is shown at the bottom of the page. I want it to be shown only when the link is clicked. Where am i doing wrong?? Please help me out guys! I am a learner. Thanks a lot! <cc1:ConfirmButtonExtender DisplayModalPopupID="ModalPopupExtender4" ID="ConfirmButtonEx...

Need help in getting HTML of a website in Java

Hello all, I got some code from http://stackoverflow.com/questions/3285077/java-httpurlconnection-cutting-off-html and I am pretty much the same code to fetch html from websites in Java. Except for one particular website that I am unable to make this code work with: I am trying to get HTML from this website: http://www.geni.com/ge...

Using the <a> tag as a button without following its link

I use the <a> tag to build buttons. I use JavaScript (jQuery) to implement the behavior. How can I prevent the browser from following a link, while continuing to execute all click() events? This: $("a.button").live("click", function(event) { return false; }); doesn't work, because, depending on the position of that handler it might ...

HTML: cannot open client e-mail app

hi, for some reason, the following code doesn't work. I don't understand where the issue is. I just want to open a client e-mail app to send an e-mail. <a href="mailto:[email protected]?subject=My Website&amp;body=This e-mail has been sent to inform you about my website website: www.mywebsite.com">Send an email to a friend<...

How come there is 4px of extra padding appearing under my <a> element?

H3LLO, For some reason there is 4px of extra padding appearing under the a element. I am seeing this manifest in both Firefox and Chrome. I remember seeing this phenomenon on Flickr in its early days except it was a blue bar that appeared under s wrapped in elements. Here is a link to the example code that illustrates my problem. The...

two values for one name in input

Hey, I have one input (type radio) that I want to insert it 2 values, something like that: <input type="radio" name="name" value1="value1" value2="value2" /> And after draw each value seperated with PHP. There is a way to do it? (And no.. I dont want to insert input with type="hidden") Thank you. ...

Mixing ordered lists, links and variables in PHP/HTML

I'm taking a break from Project Euler to learn some PHP/HTML for kicks and giggles, and I found a page of simple exercises. So, on my 'site,' I want to have an ordered list of links to pages of each of the exercises, but I decided to do it in a dynamic manner as opposed to hard coding each item as I do the exercise. Unfortunately, the p...