Hey,
It's not really scraping, I'm just trying to find the URLs in a web page where the class has a specific value. For example:
<a class="myClass" href="/url/7df028f508c4685ddf65987a0bd6f22e">
I want to get the href value. Any ideas on how to do this? Maybe regex? Could you post some example code?
I'm guessing html scraping libs, su...
Hi, I would like to display data, two columns per row during my foreach. I would like my result to look like the following:
<table>
<tr><td>VALUE1</td><td>VALUE2</td></tr>
<tr><td>VALUE3</td><td>VALUE4</td></tr>
<tr><td>VALUE5</td><td>VALUE6</td></tr>
</table>
Any help would be greatly appreciated. Thanks
...
how do you serialize html in c sharp?
I think I know how to use XSD.exe to create C Sharp classes from XML that can be used with the XmlSerializer class to serialize and verify the xml document.
Is there a way to do the same sort of thing with an HTML document? I have tried but the xsd command line says that the remote name www.w3.or...
in my style.css i have for example this, and it work fine in iexplorer but when i move to firefox the style is lost and i got the error shown below.
#header {
width: 900px;
position: relative;
height: 170px;
padding: 0;
font-size: 14px;
color: #000;
}
ERROR: from error console in firefox
(sorry my local conf is in spanish i dont...
I've read some article on it but didn't get what is actually. can anyone on SO explain me.
Is it only related to IE6 only?
What does zoom:1?
Is layout is a IE only TAG?
Edit:
I found this info very informative for me
Because Internet Explorer is so old
(as it was one of the first browsers
available), it hasn’t had the luxury...
I want to know the best way to mark up tabular data on a web page when data rows contain complex data that can't fit within a single table row.
Here's a concrete example. The first line has a list of extra information attached to it about arms and legs.
Shadrach M Banana 12
Arms Blue 2
Legs Yellow 3
Meshgah M Apple ...
var x = document.getElementById("pic");
x.src='path.jpg';
Shouldn't this replace the source of the the image with the id 'pic' ?
What am I doing wrong?
When I right-click and check the source of the html in my browser, the image 'src' have not yet been changed!
Thanks
...
I have implemented spring security's remember me feature in our app, the way i understand it, If user opens main page directly and he is not authenticated by spring, he is taken to the login page. if he is authenticated, he stays on the main page.
However in our application, the user is likely to start the login page first (and is likel...
Hi guys,I have a problem,no matter what browser I use(after tests,I found this problem only exists in IE6, and I guess it may be related to the iframe), a black vertical bar always show up when I open the page at first time,but the problem just occur on some PCs and notebooks,and when I move the browser, the black bar changes or disappea...
How do I open a new window in javascript properly?
I've tried:
<a href='javascript:window.open("testing.html","mywindow","menubar=0,resizable=1,width=200,height=500,left=0,top=0");' >New Window</a>
This causes a new window to pop up but in Firefox it leaves the original page with a blank window saying "[object Window]". I've also had...
Hello,
Let say, i can only use html codes in a page ( call it index.html ).
So now, i want to check something using php ( call it userCheck.php ).
So it is possible i want the html to communicate with php files.
For example, something like
when users access index.html, it will check the userCheck.php, so userCheck says yes, then can...
I have this php function, which I want to convert to javascript function, but I don't know how to create a table in javascript.
I guess I have to have a container (DIV) to insert the table into with javascript.
Here is the php function simplified: (it counts height and width and repeats a 1px shadow to create a drop-shadow effect)
fun...
I am using following code to display HTML Form on my web page. This code also uses a third-party .js file that is linked to it. Everything is working fine except that when the first record is inserted and after saving the record the control comes back to this form, the company name entered in the first entry is seen in the code itself. I...
How do websites I've never been to fill out my information (email address, name, phone, etc.)? Sometimes they pick my old email instead of my new one, so they must be reading it from something I might be able to access with some javascript. I would like to be able to do something like this in Flash, so any ideas how I could tap into ho...
I have a HTML simple page with a ADD THIS button (the share button actually) and some videos on it. My problem is that when I click on the SHARE button and a small window (a div) pop ups on the center of the browser screen which is keeps it position constant there.
When I scroll the window, this ADD THIS window gets overlapped by the vi...
When I try to open a page with following code on Firefox, Firefox opens a download dialog box. The same code works fine on IE and Maxthon. The same problem is happening on Safari browser also.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content...
At present I am using widgEditor
It is a good library in JavaScript but has some minor issues. Is there any other library that can convert a Rich Text into an HTML equivalent?
...
How do you/is there a way to figure out if a block of HTML contains zero text nodes?
e.g. this:
<p><div><span></span></div></p>
contains zero text nodes whereas this:
<p>Stuff</p><div><span>other stuff</span></div>
contains two.
Additionally, you're guaranteed that the HTML is XHTML-compliant and the content is probably less tha...
Hi All:
I did some web based projects. But I don't think too much about the load and execution sequence of an ordinary web page. But now I need to know detail. It's hard to find the result from Google or SO. So I created such a new post.
a sample page is like this:
<html>
<head>
<script src="jquery.js" type="text/javascript"></scri...
I am using Oauth Signpost to test our implementation of oauth
I have a test that checks correct behaviour when the consumer id is incorrect,
What I want to do is to check that the HTML content contains the correct error message.
My question is now: How can I access the HTML content using the OAuthProvider, OAuthConsumer or Exception af...