html

Problems injecting server side variables using <%#

Hi. I was having problems inserting a string into the following tag : <tr id="rowBulkOptions" style='<%# sBulkOptionsRowStyle %>'> Don't ask why I'm using tables :) sBulkOptionsRowStyle is a Public string in the aspx.vb file. Seemingly the only way I can get this to render is to put Page.DataBind() in the Page_Load, Page_PreRende...

Is there a tool like Firebug available for IE

I am looking for a tool like Firebug besides Firebug for IE and Developers toolbar. Thanks ...

cache mpeg files on page load, html + php

Hi I have a page with an ajax page prowser. On two slides an embedded player will play an mpeg or flv video file. First time the page is viewed the file will be loaded and on slow internet connections it will stop-start since is is beeing showen and loaded at the same time. Can I auto-cache the two files on page load so that the are ca...

Placing the table on div

<div id="container"> <div class="main_div"> <div class="cell1">1</div> <div class="cell2">2</div> <table> <tr> <td > The Tag </td> <td> The Tag </td> ..... more data </tr> </table> </div> </div> </body> </html> Here the Table won't fit the containe...

Alternating table row color?

When generating html tabular data, I just wanted to hear what methods you use to alternate the table row color? For my purposes, I am using Java and JSPs on the backend. I was just planning on looping through the data and if index % 2 == 0 set it to one color else set it to something else. Is this ok? Maybe it would be better if I us...

body size when you have a window scroll

Hi all, I have a basic question... When you have a html page with a scrollbar, the size of the body element remains equal to the window size, not to the effective width of the page inside the window... why? Is there a way to modify this behaviour? ...

.checked=true not working with jquery $ function

hi all... i want to select a checkbox when a button is clicked. <form action="" method="post" id="form2"> <input type="checkbox" id="checkone" value="one" name="one" /> <input type="button" value="Click me" id="buttonone"/> </form> when i tried the following, the checkbox was not getting selected $('#buttonone').click(functi...

rotating a product image with javascript only

I just browsed the apple iphone 4 gallery and stumbled upon the 360° view of the new iphone (see http://www.apple.com/iphone/gallery/, click on the 4th image from the left in the thumbnails view). First I thought it would be a flash movie which lets you rotate the iphone image, but as I inspected it with firebug I found out thats just pl...

Embedding a java applet in Wordpress

I have an applet that works alright on this page. It just references the .class file. (unfortunately, I have lost the source, and the jar files.) I want to reference it here, however it does not start. Probably because it cannot find the class file. the applet tag looks like this <applet code="/applets/language/LanguageEngineApplet.cla...

Table caption element is causing page to break when printing

Hi there, Consider the following table: <table> <caption>The caption</caption> <thead>...</thead> <tbody>...</tbody> <tfoot>...</tfoot> </table> The table renders right when displaying on screen, but when printing it breaks the table for a new page. When I delete the caption element or display:none, the table renders right on printin...

Screen to print font faces

What is your normal method on styling print style sheets when it comes to font faces. Traditionally serif fonts are better for printed media, but if the sans serif font is still clear and legible, would it be a better option for a print style sheet, if it made the print outs match the website more. ...

image editor to add to my web site

hEY, Do You know any image editor with functions like draw on picture which I can add to my html web site ? It's something like paint for www ...

hyperlink tag active state not working

whenever i've tried using the hyperlink/anchor tag active state, it doesn't work. even if i click on the link, it should show it as in active state, but there's no effect. is there something i'm missing? this is a basic example- html: <ul> <li><a class="main" href="">Home</a></li> <li...

Div inside of a <td>?

Is it valid to have a div inside of a <td> element? I need to display a box inside of the table.. Update: I need this box (that appears in the td) to have padding..i.e. it really needs to look like a box thats floating in the middle of the td. ...

jQuery finding out what is at a particular X/Y co-ordinate?

Hey, I have the following function: function getPosition() { var cLeft = $('#element').position().left; var cTop = $('#element').position().top; } I also have this: $('ul#container>li.node:eq('+XXX+')').css({'border' : '5px solid yellow'}); Now, is it possible to determine what index for the LI's is at the co-ordinates prov...

Timepickr jQuery function not working

I'm trying to implement a timepickr element into my website, however it seems that the element will work ok in one section of a page, but not in another. I reference the appropriate css files… <link rel="Stylesheet" media="screen" href="ui.timepickr.css" /> <link rel="stylesheet" media="screen" href="jquery.timepickr.css" type="text/cs...

Three dimensional Javascript array

Hi guys, I am trying to build a 3D Javascript array, but I am unsure of how to do it, basically I have 3 arrays, Provinces, Cities and Malls all in succession, so I want to create a 3D array to store all the data in and then write some jQuery/Javascript to get out what I need. I have a script that can populate a drop down list with arr...

Handling JavaScript calls to window.open()- not using Native Windows - Adobe AIR

I am developing an Adobe AIR application which uses both native windows and floating panels. Is is possible to enable the creation of a floating window instead of a native window when a JavaScript window.open() function is called? It is required that all of the floating windows are contained within one native window, therefore the creat...

Fake loading/progress bar for slow non-Ajax page

Hi, I'm developing a site which serves some slow (up to around 4 sec. loading time) pages due to extensive database queries. In order to let the users know that the new page is loading (also to prevent multiple clicks), I'm displaying a div with a fake loading bar on the page where the users clicked a link to a slow loading page. Actu...

Triply grouped-by tabular data - how to display?

I need to display a bunch of data in a table on a website as part of a report. The problem is there's a bunch of it, and it needs to be visually grouped. Each piece of data is a "usage" of an item, and has a date (representing when it was used), a store number (corresponding to the store that used it), an item name (the item that was us...