html

How can I fire an event when I right click on a div inside a canvas with jQuery

UPDATE: I have updated the code snippet to include the whole page as found in Firebug. I have the following code: <html><head> <title>Welcome to CodeIgniter</title> <!--[if IE]> <script type="text/javascript" src="/assets/js/Jit/Extras/excanvas.js"></script> <![endif]--> <script src="/assets/js/jquery/jquery-1.4.2.min.js" type="tex...

Missing IMG src leading to multiple unknown server requests

Hey my application has a map that is drawn with custom marker images rendered on OpenLayers VectorLayer. The problem here is that I see a lot of requests to the page that has this map and this comes to the server and all the server side code written for that page is executed and HTML is returned to the client and I get an error saying ...

make an image and a paragraph sit next to each other.

I have a box with an image and some txt and I want the txt to be horizontal to the image. I know this may be a pretty easy question but I can't seem to find a good answer on the interwebs. thanks for any help. <div id='container'> <img src='someimage.jpg'/> <p>some text</p> </div> ...

text value representing images in javascript

I want to use image files to represent a custom font, and it would copy the text value when selected and copied. is this possible with JavaScript? ...

Need help creating dynamic Javascript Arrays

Part One: I'm trying to figure out how to use the DOM and Javascript to create an array containing the links in multiple lists. The problem is I need each UL to have a unique array containing the links; the only unique ID I am able to use in this case is the name value in the link tags. I will not be able to add anything else to the mark...

Is it possible to create a searchbox for my site using javascript?

I'd like to create a search box on the home page of my site that would be able to search the entire site. I know it's a very general question but I'd be very happy with just a general conceptual answer is there anyway to do this? ...

Firefox (3.6.3 Mac) fails to float left the last of a set of left-floated list items

I have a set of <li> elements in an unordered list. The items are all floated left, with a bit of space between them. Problem is, the last list item is wrapped (isn't at the end of the list, but leftmost on a new line). I have no idea why. The rendering is fine with Mac Safari and with IE 7. The CSS for the li items floats them left: l...

How do I make an HTML link that doesn't highlight?

How would I do so? What I mean by that, is having a link without it highlighting purple/blue when you click it/don't click it. Thanks! ...

Alternative ways to link a css file?

I'm working with software that uses a web interface, but this software apparently doesn't support linking css files in the usual way: <link href="style.css" rel="stylesheet" type="text/css"> The software renders the pages directly, it doesn't go through a "real" web server. Are there alternative ways to link a css file that I might t...

How do I detect when an input is changed?

Via JavaScript, PHP, or HTML. I want to do this to check if a username is allowed (on our side). Sorry for not elaborating too much. If the username is too short, a message will appear next to it (I will do this part) saying that it is too short, but for this to be done automatically I would need for it to be detected. <script type="te...

Can something "bad" happen via img src?

I know, I know, title is quite bad, but I'll try to explain what I mean here. So, I ask my members to show their photos. They upload it somewhere, then paste their photos' URL into input and I save it to my database (MYSQL). Then, the photo is being seen on their profiles. I get the URL from database and do something like that: <img src=...

Loading elements into the DOM with jQuery.

Hello everybody, I have a quick question that I'm sure some of you would have an answer for, let me explain. I'm working on a very simple website, static content, pure HTML, and CSS, and some javascript to make everybody's life easier. The site has a header, nav, side bar and footer and although the site is static, I thought I could use ...

How can I add a "Vary: Accept-Encoding" header to a file on Amazon S3

In Amazon's S3 Management Console, I'm trying to add metadata, with the key being "Vary" and the value being "Accept-Encoding". This seems to work, I hit save. But when I hit refresh it disappears, as if Amazon rejected the tag. The file in question is a gzip compressed javascript file. My other headers are working and added properly ...

Automatic newline in textarea

Using jQuery, how can I make a textarea that automatically adds a new line when inserting text when the cursor is near the end. The width of the textarea is dynamically done via CSS (e.g., #myTextArea { width: 80%; }) so I can't do anything like counting the characters in each line. I don't need a non-JS solution since the content of t...

best way to convert the this html file into an xml file using python

this html is here : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body> <div bgcolor="#48486c"> <table width="720" border="0" cellspacing="0" cellpadding="0" align="center" background="http://title.jpg" height="130"> ...

How to set the color to the select box and its border in firefox ?

I want to set the color to the border of the select box and its contents. I am able to see the color to the border of select box in IE. But I cannot see the border color in Firefox. I want to set the color to the border to the select box items also. Is there any way to do this ? To set the border color to the IE I am using the followin...

Create a web based GPS Skyplot

I am looking to create a web based GPS skyplot. Currently just in the planning stages. Was wondering if anyone knew any javascript libraries or such in which this would be best to start with or have a look at, of if you have done something similar before. I know Flot is decent for plotting but unsure if it would be easy in this scenario...

Why is this DIV rendering with no dimensions?

http://clifgriffin.com/blockade2/ Ok, I have an unordered list that serves as a list of menu links. In each li there is a div that is set to absolute positioning, bottom: 0. The idea is you hover over the link in the li and jQuery animates the height to show the hidden menu div. It's a simple concept, but I am apparently a retard. The...

Size of drop down box on select element.

Hey everyone. How do you set the size of the drop down box on a select element? Not the select element itself but the drop down box part of it when you click for options? ______________ |____________| input box | | | | | | |____________| size of drop down box containing options Thank you for your help...

Negative word matching with regular expressions

Hi, I want to be able to construct a regular expression which searches for a particular pattern in some HTML code where one parameter is negated (i.e. find x where y is NOT present). Example: I want to find image width parameters where width does not equal "500". width="640" height="360" would match width="500" height="360" would NOT...