html

Javascript: Have body onload function wait until scripts have completed

I have some functions that I am calling and they take some time (milliseconds), but I don't want the page to display until these functions have completed. Right now, I can tell that the page loads and then the scripts eventually complete. Right now, I am calling the functions in the body onload. Also, another issue I may have is that ...

How does one track with JS where the visitors are going?

Let me reformulate, as the answer http://stackoverflow.com/questions/951907/where-are-my-visitors-going was absolutely correct, but my question not precise enough ;) How does one track with Java Script where the visitors are going? (From a technical standpoint.) Is the idea to execute a code every time a link is pressed? If yes, does t...

Do any search engines index web page source code?

As far as I'm aware, search engines (on the web) typically index only the "user facing" content of a web page. But what if you wanted to find pages(s) that contain a certain fragment of HTML or JavaScript. Is this possible? Do any web-wide search engines provide this feature? Or do you think that it would not be worth implementing? ...

css query string

Is it possible to pass a query string into a style sheet and if so, can the css process it? i.e. http://www.domain.com/css/somestyle.css?id=102992992 I noticed when viewing basecamps source that the style sheet has a query string, but I don't see how it can be used. Thanks ...

Resize an SWF when loading it with SWFObject

I'm loading an SWF movie into an HTML page using SWFObject. I want to resize this SWF dynamically. How can SWFObject help? I'm sure I don't have to write my own solution. ...

div tag inside a cfloop tag introduces unwanted line breaks

Hi I have a web page in coldfusion which shows contents from a SQL table. The contents are iterated using cfloop and are rendered using a div block. My code snippet follows- <cfloop query="qry1"> <div class="subBlock"> <div class="item"><h4>Date:</h4><p>#qry1.date#</p></div> <div class="item"><h4>Name:</h4><p>#qry1.name#</p></...

Regex help, greedy vs. non-greedy

Hey all I have a large html string like <a style="background: rgb(100, 101, 43) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-backg round-inline-policy: -moz-initial;" href="#">swatch4</a> <a style="background: rgb(34, 68, 33) none repeat scroll 0% 0%; -moz-background-clip...

CSS set default scroll position

Is there any way to set the scroll position to a default value? I know how to do it in javascript, for example with jquery: $("div#divWithScroll").attr("scrollTop",200); But I wanted to do it with css only, I have no idea if it is possible. ...

How to display a print preview of an HTML document

I need to display some HTML content as it will be printed. Basically, I want to emulate the browser print preview feature. I'm not sure how to do this just with HTML/CSS/JavaScript. The only solution I came up is to convert the HTML to PDF so it´s split into pages and then convert that PDF to images and print each image one bellow the ...

How do I get table-like formatting in a textbox or textarea?

I'm using TinyMCE textareas or textboxes for an event logger app, and I need the text to be formatted a certain way. Something like this: I can't figure out how to do this without a table, which I cannot nest in the textarea or textbox. Any suggestions? ...

Disabling GIF animation in HTML

Is there any way, in HTML, to include an animated GIF in an <img> tag, but automatically tell the GIF to not animate? I realize that the user can stop animation by pressing ESC or clicking Stop, but I want the GIFs not to animate at all. I only want to do this on one specific page, and making separate non-animated versions of the (1500...

How to align a <div> to the middle of the page.

Hi! I have a div tag with hight set to 800px, I want that when the browser width is greater than 800px it shouldn't stretch the div but it should bring it to the middle of the page. ...

Hidden Features of HTML

HTML being the most widely used language (at least as a markup language) has not gotten its due credit. Considering that it has been around for so many years, things like the FORM / INPUT controls have still remained same with no new controls added. So at least from the existing features, do you know any features that are not well know...

jQuery - Check Checkbox based on Select Value

Hi, I'm after a small jQuery script that will check the appropriate check box based on what value is selected in a Select element input. eg. If the value 'P.J. Gallagher's Drummoyne' is selected in select#CAT_Custom_70944 then input#drummoyne-list.checkbox is checked. The same goes for all the options in the select list: 'P.J. Galla...

Open html link in new window with no browser toolbars

I know that I can open html links in a new window by using target="_blank", but how can I hide/disable all the browser toolbars ? ...

Parent Div Click Function gets called when Child Div Click is clicked.

Parent Div Click Function gets called when Child Div Click is clicked. How to overcome this issue I am using ASP.Net with C# <div onclick="callme();"> <a href='#' onclick="Callme2();">Hi</a> </div> When I click on anchor tag the div elements onclick also gets executed. How to overcome this ? ...

Give Each Word In An <input> A Random Colour

How can I Give Each Word In An <input> A Random Colour ...

Refreshing a Table Column via Ajax

I have a web page containing a table of jobs running on my system. As these jobs finish or change state the table needs to reflect the changes. Currently I refresh the whole table via AJAX every 8 seconds. This works fine for a certain number of jobs, but causes performance issues with very high (~100) job loads, eventually causing brow...

Html Tag Error

Hi.... Im working with Visual studio 2003 and ultr grid... In my html code i can see tag error like "active schema does not support the element..." because of this i dont hav any problem to execute my web application.. but i just wanted to know why i am getting Tag error... is it because of third party tool ultrgrid?? Can anyone please h...

Is it possible to render image with html?

I have control in a page that gets html from text file and renders that html in webpage. Right now it has to add image somewhere and reference that image src. I was wondering if we can render image along with other html code, is it possible? ...