I need to parse a HTML-page with windows-1251 charset (it's in russian).
The problem is that it is the web application and I have to use Python 2.4 without any opportunity to install modules on server. The only thing I tried to do was asking an administrator to install lxml module but nevertheless it wasn't built in the right way on 2....
For argument's sake lets assume a HTML parser.
I've read that it tokenizes everything first, and then parses it.
What does tokenize mean?
Does the parser read every character each, building up a multi dimensional array to store the structure?
For example, does it read a < and then begin to capture the element, and then once it meets ...
If you only had to worry about Firefox and Webkit browsers, what CSS would you use to make the footer in the following HTML stick to the bottom of the page? Note: I don't want to add any of markup to the page.
<html>
<body>
<header>...</header>
<article>...</article>
<aside>...</aside>
<footer>...</fo...
I'm trying to keep the bar_top_container div from wrapping it's contents no matter how wide the page is (i.e. both selects should appear always on the same line), this is not working however when the page width is to small for them to both fit on one line, how can i fix this?
Styles:
#bar_top_container { position: relative; white-space...
I'm looking to write an algorithm to compress HTML output for a CMS I'm writing in PHP, written with the CodeIgniter framework.
I was thinking of trying to remove whitespace between any angle brackets, except the <script>, <pre>, and <style> elements, and simply ignoring those elements for simplicity. I should clarify that this is whit...
If you only had to worry about Firefox and Webkit browsers, what CSS would you use to make the footer in the following HTML not rise above the bottom or the screen (and go lower if the body content pushed it)? Note: I don't want to add any of markup to the page.
<html>
<body>
<header>...</header>
<article>...</articl...
HI
I would like to have latest news/updates in the homepage of my website but i don't want to have to change the HTML code every time i want add a new news line or make a change, is there anyway i can make a file that i can just edit and when the homepage is rendered it retrieves the information for the news widget from the file?
than...
I'm trying to use the simple_html_dom php class to create a find and replace function that looks for keywords and replace them by a link to a definition of the keyword, with the keyword as link text.
How can i find and replace "Dexia" with <a href="info.php?tag=dexia">Dexia</a> using this class, inside a string such as <div><p>The CEO ...
I have a piece of Flash on an HTML page that when you hover over it, it expands out to reveal more information.
There are text links that it expands over, however in everything but IE, when it's not expanded those links are still covered by the Flash making them unclickable.
I have the Flash piece in a separate DIV wmode set to transpa...
I am working with dynamic tabs in jQuery. When the user opens a new tab, the content is loaded via ajax:
function addTab(tabId) {
$("#tabs").tabs('add', tabId, tabId);
$(tabId).load("...");
}
I want to display a loading icon while the content is being loaded. So I am setting the tab panel content in the add property of the tab...
There are many "Javascript layout manager": http://stackoverflow.com/questions/2131384/common-web-ui-styles
I'm looking for lightweight, modular and HTML XUL like javascript layout manager.
But, Dojo, YUI, Qooxdoo, MochaUI... not lightweight.
I like "UI.Layout Plug-in" for jQuery, but it not modular.
I need only lightweight layout mana...
hey guys
im working on jquery script to show rollover , now i need to show every image alt text in a div box
this is my jquery code :
$(document).ready(function(){
$("ul.thumb li").hover(function() {
$(this).css({'z-index' : '10'});
$(this).
find('img').addClass("hover").stop()
.animate({
width: '17...
Let's image that I have something like this:
<html>
...
<div>
<iframe src="test.html" hash="r4d5f7"></iframe>
<iframe src="test.html" hash="8f7x97"></iframe>
<iframe src="test.html" hash="gg4v5e"></iframe>
<iframe src="test.html" hash="e54f87"></iframe>
</div>
...
</html>
test.html is empty page...
What would be the best way to parse Gmail chat logs from the webpage where it's displayed? As far as I know, this is still the only way to access server-hosted Gmail chat logs (through either desktop Gmail or mobile Gmail).
When looking at the generated source where the conversation takes place, the markup looks like nested divs and sp...
The text in my source code is formatted properly, but when it shows up in the browser all the formatting disappears. Is there a tag I could add to the paragraph tag to make the text properly format?
...
I want to be able to just click inside a text field, so that it highlights all the text inside it (and possibly also copies it). Although, I'm satisfied with just getting it highlighted if that's possible with HTML only. Many people are using NoScript and such nowadays, so I'm trying to stay away from JavaScript etc.
TinyPic is one exam...
how can i find in a early way that this css class is being used or not in website ?
like-
style property that i write in my css is being used or not?
and
class or id is being used in webpage?
exe:
.textstyle4{
font:normal 12px Arial, Helvetica, sans-serif ;
color:#777;
}
i want to know in my whole website where this css s...
Searching SO and Google, I've found that there are a few Java HTML parsers which are consistently recommended by various parties. Unfortunately it's hard to find any information on the strengths and weaknesses of the various libraries. I'm hoping that some people have spent some comparing these libraries, and can share what they've learn...
So I designed / coded these drop down menus for this website. It works perfectly in Safari, Firefox, ie7, and ie8, but in Opera, it is extremely buggy. Check it out (in opera):
http://newenglandforestrally.com/
Is this an opera bug with how Opera handles jQuery (and therefore blame it on the browser and not worry about it), or should I...
I want to use progress bar to show file upload progress.
I'm currently using the following code
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.progressbar.min.js"></script>
$(document).ready(function() {
$("#spaceused1").progressBar();
});
HTML:
<span class="progressBar" id="space...