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....
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 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...
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 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.
...
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
...
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...
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 ...
<div class="plugin-block">
<h3><a href="http://wordpress.org/extend/plugins/sailthru-triggermail/">Sailthru</a></h3>
**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...
How would code this in css and html? Should I do it with absolute? Or float it somehow? Any Ideas?
...
<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...
...
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...
Say,how to select the tds of the 1st column with jQuery?
...
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...
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....
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
...
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?
...
Can we have multiple HTML files in Phonegap application?
...
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...
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...