html

How to check if an appended <img /> src attribute is relative or absolute using jQuery & IE7?

I have a website that includes code: <html> <head> </head> <body> <div id="wrap"> <img id="img_1" src="images/sample.gif" alt="Image 1" width="200" height="40" /> </div> </body> </html> I have this JavaScript and jQuery: $(document).ready(function(){ $('#wrap').append('<img id="img_2" src="images/sample_2.gif" alt...

make background image to link.

i am using this jquery iviewer i want to link these image thumble to another link. can i use image map for this or any other way to make image thumble to link. these are really add with full image. ...

How to get elements in jQuery UI to style and format correctly

Here is my problem. I have on multiple occasions downloaded jQuery UI and tried to use it. What happens, though, is that in the examples provided in the download the UI elements look great, but in my pages when I try to use them all the formatting and style stuff is messed up. Here is an example of a date picker: Good Example Bad Exampl...

Inter-dependent <select>s with JavaScript

I have a javascript array of dates, in the form {year:'2010',month:'6',day:'23'} I need to have three <select>s in a row, the first populated with the years in the list, the second populated with the months in the year selected by the first, and the third populated with the days corresponding to the selected year and month. I do not ...

multiple float lefts will not float under each leaving ugly white space

When using the following html example: <div style="width:50%;float:left;"> test1<br/> test1<br/> test1<br/> </div> <div style="width:50%;float:left"> test2<br/> test2<br/> test2<br/> test2<br/> test2<br/> test2<br/> </div> <div style="width:50%;float:left"> test3<br/> test3<br/> ...

Best HTML encoder for Delphi?

Seems like my data is getting corrupted when using HTTPapp.HTMLEncode( string ): String; HTMLEncode( 'Jo&hn D<oe' ); // returns 'Jo&am' This is not correct, and is corrupting my data. Does anyone have suggestions for VCL components that work better? Other than spending my time encoding all the cases http://en.wikipedia.org/wiki/Lis...

javascript: what is the advantage between multi - line and single - line?

i have code like this: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-17115993-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ss...

How to get element by href in jquery?

i want to get an element by it href attribute in jquery or javascript, is that posible?? thanks! ...

How do I extract images from Google Images based on user input and place them on a page?

Hello all, I'm new to web programming, but I had an idea I could use as an instructional tool, and I was hoping I could get some guidance. Here's my idea: I want to have some form that takes the data entered by the user, submits each word in the form to google images, and retrieves the first image returned by Google Image Search. Eac...

how to make inner left div take up 100% minus "right side fixed width div".

I want the right div to have a fixed width and the left div to take up everything else inside the box. <div id='outer' style='width:100%'> <div id='inner1'></div> <div id='inner2'></div> </div> ...

How to automatically update or compress a CSS, JS and HTML file every time I save its "source file" in Vim?

I wanted to minimize or compress CSS, Javascript and maybe Html files like Google does. Because, I used Google's Page-Speed and it recommended me to compress files. It provides me the compressed versions but I would like to do this automatically.I don't want to deal with 2 files every time I want to edit something. So basically, I want t...

What is a mature PHP solution to use for user logins?

I have never really done any serious web programming, other than just a blog or a static web page. For a web application I am developing though, I need to have web site logins. In an attempt to not reinvent the wheel, how can I implement logins? Is there a "drop-in" component somewhere? I'm not averse to fooling around with cryptograph...

Should I write Polyglot HTML5 documents?

I've been considering converting my current HTML5 documents to polyglot HTML5 ones. I figure that even if they only ever get served as text/html, the extra checks of writing it XML would help to keep my coding habits tidy and valid. Is there anything particularly thrilling in the HTML5-only space that would make this an unwise choice? ...

WordPress Search Box + CMS Queries

Hi, Hoping someone can assist - I'm currently developing a website in HTML/CSS that will eventually be converted into a WordPress CMS - this is the first time I am attempting this and have a few queries regarding this: 1) Within the current site I am developing, I want to have a "Search" box feature by where the user can search on any ...

CSS Element 100% of Parent

I'm having difficulty getting a 100% page height including contained divs. What seems to happen is that the inner div expands to 100% the height of the entire parent element, and not just to the bottom, even if it's been displaced by an element above it, so the child overflows the parent. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYP...

Have swf video link to new page with html/csss?

so i have a swf with a simple animation- the div used to contain it has a border that changes color when you hover- i want the whole thing to link to a new page when clicked- but right now it only works when you click on the border. heres what i have so far (a href="http://" class="noDecoration" ) (div id="ink" class="galleryBox" ) (/...

simple question on html img tag

does the filename in src attribute of an img tag has a limit in number of characters? or compatibility issue among operating system(OS) browsers... for example: <img src="../img/misc/this-is-a-very-long-image-filename-of-an-image-named-leaders-systems02.gif" alt="Leaders Systems" class="emblem" /> is there no issue on this-is-a-very-...

Are the ways or plugins to automatically minify CSS, Html and Javascript code in Vim?

I would like to know if there's a way of automatically minify html, css or javascript files. So that each time I save the "source file" Vim automatically make the same changes to a minified version of the file (or automatically creates or override a minified version). Something like this: Source: // The -is- object is used to identif...

Set document.title to default

Just a quickie.. If I set on an alert document.title to "ALERT" per say. Then want to set it back afterwards is there an ezmode way to do this or will it be setting an ID on the link tags to set the title back to the ID. Note its an external script that is used on 20+ pages. ...

What is the preferred mechanism to use icons with button labels

I have seen the following snippet of UI code to use icons with labels <a href=""> <img alt src="img/save.gif" class="icon"> <span>Save</span> </a> OR would it make sense to make combine this into a single entity (i.e. image icon plus the label). My concern is if we choose a different theme (color scheme), then I will not be ...