I have a drop down list like so:
<%= Html.DropDownList("SoldTo", Model.SellDealerList, "Select a Dealer")%>
I'm populating the list in my Controller with the following code:
SellDealerList = new SelectList(repository.GetDealerList(), "id", "name", vehicle.SoldTo);
When I debug through the code the selected value on the SellDealerLi...
It's easy enough in Wordpress to create a nav bar based off wp_list_pages and wp_list_categories. But these output text, and you can't effect each output li in a different way.
I know I can manually create the nav bar, but is there a good way to replace the wp_list_ output with images?
...
I have this gallery of thumbnails of youtube videos with their title under.
http://skitch.com/subzane/bqgqw/demo
The problem I have is that when floating them they don't appear as I like, this because the height is variable. I've read a blog post a few weeks ago solving just that problem but I can't find it anywhere.
So I'm asking for ...
Ok, so this is very odd. I have a site that I am breaking out into several ColdFusion documents for header/footer/etc. The footer of my site is affixed to the bottom using a jQuery plugin. When I go to the index.cfm page (in chrome) to view the results, the footer placement is off. I then "right-click...view source" and highlight all...
Can search engines such as Google index JavaScript generated web pages? When you right click and select view source in a page that is generated by JavaScript (e.g using GWT) you do not see the dynamically generated HTML. I suppose that if a search engine also cannot see the generated HTML then there is not much to index, right?
...
Hi,
When I use Request.Form("myInput") and the input field "myInput" is blank, I get a server error.
How do I handle this?
Is there a way to check if "myInput" has not been filled?
...
I have CSS that looks like this...
.ColorSeparatorArea
{
background-color: #3d3d77;
height: 1px;
}
... and then I'm applying that style to a DIV element:
<div class="ColorSeparatorArea"></div>
It works fine in non-IE browsers, but in IE, it sets the height of the div to the height of one line of text and it won't let me go ...
There are many examples on the internet of doing this type of thing. But none of them work in Firefox. So I thought I'd set the challenge for Stack Overflow users.
Basically I need a very easy to use way for a user of a page to get the results of a query into the clipboard so that they can paste it into excel.
It can either be getting ...
Hello all,
Anyone know how to create a division like the the ones used in Google Chat inside Google Mail? i.e. they are always at the bottom.
I hope there is a way to create it with HTML and CSS only.
Thanks.
...
I'm working on an app where we insert our app's widget into the body of a site, at the bottom. We made it so that the widget's position is fixed, with bottom: 0. The widget would persist no matter where you are on the site; that is, it's at the bottom of the viewport. The trouble is that the widget covers elements at the bottom of the si...
Yesterday someone asked Width absorbing HTML elements. I presented two solutions: one table-based and one pure CSS. Now the pure CSS one works well in Firefox and Chrome but not in IE.
Basically the floats are being bumped down to the next line. It is my understanding (and the behaviour of FF and Chrome) that this should not be the case...
Can this be done?
It seems like this should be possible. In general, I want the whole panel (div) to flow as you would usually expect within the body. However, I'd like to absolutely position the controls within the panel.
My experience is that when I try to absolutely position a control within a flow panel, the controls are not treat...
I'm doing some attribute parsing as a string, so I need to know how spaces are used in HTML/XHTML element attributes:
<div id='myid' width='150px' />
Is this also correct?
<div id = 'myid' width = '150px' />
If anyone knows other ways of iterating through attributes and their values using JavaScript, I'd be interested to know.
...
I need the JavaScript code to iterate through the filled attributes in an HTML element.
This Element.attributes ref says I can access it via index, but does not specify whether it is well supported and can be used (cross-browser).
Or any other ways? (without using any frameworks, like jQuery / Prototype)
...
I'm working on developing a Web 2.0 site, and I've been looking at how sites deal with menus and nav-bars. Many sites (like twitter) use UL's whereas sites such as stackoverflow use div's that are ID's containing links.
Is there an advantage to not using UL's other than it eliminates some IE bugs?
is there an advantage to using UL's?
...
I have to submit a HTML form to a 3rd party website and one of the hidden fields is an XML string. The XML needs escaping before it is sent to the 3rd party.
However when I add the plain XML to the form field it semi-escapes it for me. So then when I use HTMLEncode myself part of the XML is double-escaped. How do I prevent the automatic...
I've read several guides on implementing a php cache system (my site is custom coded, fairly query heavy and growing) including this one: http://www.snipe.net/2009/03/quick-and-dirty-php-caching/
I understand them fully but there are certain parts of the page that I can't cache, what's the best way to go about doing that?
...
There was a thread on this in comp.lang.javascript recently where
victory was announced but no code was posted:
On an HTML page how do you find the lower left corner coordinates of an element (image or button, say)
reliably across browsers and page styles? The method advocated in "Ajax in Action" (copy I have) doesn't seem to work in I...
i want to reset a file upload field when the user selects another option
is this possible via JS? i'm suspecting that the file upload element is treated differently b/c it interacts with the user's FS, and maybe it's immutable
basically, what i want is something like (pseudo)
// choose selecting existing file
$('#select-file').bind('f...
For HTML, CSS, and JavaScript files, what's a good tool to run on source directories and get KSLOC?
...