html

Internet Explorer 7 li link hover bug

Internet Explorer 7 only; FireFox, IE 8, Chrome works fine. My left menu http://box1.thegiant.ca/~cuisirama/index.php If you hover any link the brackground becomes transparent how can i fix this? Here is my CSS: div.moduletable_mg { border-top: 1px solid #9C907D; padding: 0px; margin: 0px; } div.moduletable_mg ul { padding: 15p...

How to unproperly encode my HTML chunk so it is displayed properly in my page

I need to retrieve some HTML tags from a database to display in my page. But when the web server outputs the query result (a small html chunk), it encodes the HTML before outputing on the page. Example : <a> becomes &lt;a&gt; The server behavior cannot be changed. If I could change it, I would! Is there a way I can encode my HTML chun...

html script tag not using type javascript <script type="text/html"> ?

I was checking out the source on an html page and came across this <script id="searchItemTemplate" type="text/html"> <# var rows = Math.floor((Model.RecordsPerPage - 1) / 3 + 1); for (var i = 0; i < rows; ++i){ var startIdx = i * 3; var endIdx = startIdx + 3; #> //etc .... </script> I have never seen ...

Which good ways exists to reload page by server for news popular website?

Hi, Which good ways exists to reload front page by server every time that new article placed by editor in front page for (news popular website like fox.com, cnn.com)? Thanks ...

Comparison of HTML and plain text from SQL

Hello all, There are two columns. One of them contains HTML and another contains plain text. How can I compare them as 2 plain texts? Converting HTML -> plain text should be done the same way as a browser does when copying selected HTML into clipboard and pasting it into notepad. Regards, ...

Jquery Hide Class when no class is present

I have some text below called (16 Courses). I need to hide only this text, but I can't seem to hide it no matter what I try using jquery. Is there any help someone could provide so I can hide on this text? <div id="programAttributes"> <div class="left" id="credits"> <h3>Credits</h3> <h3 class="cost">48</h3> (16 ...

How to prevent a form from submitting on page refresh?

Possible Duplicate: How do I stop the Back and Refresh buttons from resubmitting my form? I have a form that like most forms submits every time the user refreshes the page. Is there any way to prevent this so the form submits ONLY when the submit button is clicked and at no other times? ...

how properly achieve height 100%

How to achieve webpage's content container fluently resize, without specifying height=100% or height=auto ? As some of you know it occasionally works properly this way :/ Just like here : http://net.tutsplus.com/ , designshack.co.uk or on facebook ? On both designshack and nettuts I'm not even able to break up the layout. ...

Read file containing PHP without parsing PHP

I am using a wysiwyg editor in a web app. It is FCKeditor. In order to edit a file, other than loading javascript, my web form that edits the the file looks like this: <textarea><?php include('myWebDoc.html') ?></textarea> I also tried this: <textarea><?php file_get_contents('myWebDoc.html') ?></textarea> Both attempts end up parsi...

Nested Incrementing Lists XHTML + Slidy

I am new to XHTML and I could use a little bit of help. I am using a tool called 'Slidy' to help me put together a slideshow on the net, I would like to make an incremented list so that when you advance the slideshow (click or press the right arrow) the next item appears. This should be the case whether the next item is a new item in the...

 enconding issue

I'm developing a website using PHP and these strange chars "" appears in my page, right on the top of it. My code is this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&lt;?php echo '';?> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-eq...

Wrapping tab order with a div (jQuery)

I have two forms on my page, and when focus is set to one of the forms, i want the user to only be able to tab through the current form. heres what the html looks like: <html> <head> <script type="text/javascript"> $(document).ready(function(){ $('form').each(function() { obj = jQuery(this);...

How can I get a div to appear when a textarea is in focus? (both are children of the same form element)

I'm having trouble getting my CSS to work :( HTML <form action="/api/submit/" method="post"> <textarea name="post" rows="2"></textarea> <input type="url" name="url" /> <div> <input type="radio" name="someName" value="someValue" /> </div> <button type="submit">Submit</button> </form> CSS form > input { ...

Rails 2 options_for_select with an ActiveRecord resultset

Does anyone know a better way of displaying the contents of an activerecord result set as a select box. I would like todo this @users = User.all <%= f.select_box :users, options_for_select(@users) %> But for now I need to parse all the users into a multidimensional array with a sub array [username,user_id] Any ideas? ...

php/mysql newbie question

excuse the title but as im not an expericened programmer i dont know how to describe this problem So the problem. I have 2 topics in my topics table. When im on thread 2 it correclty prints a thread to thread 1 but when im on thread 1 it doesnt print the link to thread 2. Whats wrong? $prev_thread = mysql_query("SELECT MAX(id) as pre...

jQuery Selector

Hi all, so I'm having a bit of trouble getting a certain div to show onclick. Any takers? HTML <div style="float:left;width:40px;"> <span class="productControl" style="position:relative;"> <div class="productMenuHolder" style="display:none;"> <ul class="productMenuList"> <li class="productMenuItem">Add to Collection</li...

Writing a webapp for creating presentations

I need to write a webapp similar to Google Presentations, but with lot fewer features (single slide; no effects, just editing styled text; images and shapes), for a specific requirement. I am undecided whether to do it in HTML/JavaScript or in Silverlight. I rate my skills as: C# - Advanced HTML/JavaScript - Intermediate Silverlight ...

Upload a file using Html

Hi, I am new to this.please help me out how to upload a file using html and php.please help me out with some examples.Thanks in advance. ...

Website to mobile website conversion

Hi guys, I have a simple webpage here. If I want to convert it into mobile website, what should to my html or something such that when I open it with my mobile, I should be able to see the whole page in my screen. I tried adding this to my html code... in head <meta name="viewport" content="width=device-width; initial-scale=1.0; maxi...

text convert into an image

Hi, How do I convert text into an image in HTML Thank you. ...