So in a nutshell on "page1.php" I have a calculator that consists of an html form, and then the php code totals the input and displays the total price. Below the price, it also displays a link to "page2.php" which contains an html form where they can enter their contact information and upon submitting the form the selections they made on...
Right now I successfully grabbed the full element from an HTML page with this:
//img[@class='photo-large']
for example it would return this:
<img src="http://example.com/img.jpg" class='photo-large' />
But I only need the SRC url (http://example.com/img.jpg). Any help?
...
I noticed the layout of a website is all jacked up when viewing in IE8 in compatibility mode (assuming this means IE7 and/or IE6 as well) compared to viewing it in IE8 and Firefox. Since the site renders fine in IE8 and Firefox, I'm guessing that means I need to override certain styles for IE6/IE7. Are there any tools that I can use li...
How do I put a vertical line down the middle of a div? Maybe I should put two divs inside the div and put a left border on one and a right border on the other? I have a DIV tag and I need to put one ascx on the left (that will get swapped out from time to time with another ascx) and then a static ascx on the left. Any ideas on how I shou...
There seems to be a lot of paid components out there and stuff for .Net, but are there any free ways to convert an HTML page into PDF using Classic ASP VBScript? There has to be something from Adobe maybe?
...
I have an ascx control and I need to to fit into a div on my page. I do not want to scroll it. Can I reduce it's size to make it fit correctly? The labels seem to be ok, but some of the table cells and textboxes could be shrunk and I believe it would fit ok. I was thinking of doing a jQuery select on the textboxes in the ascx and reducin...
I need to write some code that will search and replace whole words in a string that are outside HTML tags. So if I have this string:
string content = "the brown fox jumped over <b>the</b> lazy dog over there";
string keyword = "the";
I need to something like:
if (content.ToLower().Contains(keyword.ToLower()))
content = conten...
In Word 2003 one can save as WEB PAGE and get document translatted into HTML coding.
You can use VIEW and see SOURCE CODE to get the HTML coding for that file.
In Word 2007 you can save as web page but I can't find how you VIEW the source code that was created with it.
...
I am using a fixed height image to fill a div with gradient color using something like:
background:transparent url(green_bg.gif) repeat-x scroll 0 0;
However it only fills a height equals the image height. What's the best way to fill the backround of a div which changes in height, according to amount of text inside it, either using imag...
I was just viewing stackoverflow page source and I have a few simple questions;
1)
What is the purpose of this? DO search engines see this or something else?
<link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">
2)
?v=3731 Why is this added to the end of some javascript and s...
Hi,
I'm after a way to make div#page-container (bordered in red) to 100% height of the browser window on the following page - http://www.prettypollution.com.au/test
As you can see it has a padding of 86px to take into account the footer area that snaps to the bottom.
Any ideas?
...
Having a set of about 400 Documents in word which are part of a Quality Management System Word is causing me a lot of grieve because a) it handles images in large doc poorly b) the layout gets sometimes busted c) it is cumbersome to configure the documentation for different clients.
I can convert single documents by saving them as xml/...
Hi,
Is there a way to make te size of a font relative to the size of the page? Applying % as size measure refers to the standard font size (like 90% of 12px, not 90% of the page!). This is different from the behaviour of most of the other tags.
Any way to make the page 'scale up and down' also with fonts? Should I rely on em?
Thanks
...
Hi There,
I am after a definitive, cross-browser solution to set the cursor/caret position to the last known position when a contentEditable='on' <div> regains focus. It appears default functionality of a content editable div is to move the caret/cursor to the beginning of the text in the div each time you click on it, which is undesir...
Hi,
It makes sense to return data when a form is submitted using post method.
It looks as if only html/text can be returned ordinarily...
I use gwt on the client side and it does not seem to work properly if plain/text is returned.
The question: how safe is to return all kind of text using html/text?
Is it possible that some data could ...
Hi everybody,
I am fairly new to javascript and DOM and I am having a problem with manipulating DOM using javascript for the following html code.
<html>
<head>
<title>Testing</title>
</head>
<body>
<marquee direction=up height=400 scrollAmount=3.7 scrollDelay=70 onmousedown="this.stop()" onmouseover="this.stop()" onmousemove...
I am trying to figure out how to display if an item is in stock or not using the javascript ebay API. This would be for items that are for sale at a fixed price with BuyItNow.
I am just starting to work with Ebay, and really don't know why their systems work. It is quite possible that once an item is out of stock, it is no longer list...
CSS doesn't support arithmetic such as margin-left: -60px + 50% of the width of the parent div. But my desire to do so is overwhelming. Does anyone know a solution using JavaScript or otherwise?
ThanksMike
...
I publish technical books, in print, PDF, and Kindle/MOBI, with EPUB on the way.
The Kindle does not support monospace fonts, which are kinda useful for source code listings. The only way to do monospace fonts is to convert the text (Java source, HTML, XML, etc.) into JPEG images. More specifically, due to pagination issues, a given inp...
I have noticed that many blogs use URLs that look like this:
http://www.hanselman.com/blog/VirtualCamaraderieAPersistentVideoPortalForTheRemoteWorker.aspx
I assume this is done for search engine optimization.
How is this read from the underlying data model? Do you really search for
VirtualCamaraderieAPersistentVideoPortalForTheRemo...