html

Absolute positioned div and its content

EDITED: this first version was a false example with false assumptions! See below for new version! The Setting: I have 2 absolute positioned divs: <div class="menuSubBack">&nbsp;</div> <div class="menuSub"> <ul> <li>test1</li> <li>test2</li> </ul> </div> with the following styles: <style type="text/css"> .menuSub { pos...

Select List Generated using JSON and jQuery appends empty options

I have a field that represents a zip code of a user. When the user leaves that text box, an AJAX request is sent to the server to receive cities that may be associated with that zip code. I am trying to use the JSON received from that request to populate a select list to replace the text box that is currently assumed for city (if one ci...

Ie7 float right bug?

I have a div floated right. Inside that div are two other divs. The first div has a background color and when I refresh, it's "bleeding" into the second div. (Sometimes in front of it sometimes behind it.) When I scroll, it fixes itself. When I refresh it does it again. This is only happening in IE7. Bug? code below #sidebar {float...

Add list of dates to array, validate, and get max value

Hi, i have some input fields like below: <input type="text" name="date_1" class="dataList" value="2009-12-30" /> <input type="text" name="date_2" class="dataList" value="2007-06-12" /> <input type="text" name="date_3" class="dataList" value="2009-10-23" /> <input type="text" name="date_max" class="result" value="0000-00-00" /> I mus...

See what content is not sent over HTTPS

I created a page that is HTTPS only. On my browsers, I always get a warning that the page includes resources that are not secured. I just can't find out why! Looking at the source code seems fine. All img src and javascript tags are using relative path (/images/...). It does not consider href links as resources does it? Is there a way t...

Facebook Share in iframe

Have you seen an implementation of Facebook Share where the confirmation appears not in a new window but in a iframe or a div? How can I do that? It is not for a Facebook application or Facebook Connect, but for a normal blog that has a "share" button. Like this: (thanks sarfraz) ...

Using jQuery selectors to get form elements based on value or state

Is it possible to us jQuery to select a collection of form elements based on their value and/or state? For instance, I have some code that looks like jQuery("input[type='checkbox']").each(function(element){ if(this.checked) { //do something with the checked checkeboxes } }); I'd like to remove the interior condit...

Is there javascript (prefer jquery) library that automatically maps form elements to JSON?

Background: This is something I have been looking for since before even JSON was known as JSON. Suppose you have the following javascript variable inside your code: jsonroot = { 'fname':'valued' ,'lname':'customer' ,faves:['berry','chocolate','mint'] ,actors:[ {'fname':'brad','lname':'pitt'} ,{'fname':...

File-read into div through ajax. I'm missing something small I think!

Hello. I'm doing something very simple, and yet it's not working.. maybe I'm missing something. I need to read a text file, through ajax, and into a div. I can easily write to the file through ajax, but not read. Here is what I have: function ajaxLoader(url) { if(document.getElementById) { var x = (window.ActiveXObject) ? new ActiveXOb...

CSS pointer-events='none' and/or XUL mousethrough='always' in web pages for Firefox

Morning all. Very recently I asked this question on how to pass clicks through an element (e.g. full screen overlaying ). Received some good advice, but I still wondered which browsers supported this natively... For those skipping the previous link, the overlay is purely cosmetic, must be overlayed and should ignore clicks (all mouse e...

Web data grid design principles

I am looking for good reading references of styling data grids for web. Not necessarily the technical details (how to do it), but more guiding principles (what to do). Something like the Apple's Human Interface Guidelines, but for web and more specifically for data grids. ...

How to change the div class as per content of that?

I want to change the class of the div if the length LI is greater than 3. and if less than 3 then class name should be the default like "content" and if more than 3 then class name should be "scroll-content" <div class="classname"> <ul> <li>Content</li> <li>Content</li> <li>Content</li> <li>Content</li> </ul> </di...

how can google find me if I am inside a mysql table?

I am creating a classifieds website. Im storing all ads in mysql database, in different tables. Is it possible to find these ads somehow, from googles search engine? Is it possible to create meta information about each ad so that google finds them? How does major companies do this? I have thought about auto-generating a html-page fo...

HTML: Font size is too big - why?

Here's a snippet of my HTML code. I specify the font size for each text to be 14, but when I render it on Firefox, it looks so big! Is there a better way to specify the font size? Note: I want to know how to do this in HTML, not using CSS. <html> <head> <title>Clinics with H1N1 Flu Vaccine in Stock</title> </head> <body> ...

Why does Chrome show different page source?

Why is that the html code source in Chrome does not show what it should be showing when viewed from Google View Source For example, I wrote like this <div><?php echo "HELLO!" ?></div> But if I view source, "Hello" does not exist even though it displayed HELLO on page! Or if I create an input with a value inserted from PHP, it won'...

Is Java or Python better for writing a web-page-source-checking web service on Google App Engines?

Hello everybody!!! I hope you all have a nice day. I want to write a web service that would check some web page HTML code every 20 minutes and e-mail it to my mail box. Here I was given a suggestion to use Google App Engine for this task. Having briefly read through that site I learned that two languages could be used there: Java and P...

Uploading issue with IE, works properly for mozilla

Hi all, <td> <input type="hidden" name="MAX_FILE_SIZE" value="200000000" /> <input name="uploadedfile" id="Uploadfilename" type="file" /><br /> </td> td> <input type="submit" id="fileupload" value="Upload File" onclick="ValidateUpload()"/> </td> Above is working fine for Mozilla and not for IE PHP: if(move_uploaded_f...

Dynamic HTML Form Entry

Is it possible to make an HTML form that responds to the number of things the user wants to send over? That is, what I have now is: <form ...> <select ...> <option>1</option> <option>2</option> ... </select> *** </form> When the user selects one of the options, *** should have <input type="text" ...> app...

C# multiple replace works slow, any faster idea ?

return mystring.replace(/&/g, "&amp;").replace(/>/g, "&gt;") .replace(/</g, "&lt;").replace(/"/g, "&quot;"); The above is my code, and I guess since it tracks the string 4 times, it makes it slower. Is there any other way (method prefered) to replace those special characters in only one loop? Well I can do it with a for loop an...

Aligning rounded corner boxes next to each other

Hi, I have created two rounded corner boxes which i would like to be aligned next to each other .But the 2nd box is appearing directly below the first one inspite of me using float:left on the 1st one. Any way to fix this would be really helpful. Below are the html and the css. The HTML : <html> <head> <title>Homepage</title>...