html

html: embed streaming video (crossbrowser)

hi all, i'm trying to embed a .wmv video into my website but doesnt work :( i've googled and tried <embed> and <video> the video i'm using was created by super converter and i've used WMV7 as video codec. is there a crossbrowser solution for it - or should i better use flash video? thx in advance ...

Preserve HTML font-size when iPhone orientation changes from portrait to landscape

I have a mobile web application with an unordered list containing multiple listitems with a hyperlink inside of each li: <ul> <li id="home" class="active"> <a href="home.html">HOME</a></div> </li> <li id="home" class="active"> <a href="test.html">TEST</a></div> </li> </ul> ...My question is how can I fo...

Restrict number of lines in html JLabel

I have a JLabel that needs to display some html-formatted text. However, I want to restrict this to being 4 lines long (and if so, provide a button to see everything). So far, I've tried setting the maximum size manually or via a layout manager. However, both of these solutions can cause part of a line to be displayed. edit: To add a...

How to hide labels in html

I have this code which depends on this javascript from dynamic drive: http://dynamicdrive.com/dynamicindex16/formdependency.htm Its a form dependency manager. Which will show or hide elements depending on what you choose from the forms that are revealed: I don't know why but If I alter the code from this: <td> <label>ID Number<i...

Ruby on Rails simple_navigation Gem

I'm using the simple_navigation gem with RoR 2.3.5 It all seems to work correctly, I followed the info in the RDoc (seen here http://rdoc.info/projects/mexpolk/simple_navigation) However, when I actually render out the simple_navigation menu on my main application.html.erb file it escapes all of the html in it (multiple escapes actual...

Is there a method in Java that allows me to replace all HTML special characters into their encoded equivelant?

I have a textfile which my Java program is modifying and putting into an HTML file for display. However, this textfile contains lots of HTML unsafe characters such as "<" and the ">" which would need to be encoded into & gt; (sans space) and & lt;. Is there some library method I can use to sanatize my text document to replace all thes...

scroll bar important query???

Hello all, actually i downloaded code for scroll from....... http://sorgalla.com/jcarousel/ but when i added it in my page and add using code ... function addElement(url,imagePath){ alert(url); alert(imagePath); var container = document.getElementById('sncs'); items = container.getElementsByTagName("li"); //alert(items.length); var n...

JQuery form validator that is W3C Valid

Im doing some form validation on a website and I've tried to use JQuery Validator and it works find but isn't valid as it uses custom attributes. I've tried every which way to make it valid but it seems besides some other custom javascript, which is not an option, it isn't valid. Has anyone come across one that is valid? Or some other w...

Custom HTML Output on Zend Form Checkbox setLabel Property

I am rendering a Zend Form Checkbox and I would like to render some custom html at its setlabel property. My form construct model $terms = new Zend_Form_Element_Checkbox('confirm_terms'); In my View Script $this->form->confirm_terms->setLabel('<a href="'.'/index/terms'.'">Terms of Service</a>'); However since setLabel escapes the ...

jQuery noobie can't make a checked checkbox show an alert.

I found this answer before, to fire an alert if the button is pressed but the checkbox isn't checked. Why won't this work? I have this in the head <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; And this in the body: <input value="1" type="checkbox" name="salgsvilkar" ID="checkbox2" style="float:left;" ...

What tools do you use when developing html?

What applications/services do you guys used when building websites/web applications with web technologies? Windows? Mac? ...

Web development tool that can comprehend the concept of more than one language in a file at once

I currently use notepad++ on windows or gedit on ubuntu. Both of them work great with code highlighting and hinting etc. But both of them suffer from a huge flaw. I am yet to find a code editor that can handle this concept: <?php // ooh, look I am doing some php ?><a onclick="alert('hay, some javascript in here now!')"> This link is HTM...

how to pass php variable value to action attribute of html form

hi, i want to pass php variable value as a action to html form. i am trying as follows, but it is not working. <?php $url='test.php'; ?> <html> <body> <form name="upload" action="<?=$url?>" method="post" > <input type="submit" value="submit"> </form> </body> </html> All this code are in one php file. ...

Disable all form controls on a web page

What is the nicest way to disable all form controls on a web page? I have read that this cannot be done via CSS but this would be my preferred option if possible. I also have access to jQuery if that makes life easier. ...

disable scrolling in an iframe

Is there a way to disable scrolling all together in an iframe? I have an iframe where the content exceeds the iframe dimensions, setting scrolling=no only removes the scrollbars but doesn't disable scrolling. I don't have control over the head of the iframe-html, so I can't style my way out it. Any ideas? ...

How to check if a checkbox/ radio button is checked in php

I have this html code: <tr> <td><label><input type="text" name="id" class="DEPENDS ON info BEING student" id="example">ID</label></td> </tr> <tr> <td> <label> <input type="checkbox" name="yr" class="DEPENDS ON info BEING student"> Year</label> </td> </tr> But I don't have any idea on how do I check...

jQuery broken function after added new function

What's wrong here? The alert function was working until I added this new function to it. Is there anything I am doing wrong? It just simply doesn't fire the alert anymore. <input value="1" type="checkbox" name="salgsvilkar" id="checkbox2" style="float:left;" /> {literal} <script src="http://code.jquery.com/j...

UL+CSS for grid layout

Hi all, I have a server-generated html like: <ul> <li><!-- few nested elements that form a block --></li> <li><!-- few nested elements that form anaother block --></li> <li><!-- etc, X times --></li> </ul> All blocks have known width 200px and unknown height. I want <li> to be arranged in table-like fashion like this: ...

continuous music on website

Hi all, I'm against it as I'm sure ALL of you are, but my client wants background music on their website. I'm very new to this, so was wondering how should I do that? I know I should use iframes, but what's the actual way of using them? eg: do I just create the home page with 2 frames (one for the music, one for the rest of the website...

"Ghost" values in PHP/Smarty.

I've been working on a site for a while changing the layout and skin of a webshop checkout process. I've noticed that if you go all the way through the process until the last page, then click the link to go back to the view products page, the delivery method price displays underneath the navigation buttons, until you refresh and it goes ...