html

See if certain text is in URL and if so print something dynamically via javascript..

Hello - Here is what I would like to ideally do within my HTML - I would like to insert a bit of javascript that checks to see if a certain directory name is listed in the current user's URL and if so, output copy on the page. For example: If the current URL has the word "trigger" in it such as: http://www.mysite.com/pages/trigger/d...

Right column content overflowing over my footer

Hi All, I know this has got something to do with a float, but I cannot seem to figure out where I am going wrong with this. Please check this page for me, the content in the right column is flowing over my footer. http://sun-eng.sixfoot.co.za/index.php?option=com_weblinks&view=categories&Itemid=48 Thanks! James ...

Checking is near/at the bottom of the page

I need to check if an element is x pixels from the bottom of the page, to dynamically load new content. currently, scrollTop and height do not match even if the bar is on the bottom. jquery is allowed, although basic javascript would be more helpful. ...

Brainfart: How to make overflow content in a div

I cant even come up with a proper subject for this one... Basically I have a box div, that when click expands to a rectangle and shows content in the new expanded area. The problem I'm having is that when I animate out the div's width, the browser wants to render the content as the box is stretching, rather than just have it placed wher...

Flow diagram in html/css

Hi, is there some good way to create a flow / swimline diagram without resorting to scripting or tables? I'm talking about showing different hosts sending packets (so hosts on the X axis, time on the Y and arrows to the destination host). It seems like too much elements for tables (especially the arrows spanning multiple columns either w...

HTML, Javascript, PHP and Actionscript all in one Eclipse install (2010)

I just wanted to poll the community and see which plugins people are currently using to get all of these different technologies running in Eclipse. I saw this thread which mentioned Spket & WPT: http://stackoverflow.com/questions/1575617/eclipse-which-plugins-for-html-javascript But I noticed that Spket doesn't seem to have been updated...

I need to get form data from multiple forms on one page using $_POST

My project is a menu that displays daily specials at a cafe. The Pointy Haired Boss(PHB) needs to add/remove items from the menu on a daily basis, so I stored all dishes with MySQL, and created a page which will load all menu items as buttons. When clicked, the button will UPDATE the item, turning it on or off. I need form data to det...

CSS Image Rollovers

<div id="navigation> <ul class="navlist"> <li><img src="images/btn1.gif"/></li> <li><img src="images/btn2.gif"/></li> <li><img src="images/btn3.gif"/></li> </ul> </div> How would I be able to give these "buttons" within the list rollover states without using JS? I'm totally drawing a blank... These link...

How would I know if I should consider HTML 5 for a specific project?

Possible Duplicate: Is it time to start using HTML5? We are just starting out with a project and do not know how to work with the possibilities around HTML 5. But we are hearing a lot of people starting to talk about it. Any advise would be much appreciated. ...

How to make a POST request with python-webkit?

Hi, I new using python + webkit. I need make a POST request with webkit, but I dont know how to it. I use python-webkit because my app load a form on the GUI (for vote, comments and send more data) and I need post all these data with a POST request and load the html result send for the server to my GUI app with python-webkit. I have o...

html tags in the option tags

It seems an html tag can't be inserted in the option tag. Say <option><em>somewords<\em><\option> Is there other ways to style the "someword", without styling the option tag? ...

Why is this <p> expanding the whole page?

If you visit this page and shrink your browser window, you will see my problem. [If you want to open the page in a new window, just hold down shift when you click the link.] The answers to the question extend beyond the page margin instead of wrapping. I have spent the last half hour working with Chrome's Inspector and Firefox's DOM in...

How do I get ASP.NET login status controls to display a Log In option?

I have the following log in status controls on the top of my master page. It displays the logged in as, manager log in, and Log out options. However, when a user is not logged in, there is nothing displayed there. When the user is NOT logged in, is there a way to display a "Login" text link that takes you to the log in page and then ...

How to force a line break in a loooooong word in a DIV?

Okay, this is really confusing me. I have some content inside of a div like so: <div style="background-color: green; width: 200px; height: 300px;"> Thisisatest.Thisisatest.Thisisatest.Thisisatest.Thisisatest.Thisisatest. </div> However, the content overflows the DIV (as expected) because the 'word' is too long. How can I force the ...

Sending HTML email from PHP

I am trying to send a simple HTML e-mail from PHP. The code below simply results in a blank e-mail in GMail. It also has an empty attachment called 'noname', which is not at all what I want; though that might just be a symptom of it not working. The code I am using is: <?php //define the receiver of the email $to = 'morrillkevin@gmai...

How to count no of elements ?

hi suppose i have what i want is inside maindiv i want to count no of elements(may be div input tags)present. there may be use of getElementByTagName(). But the problem is that how to count element. Thanks ...

Keyboard accessibility for divs containing images as options

I just replaced a radio button for selecting the users mobile device with divs containing images of the phone instead. I am using a JQuery click event to detect when the user chooses an option. How can I make this keyboard accessible? ...

How to refresh a HTML iframe in asynchronous time intervals ?

Hi, I need to refresh an iframe with asynchronous time intervals. The asynchronous time interval is calculated in the server side. Also, the user shouldn't able to feel the refresh in the whole page. It is ok if he finds that the iframe is refreshing in certain intervals. ...

Are HTML entities necessary for anything besides escaping?

Obviously &lt; and &gt; are necessary for escaping user input. But is there any reason to use, say, &trade; instead of ™? ...

Aligning data in a table

In the following table, how do I align the data in td cells such that we do not get a horizontal scroll bar, using CSS? Also the requirement is that the height of the table should be adjusted automatically.. <table> <tr><th>name</th> <th>info</th></tr> <tr><td>Harry</td> <td>suminfosuminfosuminfosuminfosum infosuminfosum...