html

How do I convert unicode codepoints to hexadecimal HTML entities?

I have a data file (an Apple plist, to be exact), that has Unicode codepoints like \U00e8 and \U2019. I need to turn these into valid hexadecimal HTML entities using PHP. What I'm doing right now is a long string of: $fileContents = str_replace("\U00e8", "è", $fileContents); $fileContents = str_replace("\U2019", "’", $fi...

Order of operations - web development / web design

Hi, So I'm starting to get fairly proficient at coding my site(s). But I'd like to take some meta-steps and begin to get down best practices and workflow kind of stuff. And I was wondering, I've heard that it is always important to finish html markup before adding css. Does this extend farther? I'd think that the order would be some...

Need explanation why putting right floated element as first element in div fixes the new line issue

I have a div with a few elements and the last element is a button which I wanted to be 10 pixels from the div's right edge. The div and the button have fixed widths. The button has display:inline (noting that floated elements get block behavior). The problem was giving the button a right float always put the button in a new line even tho...

Styling Pagination Links

Hello, The pagination code below works just fine. However, I'm having an issue with the CSS. The location of the pagination links really only display where I want when the user is on page 1. This is 2800 pixels from the top of the browser. For pages 2 through n, there is about 100 extra pixels of space between the bottom of the HT...

rss images in opera

<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title>W3Schools Home Page</title> <link>http://www.w3schools.com&lt;/link&gt; <description>Free web building tutorials</description> <image> <url>http://www.w3schools.com/rss/w3schoolspic.gif&lt;/url&gt; <title>W3Schools.com</title> <link>http://ww...

JQuery, Filter by User Selection? Range?

How can I filter my selector by what the user has selected??? I'm trying to find specific elements inside what the user has highlighted. $('.item', document.selection) ? $('.item', editor.getSelection().getRanges()[0]) ? ...

How can i draw polygons on an HTML5 canvas through a JavaScript function

i want the user to be able to click somewhere on the canvas and the polygon will appear on it <DIV id="canvasarea" class="rounded"> <CANVAS id="canvas" width="800px" height="800px"></CANVAS> </DIV> ...

SimpleXML -- Strip CDATA Tags (or embed HTML markup in XML)

I've just recently begun learning XML in the context of PHP and Javascript, and I've encountered a problem. Here's the XML I'm using: http://www.dkarndtcpa.net/new_site/faq.xml (I still can't figure out how to show the code in this little box here...) So the issue is I want to put HTML markup within the XML, and then be able to extrac...

background-color change on rollover not working in IE, FF

this seems very simple and im puzzled as to why its not working...I want to change the background image of a DIV when rolling over it. It works on chrome and FF on a mac - but then not FF, IE on PC CSS - /media/css/mystandard.css div.flipper {background-color: #FFFFFF;} div.flipper:hover {background-color: #F8FBFE;} HTML <HTML> <HE...

Why use window.location in a hyperlink?

I was going through a website I've taken over and came across this section in one of the pages: <a href="javascript:window.location='<%=GetSignOutUrl()%>';"> // img </a> Apparently anyone who has ever used the site without javascript would not be able to log out properly (surprisingly enough, this has never come up). So the first t...

Subdomain and favicons

I'm having trouble showing the favicon of a subdomain (which redirects to a PHP file) mc.company.com redirects to www.company.com/mc.php In the mc.php file I have included a header (templates) which has the link and stuff for the favicon: <link rel="shortcut icon" href="http://www.company.com/favicon.ico" type="image/x-icon" /> <link ...

Sitemap xml file; Does the url have to end with an ".htm" ?

I have a website which has .htaccess rewrite rules. And alot of them. This means for example that www.mydomain.com/classifieds/something_very_very_very_very_Very_very_looong.php?id=12345 becomes www.mydomain.com/classifieds/12345 Now, this might be a stupid question, but I must be sure... I have followed several guide...

Calculate Total in a Given Row

I am developing a system where i need this: I have various rows on one table, and one of them is Total I want the script that can add the total of all the fields in the Total column. I will then add the session user so that it only calculates all total fields in that column for that particular person. You can get me the query: Exampl...

Removing jQuery ajax-added js-files from document again?

Hi My site operates on an ajax "framework". Whenever a user opens a new page, that page loads in the necessary css and js files to view the page properly and adds them to the current document. The js files are loaded like this in jQuery: function getJS(jsfiles) { $.each(jsfiles, function(i, val) { $.getScript(val); }); ...

FireFox HTML Rendering bug?

I have a hidden field called Id on the page. I also have 2 radio buttons with the following markup: <input type="radio" value="cats" name="xxx" id="x1" checked="checked"> <label for="1st16th">1st &amp; 16th of the month</label> <input type="radio" value="bananas" name="xxx" id="x2"> <label for="SpecifyRecurrence">Specify Recurrence</l...

Web-kit, Css Clip forcing scrollbar

I have a large sprite image with a link around it, the link has a property of parent and the image a property of child. I am using the css clip technique to pull a particular piece of the image. However, in my chrome browser even though I am positioning my child element absolute and giving it an overflow of hidden it is causing the brow...

Display image on top of another image on rollover

I want to display a zoom image (on mouseover) on top of certain images to imply 'click here to zoom'. I don't want to use a cursor. I'm sure there's a good way to do this with javascript jQuery but I don't know it. Does anyone have any good ideas? ...

Enter sending HTML form with no submit

I replaced the type="submit" on my form with a type="button", to prevent form submits when the user presses enter. Will this prevent enter from submitting the form in all browsers? ...

How to manage file path when accessing from different directory location?

I have few web pages sitting in different directories and my goal is to have some sort of organized structure so that I can access to js or css files without hardcoding the path. For instance, the directory structure is: root --- js --- some.js | |--css --- some.css | |---pages ---- main.jsp | |---ot...

Help adjusting height of unordered list and <h3> tag in html

OK, I'm having this very very simple error, but I can't figure it out and it's been bugging me. Taking a look at my page here: http://www.marioplanet.com/product.htm And looking at the unordered list after my header 3 tag reading "Features" you can tell there are some line breaks between the header 3 and the unordered list. I added t...