html

How to disable a jQuery function after it is called ?

I want to disable the working of a jQuery function. In my page I have a login form. After login success, it disappears and the main page is shown. But if I refresh the page, it again shows the main form. It is because all of my contents are in 1 .html file. I made all of them display: none; and after login jQuery runs the .show() method....

JSP mechanism for nav bar template/module

I have a navigation bar and, for some pages, a sub-navigation bar as well. I'd like to make this a module so I can easily import the navigation bars on each page. Easy enough to simply put the code in a JSP file and call: <%@include file="/WEB-INF/jsp/includes/sub_nav_bar.jsp"%> the only issue is the links and their labels change de...

I'm acquiring a VARCHAR variable through php, and want to show it using HTML/CSS. How do I auto format it so that it isn't one long sentence.

I basically want to automatically add line breaks to a VARCHAR variable I acquire from a mysql database trough PHP, so that it shows right. At the moment when I show it trough HTML, all it does is give me a long sentence. I imagine this can be done with CSS, but overflow: scroll just makes it scroll to the right and left. Use of javascr...

Links disabled in html

I've been working on a revamp of the charity site I'm the webmaster for, heroinitiative.org. It is located here: http://www.heroinitiative.org/revamp/default.html (and no it's not live code, it sits alongside the live site just so I can show progress to my boss, it's not really important to keep it under wraps, which is why I can post it...

Is there a small Perl XML parser that can replace CGI.pm's HTML generation functions?

Is there any little (1-2 .pm's) parser based around XML::* and suitable for replacing CGI.pm's constructions like: foreach($xmlnodes) { print table( TR( td( $_) ) ); } with node2html($node,$rules)? I ain't going to fire up XSLT. ...

HTML - pick images of Root Folder from Sub-Folder

lets say following is the DIR structure of my website Now in index.html i can simply refer images like <img src="./images/logo.png"> but what if i want to refer the same image fron sub.html what will be the src ...

HTML5 contentEditable with jQuery

I have some elements that need to have the text inside editable, for this I am using the HTML 5 attribute contentEditable. I can't seem to do use jQuery for this using multiple selectors. What I want to do is have every tag inside a container div be editable. Here's an example of what it would look like if it worked with jQuery: $("#con...

CSS: How to change spacing between radio button and it's text?

How do I change the spacing between radio button and it's text? I have the following HTML: <input type="radio" name="beds" value="1" />1+ <input type="radio" name="beds" value="2" />2+ Which produces something like this graphic: o 1+ o 2+ How do I change the spacing between the radio button and the "1+" text? I'd like the text to ...

Get text within div.

<div class="plugin-block"> <h3><a href="http://wordpress.org/extend/plugins/sailthru-triggermail/"&gt;Sailthru&lt;/a&gt;&lt;/h3&gt; **Intergrate Sailthru API functionality into your WordPress blog.** <ul class="plugin-meta"> <li><span class="info-marker">Version</span> 1.0</li> <li><span class="info-marker">Updated</span> 20...

Image with images around it in css

How would code this in css and html? Should I do it with absolute? Or float it somehow? Any Ideas? ...

HTML - Text Box - JS Function for Characters Left like SO

<input type='text' name='one' id='oneID' maxlength="150"> i need the JS to display the number of characters left that user can input a picture is worth a 1000 words so no more explanation required... ...

Evenly space a gallery of images

I have a gallery of images, each of which have the same width and height, say 10px. I want them spaced so that there are 5 on a row and they are each 5px apart, on all sides. The container div has 5px padding. There are multiple rows! My problem is that if I give each image a left margin of 5px then either: a) The container div is size...

How to select the first <td>s on the left of <table> with jQuery?

Say,how to select the tds of the 1st column with jQuery? ...

jQuery add css without being in html

I want to add css styles with jQuery, but not be in in the html when I print out html(). Example: $('#wat').css("cursor", "pointer"); $('#ok').click(function() { var str = $("#wat").html(); $("#html").text(str); }); when it prints out the html, inside the element with the ID of "wat", it has style="cursor: pointer; Is there a way...

Creating a dynamic one page web application

I would like to make a web application (PHP) that will have overlay container that contain dynamic fields/forms. I would like the user to complete the form but not be taken away from the main part of the page. Imagine, browsing a website and reporting a page error into an overlay but not being taken away from the page you were reading....

can i zoom the image in iframe

hi i want to know how to zoom the image in iframe. for example i have to view the image as 50% zoom,75% zoom and 100% zoom. is this possible? thanks in advance ...

Do external JS files get cached the same way images do?

If I have multiple pages that refer to a single pagehandler script, will the script be called from the browser cache if I navigate from one of these pages to another? ...

multiple HTML in Phonegap applications

Can we have multiple HTML files in Phonegap application? ...

How do I preserve variable values between HTML files?

Let's say I have a page that refers to a .js file. In that file I have the following code that sets the value of a variable: var foo; function bar() { foo = //some value generated by some type of user input } bar(); Now I'd like to be able to navigate to another page that refers to the same script, and have this variable...

How can i search multiple criteria in dropdown list ?

I have a tutor database (MySQL) which store tutor available subjects, example:- tutor1 available subject = A,B,C tutor2 available subject = A,B tutor3 available subject = A in SearchTutor.php; <select id="select3" class="medium" name="upsr"> <option selected="selected" value="%">-</option> <option value="A">A only</option> <option valu...