html

onblur deletes data when submit, why?

I have the following script. <input style="color: #ccc" type="text" value="something" name="country" onFocus="if (this.value == 'something') { this.value='';this.style.color='black';}" onblur="if (this.value != 'something') { this.value='something'}" /> <input type="submit" value="save" /> On blur, the input value is set ...

Poplate html drop down box

EDIT: THANKS - I MANAGED IT IN THE END SHOULD HAVE TRIED FOR LONGER BEFORE POSTING SORRY how do you populate a drop down html box within a form, but populate it with values from a php array for example <form name="mname" action="index.php" method="post"> <select name='values'> <option> </option> <option> </option> </form> i can d...

Display local image in iPhone HTML mail

Hello there, In my app, I am composing an HMTL email message with the 3.0+ MFMailComposeViewController. To do this, I created an HTML file, with some placeholders. In my code, I read the HTML file, and with replaceOccurrencesOfString, I replace the placeholders with data from the app. In that way, I compose the body of the email I want t...

html pass a link with get parameters within a link

Hi there, I am trying to pass a link within another in such a way : http://www.1st_site.com/?u=http://www.2nd_site.com/?parameter1=xyz I think what the problem is , parameter1=xyz is passed as a parameter for 1st_site is there anyway to avoid that? ...

shortcut icon doesn't shown in IE

when i write <link rel="shortcut icon" href="http://localhost/kino/img/clapperboard-icon.ico"&gt; it doesn't show an icon in IE! works fine in other browsers. could you tell me why? thanks ...

Canonical Link as a Way of Fighting Scrapers?

Let's say several external sites are scraping/harvesting your content and posting it as their own. Let's also say that you maintain a single unique/permanent URL for each piece of content, so that content aliasing (on your site) is never an issue. Is there any value from an SEO perspective to including a canonical link in your header an...

Drop Shadow Center Column Website web page

How can I add a drop shadow effect to a website that has one center column? Some examples of what I mean: lala.com mint.com ...

Javascript table construction bug using JQuery in Firefox on Mac OSX

I'm using some code to build up tables using JQuery, but in Firefox 3.5.3 on Mac OSX, the table cells all appear on separate lines by themselves, instead of in their respective rows. Chrome 5.0.342.7 beta on OSX correctly produces the table, as does Safari 4.0.5. Here is a minimal reproduction case: <html> <body> <script type="text/jav...

CSS layout that fills available space

I'm trying to do a seemingly simple webpage layout, but I'm hitting a wall. I'd like to do everything purely with CSS (no tables to muck things up, and no javascript dynamically resizing things) I'd like to have: A heading with a fixed height A footer with a fixed height Left sidebar with a fixed width Right sidebar with a fixed w...

Help with inner content box margins/padding

I am working on a layout for a new site, and I'm having some trouble achieving what I want with the CSS. First of all, I want everything to always stay within the view of the current browser window, with scroll being in my content and not the browser itself. I have an outermost DIV which acts as my "wrapper" for the site displayed center...

How to move list items from two lists (from different areas) to one specific list by clicking the list items themselves, not using a 'move' or 'remove' button via javascript/php?

I've been having some issues setting up a list of items and moving them between each other. Is it possible to have multiple lists, with a link inside each item to move it to a specified list? i.e. List of actions with a plus next to the action, click the plus and move to a specified box? Furthermore, would it be possible to then load ...

HTML overlay height to cover entire visible page

I have a web page that loads some stuff using AJAX. I want to display an overlay with a loading indicator while the loading is in progress, so that the user cannot interact with most of the page - except the menu at the top. I'm using jQuery and the jQuery BlockUI plugin to do this. I call $(element).block() and it works fine, but the o...

TinyMCE editor dislikes being moved around

Hello guys, On a page I have, I need to move TinyMCE editors in the DOM tree once in a while. However, for some reason, the editor doesn't like it: it clears itself completely and becomes unusable. As far as I can see, this behavior is consistent between Safari 4 and Firefox 3.6, but not Internet Explorer 7/8. Here's an example. It tru...

Disable input fields based on selection from drop down

I have a drop down box and some text input fields below it. Based on which item from the drop down menu the user selects, I would like to disable some of the fields. I think I am failing to target the input fields correctly but I can't figure out what the problem is: Here is the script I have gotten so far: $(document).ready(function()...

Is it possible to trigger a javascript to run when a particular anchor is selected?

Say I have an anchor on a webpage like so: <a name="comegetit"></a> Is there a way of running a javascript if the page is arrived at by a link that lands on this anchor? (e.g. a link like <a href="http://myawesomewebpage.com/page#comegetit"&gt;&lt;/a&gt;). I don't think there is but I would like there to be. ...

how do you set the value in a dropdown programatically using jquery

if i have a dropdown with the following html: <select id="myDropdown" name="myDropdown"> <option value="6">Six</option> <option value="5">Five</option> <option value="3">Three</option> <option value="1">One</option> </select> how can i have this dropdown change to a specific selected value after i click on a button? ...

Fonts and formatting in Office Communicator?

I have a bot which generates html messages and most of the IM clietns support HTML tags. But office communicator doesn't seem to understand HTML tags and needs fonts and formatting information in RTF format. I thought of using HTML to RTF converter and passing that RTF information to Office Communicator. But instead of displaying fonts ...

Store html form on client or server while building?

Hi, I have a fairly complex html form enhanced via jquery. It has multiple tabs, within each one things like a html form builder, uploads, descriptions. There is lots of data, and as the user flicks around the various tabs I'm thinking of posting the data to the server. For example, the form builder, has about 10 properties for each fi...

Adding watermarks to textarea

How to add watermarks like "Enter textarea" for a textarea. <textarea rows = "8" cols = "18" border ="0" class="input" style="border: none;" WRAP id="details" name ="details"></textarea> Thanks.. ...

Why don't the images fully display when I convert HTML to PDF with Perl's HTML::HTMLDoc?

I need to create a PDF file from the HTML I have created usign rrdcgi. This page contains the details and graphs in PNG format. I have written the below code using Perl module HTML::HTMLDoc to create a PDF file using saved HTML file. The images are of size width 1048 and hight 266 but when creating a PDF file the images are not shown com...