html

chrome extension to pass current tab url to remote json search then parse results into an html table.

I am trying to make a chrome extension that allows to me to take the url of the current tab and pass that to a 3rd party website search. This php returns JSON formatted text. I would then like to format this JSON as a simple html table. pseudo code: function getUrl(){ currentUrl = the current tab url } function search(currentUrl...

IE only CSS not applied

Hi I have a rather odd CSS problem. I am bringing in an Internet Explorer only CSS file with: <!--[if IE]> <link rel="stylesheet" media="screen" href="ie.css" /> <![endif]--> But the file seems to of stopped updating on the server. For example, nothing changes, even if I remove my previous header fixes and set the body backgroun...

having a problem with jquery votes just like stackoverflow votes?

i have this jquery code with an ajax request that works fine, but the jquery is not displaying the results(vote_count) and changing the upvote image, just like stackoverflow: jquery code: $(function(){ $("a.vote_up").click(function(){ //get the id the_id = $(this).attr('id'); //the main ajax request $.ajax({ ...

How to add text with music uncommon font to HTML

I am developing a theory music web page. In music notation there are some symbols like "flat" and "sharp" that can be achieved with standar characters like "b" and "#", but the final output is very unpleasant. I have instaled special fonts to use these (and many other) music symbols, but obviously they are not installed in the vast majo...

Displaying SVG in HTML

Hello, I have a web service that returns a string of svg code. My problem is, I'm not sure what to do with it. I've never worked with SVG before. My questions are: 1) Is SVG have strong browser support? 2) How do I actually display the image that the SVG represents? Thank you ...

What is the proper place to put AJAX-related content in a link

When you need a link to contain info for an AJAX call what is the proper place to put the info? I've always put it in the rel attribute, but reading the documentation for rel it seems this isn't the proper place: This attribute describes the relationship from the current document to the anchor specified by the href attribute. ...

Create the website first or set up Jquery on Cakephp?

I have set up Cakephp with admin login, but I do not have a page design. Now what? Do I have the site designed by a web-designer, or will this conflict with the person that is writing my fresh Jquery code. What about CSS? Is the Jquery developer going to know how to attach them? What comes first, the horse or carriage? Which ones th...

What's worse: hiding text or removing text?

I'm trying to find the right balance here, so I wanted to see if anyone knows which scenario below is better in terms of semantic markup and SEO. Using this site's logo, Scenario 1: <div id="hlogo"> <a href="/">Stack Overflow</a> </div> #hlogo a { width:250px; height:61px; display:block; background-position:0 0; ...

window.open fails with relative URLs in IE (When using the base tag)

Problem I'm using the base tag to resolve relative URLs to a specific point in some dynamically generated .html pages. This works great until I try to use Window.open in javascript. Firefox resolves everything fine, but IE resolves the URL to the displayed URL. Is there an IE work around for this? I'd like to avoid Combining the U...

Images are messed up in webkit

On this page http://cacrochester.com/ the 2 rotating images are messed up in webkit browsers. It's not all the time, and it's usually not on the first image. Why is that? I'm using the NivoSlider jquery plugin to rotate the images. here's what i'm seeing. ...

How to display an image with URL parameters with PHP

I'm in the process of changing hosts and have ran into an issue displaying images. On the current host, images are served up with: <img id="i1877" src="http://somewebsite.com/images/photo-shoots/XLIscjDrEAdkhzAeDsBrXIedV.jpeg?w=200&amp;h=200"&gt; However, on the new host, it won't accept the src attribute with the URL dimension parame...

htaccess changing links

Hello everyone What i need to do is change the links on my website from example www.mywebsite.com/index.php www.mywebsite.com/index.php?action=about_us to www.myswebsite.com/index.html www.myswebsite.com/about_us.html I was told htaccess was used to acheive this and i presume with some sort of regular expression if any one could ...

PHP / HTML - Generate a html list from a array

Hi I have a array like ('mary', 'johnny', 'butch', 'pony', 'katy', 'chuck', 'norris') The number of elements can vary... How can I build a nice list from all these elements, like this: <ul> <li> Mary Johnny Butch </li> <li> Pony Katy </li> <li> Chuck Norris </li> ? Basically build the list ...

How does one write HTML attributes over more than one line?

For those attributes that can stretch into infinity and beyond off-screen and do not tolerate white space like urls. Thanks. ...

Embedding an Image album from third party (imgur, picasa)

I'm looking for a free image hosting site that lets you upload/organize images by album (preferably with a massive album size), and then allows you to embed those albums into your own website/blog. Imgur allows you to create albums but it seems to be used to hotlink to single images or link to the album on their site. Also picasa allows...

Is autocomplete="off" compatible with all modern browsers?

I've just been given a requirement to prevent browsers from saving data entered into specific form fields. It's been years since I've done web dev, and this is a relatively new capability. I was able to find the form field property autocomplete="off", but I can't seem to find any documentation indicating which browsers support it. Can an...

Adding a CSS sublcass to a CSS item used in javascript?

First time using CSS so my question may not make sense. I am using a menu template that uses javascript to slide CSS items around. I have multiple items next to each other and I wanted to alternate the background by making a subclass for the item(eg: .cc_item .odd{ background:#fff}). style: .cc_item{ text-align:center; width:140px; hei...

CSS HTML organize 5 images - cross-browser compatible

I've got 5 images I'd like to organize in an ASP.NET MVC view. So what I need is an HTML+CSS solution (I prefer not to use jQuery for this, for maximal compatibility). I want to organize the images like so: Image1 Image2 Image3 Image4 Image5 At first I tried using tables, with the HTML being: ...

jQuery - clicking on one element triggers another

i have this jQuery file, but the vote_up click handler keeps conflicting with the vote_down click handler, when i click the vote_down element it changes the vote_up element: jQuery script: $(document).ready(function () { $("a.vote_up").click(function () { //get the id var the_id = this.id.split('_').pop(); /...

Should I always use HTML Doctypes?

I'm creating a web page with some sort of weird features like scaling and other stuff. The problem that I have is that I cannot pull it off without using JavaScript but if I get rid of the page doctype it can be easily done by HTML/CSS. What should I do? I want to stick to standards and avoid inconsistencies. ...