My intention is to edit HTML documents, including modifying existing elements, deleting elements and inserting new ones.
I've read HTMLEditorKit's and related classes' documentation, as well as the relevant topic in Sun's Java Trail, yet there is very little information about actual HTML document manipulation. Most of the discussion and...
I'm trying to use jQuery to combine the user's select field choices (category + contributors) and insert this into a hidden field with an id of as_q, but when I run the script the value of as_q is always empty.
At the moment, I call the function when the user clicks submit - it gets the value of the two select fields and combines them,...
I have HTML that looks like this:
<input custom_attribute="so cool" type="text" />
I would like to enter text in it using Watir.
...
text file in window, each line end with \r\n, in unix, each line end with \n.
Does textarea's post value follow this rule?
...
I have a HTML comment outside of the DOM root node which I need to read:
<html>
... other stuff
</html>
<!-- The comment I want to read -->
Can I do this with JavaScript somehow?
...
To accomplish this I have done this:
<table style="width:100%;">
<tr>
<td style="width:50%;text-align: left;">left</td>
<td style="width:50%;text-align: right;">right</td>
</tr>
</table>
How could I accomplish this in the simplest fashion (least markup) without using tables? I just want to align 2 elements to the max left a...
My site is all php pages, since it's all database stuff. However, I'm having trouble putting the pages into no quirks mode... I did the regular thing:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
and this do...
I must be brain dead. I'm having a hell of a time right aligning numbers in a input field.
.number {
text-align: right;
}
<input name="price" type="text" class="number" />
has no effect.
I need to use an input field since I refer to the value in JavaScript and I'm using it both for input and display.
Thanks
...
Is it possible to obtain the id of an element (div, input etc) using jQuery and how?
...
I am getting this error in my ASP.NET MVC application where I am taking HTML input from a WYSIWYG so I don't want the content validated.
I have attempted the solution I found here but it seems to make no difference in my MVC application. I have also tried doing it in the web.config but again - no joy. Is this a bug in ASP.NET MVC or som...
I do a lot of web apps that mainly rely on forms and I'm wondering of there is some nice HTML/CSS template I could use, at least for my demos.
...
I'm storing a PHP array where key=>value pairs are information used to build jQuery UI tabs on a website.
The string stored in the MySQL database looks like:
a:2:{i:0;a:2:{i:1;s:9:"Info";i:2;s:643:"<h2><strong>This section is about foo</strong></h2><p><strong>Lorem ipsum ...";}i:1;a:2:{i:1;s:14:"More Info";i:2;s:465:"<p>Lorem ipsum ......
Hey,
Found an annoying bug today which crashed chrome and safari (so all webkit browsers?) with just CSS.
It's a hover menu, hovering over an element then displaying the next dropdown level. Works perfectly in all other browsers.
See here, top left 'rn': http://test.davebowker.com/rn-hover/
Hope someone has some thoughts, or knows a ...
Is it possible to put DIV's Vertical Scroll bar on left of the div with css? what about jscript?
...
hi
Absolute positioning is relative to a containing block that provides a positioning context; which by default is the document
a) So if absolute positioning is relative to document, then could we imagine the starting point of a document as a two dimensional coordinate system with its origin in the top left corner of a viewport (assu...
I'm trying to set up the following mailto: link:
<a href='mailto:[email protected]?subject=Testing&body=http://www.google.com?foo=1&bar=2'>Send mail</a>
However the second argument (bar) is cut off because it is seen as an argument of the mailto link and not the link I'm putting in the body. I tried & but it does the same th...
Hi guys, I have images in my gallery. I want to highlight them (for example, white glow), when mouse is over. Could I do it using javascript/css/html for all browsers?
...
I have a string of html that I need to put in an input select but it is out of scope for where the input select is... I think, see that options variable I am building? It needs to be inside the very next select after any of class .product... please advise.
$(".product").change(function(){
//get selected option of the select...
So, I have a predicament. My tabs are pushing down the content below it. Here is some of the code:
<div id="navigation">
<div id="test" class="blue">
<p><a href="<? echo $web_app_path ?>home.php">Home</a></p>
<p class="subtext">View/update contact information</p>
</div>
<div id="lessons" class="blue">
<p><a href="<? echo $...
Please view the following URL in IE8 and then in any other browser.
http://minorityrecruitonline.com/college/default.aspx
It looks fine in every browser except for IE8. The culprit is the extra space being included after the </form> tag.
Does anyone know how to remove this space from IE8? I have tried all the usual tricks of adding ma...