html

Parsing HTML and replacing strings

I have a large quantity of partial HTML stored in a CMS database. I'm looking for a way to go through the HTML and find any <a></a> tags that don't have a title and add a title to them based on the contents of the tags. So if I had <a href="somepage">some text</a> I'd like to modify the tag to look like: <a title="some text" href="som...

min-height doesn't work

Hello guys, I have a weird problem. I need two backgrounds on the bottom of the website in left and right corner (always stick it to the bottom of the whole browser's window) so I used min-height in CSS, like this: For body, html - height: 100%; For inner wrap div - height: auto !important; height: 100%; min-height: 100%; This should ...

How can Perl's WWW::Mechanize expand HTML pages that add to themselves with JavaScript?

As mentioned in a previous question, I'm coding a crawler for the QuakeLive website. I've been using WWW::Mechanize to get the web content and this worked fine for all the pages except the one with matches. The problem is that I need to get all these kind of IDs: <div id="ffa_c14065c8-d433-11df-a920-001a6433f796_50498929" class="areaMap...

position fixed images within div (pins on map)

I have a "map" div with the css rules height: 400px; width: 800px; background: url(map.png). This div has a background image of a world map. I have some images that act as "pins" that I want to place on the map in specific areas. What CSS properties would I give the image to be able to, for example, place them within the "map" div by ...

jquery .attr() class switch not working....

Hello, I'm working on a web service, when the user requests more data through ajax, I want the div that will contain the data to show a loading circle. I wrote a css class in the style file for when I want the circle: .ajax_getTeams_loading{ background: url('ajax-loader.gif') no-repeat center center; } So my ajax function is like...

div overlaps on smaller screen resolution

Hi I am having trouble getting a div to stay in place when the window is resized. It overlaps the content div when its made smaller. #content { width: 70%; height: 800px; margin-top: 50px; margin-left: auto; margin-right: auto; background-color: #202020; padding: 30px; } #login { float: right; margin...

jquery append form inputs?

i have this jquery script that is meant to append input boxes, its wont happen, i dont know why? jquery: $(document).ready(function() { $(".login").click(function(){ $(".login").hide(); $("div.swap").append("<input name="username" id="username" type="text" maxlength="16" />"); }); }); html: <div class="swap"...

Where can i put my design to criticism and discussion ?

Where can i put my design to criticism and discussion ? I want to get the opinion from professional designers :) ...

Jquery sliders behaves differently than example from documentation.

I copy pasted the code from http://jqueryui.com/demos/slider/range.html for local testing. And what I see is different from what the url shows. When I click the slider "big dots" (used to change the value) the dot image gets a dotted border around it and it doesn't go away after I release the click until I focus another element on the pa...

jquery appended html is not detecting javascript?

sorry if my question deosnt make sense, but thats the best way i can put it, i have this jquery script that when user clicks the login link, it appends the html form to do so, which works fine, but the appended(login-form) uses jquery to log into the site, but it deosnt seem to detect the javascript, oppose to when i put the login form ...

Capture hyperlink click in HTML displayed in WPF Frame

Hello, and sorry if that was asked before, With a WPF Frame Control I can display a website. WPF appears to delegate Rendering to the resident IE installation. Unfortunately it appears that when I click some link in the displayed page, WPF does not register this as Navigation, e.g. Navigating event doesn't fire. I can almost imagine w...

Parse iframe source in Android WebView

I have pages that users will be accessing that contain iframes. I would like to be able to parse out the source URL for sharing. ...

What's the best abbreviation of this jQuery instruction?

$( "input[role=submit_action], button[role=submit_action], div[role=submit_action], span[role=submit_action], a[role=submit_action]").live( "click", function() { }); and this too: $( "input[role=submit_action], input[role=submit_require]").live( "click", function() { if ($(this).attr('role') == "submit_action") { // ...

Odd browser compatibility issue with IE 6/7/8 browsers

Hi everyone, thanks in advance for your help. I'm working on this site and have an odd problem with jquery-twit and IE 6/7/8. If you take a look at any other page than the homepage in an IE browser of any stripe the twitter feed button and contact form button appear at the top of the page, I'm at a loss to explain it - it works on the h...

What is the easiest method for vertical+horizontal centering of a div in the window ?

Given a div with known dimensions, say width: 300px; height: 200px, what is the easiest method to place it in the middle of the screen both vertically and horizontally ? Example here I'm interested in latest Firefox (no need for IE hacks). CSS only please, no Javascript. ...

When creating HTML emails, should we use html, head, body tags?

In my email views, I usually just do something like... <dl> <dt>Name</dt> <dd>Value</dd> </dl> Should I be doing it like this? <html> <head></head> <body> <dl> <dt>Name</dt> <dd>Value</dd> </dl> </body> </html> In other words, like I was marking up a standalone document? I guess I can safely assum...

loading html from android sqlite3

Hello, Now I've a sqlite3 database which contains html file in tables. Let's say like i just put my html file under description field and i need to get description file from database and have to show html file under description field which contains images.Any idea ? Thanks in advance ...

how to load html code into c# string?

HI, I've got a really seriously question. I need to send HTML code, so I have to load html into string, and this obvious doesn't work if I can't interpret them well, how can I store it natively? Thanks for your help ...

How to know which row a user selects from an HTML table - GAE Python

Sorry if this is a newbie question. I have searched but found nothing... Using Python on GAE, I will display a table of, say, customers on an HTML table. The table will show their name and phone number. I want the user to double-click on a row and have the python Post() method know either the row number double-clicked or the customer...

How to build login page using cookies ?

I'm looking for a short tutorial about creating a login page for a website using cookies. Each user has a username and a password. Should I save both the username and the password in the cookies ? or just the username may be enough ? Can a malicious user steal somehow these cookies and pass the authorization ? ...