I'm trying to match the point between 2nd and 3rd paragraphs to insert some content. Paragraphs are delimited either by <p> or 2 newlines, mixed. Here's an example:
text text text text
text text text text
<p>
text text text text
text text text text
</p>
<--------------------------- want to insert text here
<p>
te...
I have an image set by css style to 100x75. When it doesn't load, the alt text loads into the space, but expands the container to beyond 100px width.
How can I prevent this? Either by cutting it off or wrapping it.
...
Is there a way to hide option or optgroup HTML elements? I've tried calling hide() in jQuery, and also using regular Javascript to set style.display='none'.
It works in Firefox but not in any other browsers. Actually removing them from the DOM does work, so perhaps there's a way to save each DOM element when it's removed, and reinsert t...
Hi,
I've edited the single.php to suit my needs and it works. I only left in the part of the loop in in which is as follows:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="entry">
<?php the_content('<p class="serif">Read the rest of...
Hiya All,
I have a rather strange bug which i can't make sense of that is apearing in webkit based browsers (chrome and safari).
When this page http://bluprintliving.mammalworld.com/turnmill-street loads for the first time the content seems to jump out of the container but only at the end of the render. on refresh it stays in and behav...
I am using jQuery to point a form's target to an iframe on .submit(). This is to upload a file. It works fine, but when the page reloads, and the iframe is appended to the DOM, the iframe automatically resubmits the form, causing the same file to be sent to the server on each page load.
If I do not include the iframe in the HTML markup,...
Hello Developers,
I've got a question:
Now i have a html file with some content like this:
<table>
<thead>
...
</thead>
<tbody>
<tr>
<td rowspan="2">demo</td>
<td rowspan="2">demo</td>
<td">demo</td>
<td>demo</td>
</tr>
<tr>
<td>demo</td>
<td>demo</td>
</tr>
</tbody>
<tb...
Let's say I have...
<form action="#">
<fieldset>
to:<input type="text" name="search" value="" id="to" />
from:<input type="text" name="search" value="" id="from" />
</fieldset>
</form>
<table border=1">
<tr class="headers">
<th class="bluedata"height="20px" valign="top">63rd St. & ...
I have a bunch of optional "write-in" values for a survey I'm working on.
These are basically a radio button with a textbox within the answer field - the idea being that you would toggle the button and write something into the box.
What I'd like to do is have the radio button toggled whenever a user clicks in the text field - this seem...
I did see this post which lead me to the UI/API/1.8/Dialog
I'm looking for the most basic popup to submit form data.
Is this it? (does a popup submitting form data have to use ajax?)
Thank You.
EDIT - Sorry, to clarify, I mean that the popup contains the actual input fields and the Submit button as well.
I did see the jQuery example...
I've been using headers to create templates for websites.
It's easy, and very convenient for debugging.
I now face the problem of using head BUT with custom page titles.
If this is my header.php >
<html>
<head>
<title> My Site : ??? </html>
</head>
<body>
</body>
</html>
I need ??? to be replaced for every page.
I...
Any suggestion on how to extract into separate files php code and html from a source file which is sprinkled with both.
...
I want to display a pop up box when a visitor clicks on my google map marker. I already have the text I want to display when they click the marker.
...
I am trying to output a text value from a php array. The value is
<Carlos>
However when echo'd to the page nothing shows because the browser has transformed it to
<Carlos></Carlos>
How do I stop it from transforming it into tags?
...
How can I use jQuery to separate multiple words in a td with an HTML tag such as <br/>?
For example, <td>hello bye</td> would become <td>hello <br/> bye</td>.
...
I'm using Text.ParserCombinators.Parsec and Text.XHtml to parse an input like this:
This is the first paragraph example\n
with two lines\n
\n
And this is the second paragraph\n
And my output should be:
<p>This is the first paragraph example\n
with two lines\n</p>
<p>And this is the second paragraph\n</p>
I defined:
line= d...
I'd like to make the background image for my input field disappear once the user has typed any amount of text in it. Is there a simple way to do that in javascript? I can get it so the bg disappears while the field is focused, but then it returns once they move on to the next field.
HTML:
Call me at <input name="phone" type="text" ...
I have a text field who's value is populated from a SQL recordset (below).
<input name="txtAmount" id="txtAmount" type="text" size="10" maxlength="10" value="<%=RS("Amount")%>">
In the SQL table, the Amount field (which is a money data type) is inserted correctly, as 5.00 However, in the web page, it displays only as 5 (i.e. the deci...
I have some text files with some useful data wrapped in between HTML tags like <td>, <span>, etc. I want to write a program which extracts the data in between the tags.
The text file contains other junk data too. I would also like to store these extracted data into SQL Table. Anyone who can guide me in right direction?
...
I'd like to click a header link and have the block directly underneath hide or show (with slideToggle)
Thanks
<div class='header'><a href='#'>Header</a></div>
<div class='block'>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
</div>
<div class='header'><a href='#'>Header</a></div>
...