html

Attribute "align" is considered outdated. Newer Construct is recommended...What is newer construct?

I am currently building multiple websites with visual studio 2010 using c#. The only error (messages) i have left or with img align, div align and <a name atrributes...which is considered outdated. A newer construct is recommended. The sites still work but since i am in the learning process i want 0 errors/messages...I cannot find any...

Best way to prevent a field from blurring?

I have a text field that I would like to maintain focus, no matter what. The problem is, my page loads an iframe (cross domain), the contents of which steal the focus. What's more, the user might be typing in my text field as the iframe steals focus, causing the user to type in the iframe's text field instead. I've tried spamming the ...

mail-merge HTML from a database into MS Word

project: Using VB.NET to build a winforms database interface and work-automation app. I am using this editor for the users to enter their text in the database interface environment that will both load/save/show them what they are working on in the form and also mail-merge into a Word document waiting for the content. I can do the first ...

changeFreq - new attribute for all (or at least most) HTML tags - is this a good idea? I'd like opinions before I take this further...

Hey, I have noticed, over the years, that sometimes search results will display results for pages where the content changes on pageload - for example if an online catalogue displays 5 random products in the "Featured Products" section. Some of the search results may be for these areas of the page. An idea I just came up with is that ea...

Textarea with jQueryUI resizable retains dimensions after toggling.

Following is an example code test harness which emulates the problem I am experiencing. Basically, when not using resizable() for the textarea, clicking on the "Content [+/-]" allows the fieldset to collapse and no textarea is shown. However, when using resizable, clicking on "Content [+/-]" causes the text area to be hidden, but the ori...

asp.net multiple non nested masterpages in one project

i have an asp.net site built using visual studio 2010 in c#. the site is basically two sections...(http://www.wsgelectronics.com for reference) the default page is the site.master page with default.aspx. I want to split into two more master pages, one for each section, car audio and computer sections if you look at the site, each with it...

css margin problems

The div "welove" when given a top margin also pushed the div that it is wrapped in down as well. I would not like this to happen. Can anyone tell me what I am doing wrong? The site is live here: http://littleboxcreative.com --html-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-t...

Pointing to a input field

I dont know how some makes it, but sometime when i enter some sites, it automaticly clicked in the input field for me. Example i click search, then on the search page it has "clicked" the field for me, so i just type without clicking my self in it. How can i do that? ...

Styling a parent from a child off-site Iframe?

This is most likely possible, but I want to style the main page using CSS while all I have access is a sandboxed iframe child. Please note that the child iframe is on a different subdomain than the parent. Can this be done? and how? ...

PHP: display most recent images from directory?

I have a camera server FTPing images to a webserver. Can anyone suggest the PHP snippet I'd need that would look through the server's public root directory (/public_html) and display the four most recent images? I can tell the camera server to name uploaded images by date/time, however needed [eg. image-021020102355.jpg for an image cre...

html table cells aren't uniform width in FF, fine in Chrome and IE8

I'm working on an app in ASP.NET MVC 2, and the output of the table looks the way I'd expect in Chrome and IE8: but this is how it looks in FF 3.6.8 it looks like this: I'm using javascript/jquery to add rows, this is the code: function onAddItem() { itemCount = itemCount + 1; var rowString = "<tr id=" + it...

Open 2 webpages on link click

Hello, I have an IFrame on a webpage, and upon clicking on a hyperlink, I need to be able to refresh the IFrame AND ALSO open a different website in a new browser window, any help at all is greatly appreciiated. Thank you jase ...

ASP.NET MVC 2 Filtering multiple drop down lists

I know how to approach this problem but i have very little experience dealing with anything web related. The situation is: I have a controller that returns a view with a user control in it. Inside the user control i have 3 drop down lists; one for companies, one for field offices and one for facilities. When the companies ddl is altered...

jQuery plugin to scroll page, change background and fade back on anchor click?

My nav looks like this: <a href="index.html" class="nav">Home</a> <a href="about.html" class="nav">About</a> <a href="#" class="nav">Services</a> <a href="contact.html" class="nav">Contact</a> On index.html I briefly mention the two services offered and include a "read more" link for each one. It looks like this: <div style="width:46...

how can you have layers see through each other on a web page

i am trying to understand how you can do something like this site where the pictures show through the top menu. is this done through css ? ...

Converting back to HTML characters

I want to convert a string to HTML entities/special characters so that I can store it into MySQL database. Example, This is the way it is stored in MySQL database. V3008-02, WS1 Drain Fitting 1&rdquo; Straight w/Silencer and when rendered on the browse it shows V3008-02, WS1 Drain Fitting 1 Straight w/Silencer My application built i...

Prevent browse to render HTML when using htmlentities() function in PHP

I want to display the output of PHP echo statement on the browser. The result is output of htmlentities() function of PHP. $str = "A 'quote' is <b>bold</b>"; // Expected Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt; echo "<textarea>".htmlentities($str)."</textarea>"; // Expected Outputs: A &#039;quote&#039; is &lt;b&gt;bold&lt;/b&gt; e...

window.location.hash not working?

I have a link (index.html#services) and a <div id="services> that I'm trying to change the background color of when the link is clicked and then fade back. I'm using the latest jQuery and jQuery Color plugin, and: $(document).ready(function(){ if(window.location.hash === '#services') { var service = $('#services'); ...

Safari Extension HTML editing...

Hi! I am working on a safari extension that will need to edit the HTML of the webpage currently being viewed. How do I edit the HTML of the currently viewed webpage within the safari extension workspace?? Thanks! --G P.S: Random question -- I just noticed a "Community wiki" checkbox. What does it do? ...

how to make text color change on mouse over

Page I'm working with is: http://cloudninetech.com/newsite/site/homepage.html Notice the tab slider at the bottom. I wish to make the headings text white when the current tab is selected. I'm not able to do this because I think the color can only be changed by modifying the tabbedContent.js jQuery plugin Can someone suggest a way to ...