html

How do I convert the items of an LI into a json object using jquery?

If I have a list like the following: <ul class="nameList"> <li value="1">Bob</li> <li value="2">Frank</li> <li value="3">Sally</li> </ul> How can I convert that into a json object like so: [{"id":"1","title":"Bob"}, {"id":"2","title":"Frank"}, {"id":"3","title":"Frank"}] I need to get that data into that format...

Pulling HTML from a Webpage in Java

I want to pull the entire HTML source code file from a website in Java (or Python or PHP if it is easier in those languages to display). I wish only to view the HTML and scan through it with a few methods- not edit or manipulate it in any way, and I really wish that I do not write it to a new file unless there is no other way. Are there ...

Validating HTML from the command line

I'm a web developer who is increasingly using Vim to code web sites. Are there any HTML validation utilities (or techniques) out there that will take whatever file I'm working on and validate against its DOCTYPE without leaving the shell? T ...

How to take folder as a input in html?

If i want to take a file as a input in HTML i will be using <input type="file"> Now my question is, is it possible to take a whole directory as a input,if yes how to do that? ...

Parsing HTML with Php

I cant get the data between the tags into the arrays: // Load the HTML string from file and create a SimpleXMLElement $html_string = file_get_contents("data/csr.html"); /*the string really is in $html_string*/ $root = new SimpleXMLElement($html_string); Problem starts here when I try to get that the value between the tags: div, h2 and...

Can the Excel 'freeze pane' feature be implemented in HTML?

i want to fix first row of table and this must work in IE 6 , 7, 8 and mozilla 3.o above and this should be done with single table only, means the header row and other rows should lie in the same table. can anyone provide me the source code for this??? thanks to all , helping me out. As we implement in excel , the freeze pane scenario,...

html email problem with posted php variable

Hi I am working to send email with the html body. Body html is posted by php variable with ajax. but all html will be ignored. for example in email.php HTML element <textarea id="html" cols="20" name="TextArea1" rows="2">HTML code is here</textarea> Javascript var html = $("#html").val(); $.post("function.php", { html: html }, fu...

jQuery How i do solve a Jquery conflict

i put 2 jquery plugin together inside a webpage. Conflict happen between the 2 jquery. When i take out 1 of the plugin code. It work. But when i put in 2 together. just 1 of jquery wil working well. Can anyone help me solve tis? <script type="text/javascript" src="js/script.js"></script> <link rel="stylesheet" href="style.css" type="t...

jqgrid add / delete / modify button call a html page

Hello! i work with jqgrid for listings only also i don't use jqgrid forms i need to call external forms (example: update.cgi?id=123) to make modifications on the database. how can i make that ? thanks a lot ...

html - creating block

Hello, I have to create block like this: How can I do this faster using css+html? ...

Jquery horizontal slider for categorylist

Hi, im trying to create a sliding horizontal menu with different categories. I would like to use one div layer that has a fixed width value, and another div inside this one with more width that the first one. This way only part of this second div could be visible. Im having two problems: The categorylist html code is not working prop...

Input button from image using css

Hiya, Take a look at this picture, how can I use this image for my search input and the right part of the image(the magnifier) to use as a button for submitting search. What is the best way to do this? Thank you ...

Move scroll of a div with jquery

Hi, Im trying to move the scroll of a div with jquery, but i dont know what im doing wrong. Here is the code that im using: $("#CategoryList").animate({ scrollLeft: "=-5" }, "slow"); where CategoryList is the ID of my div with scroll. Could you give me a hand? Thanks in advance. Josema. ...

awstats Implementation

Hi I want to set up an awstats in my local server. I am using Xampp. My system is in windows 2000. What are the steps to do this? Also I got an error message "Error: You must change value of constant KEYFORMD5 in awredir.pl script.” What is this? When I implement this, but I know I am in wrong path. Does any one help me? ...

How do I align a label and a textarea?

ends up like XXXXX XXXXX Description: XXXXX I want XXXXX Description: XXXXX XXXXX "Description" sometimes spans multiple lines. Code: <p class="DataForm"> <label>Blah blah blah Description:</label> <asp:TextBox ID="txtBlahblahblahDescription" runat="server" TextMode="MultiLine...

C, HTML and CGI

Hi , I have a functionality written in C. I have to give input through the html page and the operation to be processed in C (on submit of a button) and the result has to be given to the same html page. Please help me out by given some simple examples. ...

UIWebView shouldStartLoadWithRequest only called once??

In my iPhone app, I have a UIWebView where I'm loading a local html. Everything works up just fine, but now I want to be able to handle local links (to footnotes): when I click on a local link, I want to be able to jump to the footnote refered by it, then be able to come back. <a href="#tofootnote">jump to footnote</a> I handled this...

Why a same html page directly in the machine running and IIS is not the same as display result?

Hi, All I Have a static HTML Page,Running in local Machine input the "C:\test.html" In IE8 .everything is work fine. But When i deploy on IIS and by : "http://localhost/test.html" This is a big difference display result between of two way. I am sure i use IE8 and same page. ...

Internet Explorer not rendering html returned from JQuery ajax post

I have a page with an input box whose onkeyup fires a JQuery ajax post based on what was typed (a search field) The ajax call's posted back html is supposed to populate another div on the page. Here is the jquery ajax post: var o = $(me.results).empty().addClass("aj3load"); $.ajax({ type: "POST", dataType: "text", url: me.url, ...

Looking for library/code that allows selecting html elements in a web page visually

I'm looking for open source libarary that I can use to enable users of my site to open any page (perhaps in an iframe) and allow them to select an html element from it just like firebug allows. It should be done in a website (no by a browser plugin). Any idea where to begin? Thanks! ...