html

"Share on LinkedIn" widget chokes on encoded spaces in url param

Does anyone know why I am not able to include my own, URL encoded URL params with URL encoded spaces? See the URL on my jsBin page constructed from LinkedIn's example--I have added (%3FnestedParam%3Done%20space) at the end of the "URL" value. THEN, if you remove the encoded space (%3FnestedParam%3DoneSpace) it works fine: Try it out: h...

clear text onclick - textfield

what is the best method to clear text in a text field, when the user clicks on it... i.e. if the text search field says "search" and when they click it, it clears the value.. thanks ...

Question about software that tracks divs better than notepad++

I recently got hired as a web developer, and the project that I am overseeing has a formatting issue on one of the pages because one of the divs is out of whack. It is a fairly complex page with quite a bit of php, and from what I can gather, I am missing a </div> tag somewhere, and accordingly everything is messed up. I am currently us...

Get values from select items with same name

Hello, I have a HTML form with a variable number of select fields. Each select field represents the same category, so I named all the selects like mySelect[]. The code I wrote for getting the values is bellow: for ($i = 0; $i < count($_POST['mySelect']); $i++) { echo $_POST['mySelect'][$i]; } But I don't get any results. What is ...

Open HTML meta redirect in new window

I need web page to redirect via HTML meta and open that page in a new window. How can I do that? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Photo Gallery Redirect</title> <met...

Definition list disc not showing up

CSS: .about dt { list-style-type:none; font-weight:bold; } .about dd { list-style-type: disc; list-style-position: outside; margin-left: 0px; padding-left: 30px; } And the html <dl class="about"> <dt>Current topics and titles </dt> <dd>Fulfilling community residents&rsquo; appetite for information about popular cult...

Permission Denied using Javascript/jQuery on a local file

function publish(text) { $('#helpdiv').prepend(text); } function get_help(topic) { $.get(topic, publish); } <p>Hi. <a href="#" onclick="get_help('inline-help.html'); return false;">click here for more help.</a></p> <div id="helpdiv"></div> I've inherited this chunk of HTML and javascript above (snippet). It is/was going to be use...

Make Div overlay ENTIRE page (not just viewport)??

Hello, So I have a problem that I think is quite common but I have yet to find a good solution for. I want to make an overlay div cover the ENTIRE page... NOT just the viewport. I don't understand why this is so hard to do... I've tried setting body, html heights to 100% etc but that isn't working. Here is what I have so far: <html>...

css layout - break down

So I am trying to get the effect of having two frames inside a 750px wide frame. .news {width: 750px;} .news1 {width:550px;} .news2 {width:200px;} Very simple css at this stage. The html/php: <div class="news"> <div class="format"><a href='newspiece.php?news=<?echo $id?>'><?echo "$subject\n";?></a></div> ...

How do I apply the browser height to a CSS class?

You can read your browser dimensions with jQuerys $document.height or with simple JS via height: window.innerHeight || document.body.clientHeight. But how do I apply the value to a CSS class? ...

disable new line after /form in IE

I have a form in IE where it starts a new line after /form. Is there any fix to this? ...

What's the difference between the input type "text" and "password" in an html form?

Hi everybody, this question might seem stupid, but here's the situation: I'm trying to create an auto login page for my mail using jquery's post request, but it's not working, it works with all other pages except with webmail. So, trying to figure out what was wrong, I recreated the login form, here's the code: <form id="form1" name="fo...

Comprehensive HTML page for testing CSS?

Looking for example code that uses semantic HTML that I can use to test stylesheets with. The version/doctype is unimportant though HTML5 would be great. When I say "comprehensive" - I am looking for use of definition lists, forms, tables, plus all the usual. Thanks ...

XSLT string with HTML entities - How can I get it to render as HTML?

I'm completely new to using XSL, so if there's any information that I'm neglecting to include, just let me know. I have a string in my XSLT file that I can display like this: <xsl:value-of select="@Description/> and it shows up, rendered in a browser like: <div>I can't do anything about the html entities existing in the text.</div> ...

How do I create multiple file downloader without ActiveX?

I want to create multiple file downloader without Activex on web page. please answer me how to do. ...

Mvc relative path using virtual directory..help!

When i drag and drop my image/script/css file into my view, relative path will automatically use to refer on the files. example: <link href="../../Content/style.css" rel="stylesheet" type="text/css" /> <script src="../../Scripts/jquery-min.js" type="text/javascript"></script> <img src="../../Images/logo.jpg" /> It is working fine ...

HTML Form HIdden Fields added with Javascript not POSTing

I have a form where the user can enter a link, click the "add link" button, and that link is then(via jQuery) added to the form as a hidden field. The problem is it's not POSTing when I submit the form. It's really starting to confound me. The thing is that if I hardcode a hidden field into the form, it is posted, but my function isn'...

How to calculate size of HTML text to be drawn.

Hi, How to create pages and display in UIwebView from HTML file? How to calculate and draw the amount of text from HTLM file. pls suggest? ...

HTML/CSS - Website Help.

I'm trying to build my first website from scratch. I mocked up the design in Photoshop, and have been trying to convert into code for a few hours. But I haven't got far. In fact, I'm stuck on the header's navigation bar. It looks right, but it doesn't work. I'm using an unordered-inline list, and trying to link different rectangles in ...

How to make the value in submit button ,transparent?

Hi, I have a submit button in a form and i use a css class which sets a background image as the submit button. I need to give a value to this submit button, but i dont want it to be displayed to the user. If i set the css color property to transparent it works fine in my firefox 3.6. But the value gets displayed in ie 6 and 7. How can i...