html

ASP Button (Command vs Submit)

I want this to be a command button not a submit button, so that when the user presses the "Submit" button is "clicked". ASP Code: <asp:Button CommandName="StartButtonName" CommandArgument="soo" CausesValidation="false" ID="StartButton" Text="..." Visible="false" runat="server" OnClick="StartButton_Click" /> Generated HTML co...

Vertically align div (no tables)

I can horizontally align a div and all the content looks nice. Looking to vertical align a div that does not contain any tables. I tried setting margin positions to some negative values inside of the #container but that sort of worked. I know CSS isn't supporting this yet? Here is my markup: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...

How to get mouseup to fire once mousemove complete (javascript, jquery)

It seems that mouseup events are only fired when they are not in conjunction with a mousemove. In other words, push down on the left mouse button and let go, and mouseup is fired. But if you drag across the image and then let go, no mouseup is fired. Here is an example that shows this behavior: <script src="http://ajax.googleapis.com...

Jump to Anchor from CodeBehind without repost

Is there a way to append an anchor (test.aspx#23432) in the codebehind to the end of my current location in my address bar without using Response.Redirect()? ...

How to get old Value with onchange() event in text box

I have a text Box and a Value poplulated in it when page loads. Now If user chanegs any thing in text box, then I want to get the Changed Value(New Value) and Old Value but when I do ELEMENT.value then its giving only changed Value any Suggestions to get old value? below is my code <head> <script type="text/javascript"> fun...

mumamo-alt-php-tags-mode by default

Hello, I just started playing about with emacs yesterday for a project I'm working on. Anyway, i've started using the nxhtml-mumamo for web dev work and have got everything working alright except for when an HTML attribute contains is written as such... <element attribute="<?= _ID ?>"></element> ... which invalidates the source. I've...

CSS Formatting to Keep Together

having a heck of a time with getting this formatting correct so any ideas would be appreciated. we have a bunch of information pertaining to foos that we want to keep grouped together. So if we had a bunch of foos listed next to each other, if that element causes the foos to wrap, the entire foo would stay together. Also the formattin...

HTML <meta> tag and squid

Does the HTML tag: <META http-equiv="Cache-Control" content="no-cache"> <META http-equiv="expires" content="0"> <META http-equiv="Pragma" content="no-cache"> also instruct squid to not cache that particular page? Or is it only telling the user's browser to not cache it locally in his/her machine? ...

How to display a web page and keep its location a secret?

Background: I have a PHP based (Zend Framework) application. It is secure, and only users who have been invited are able to access its resources. One of the resources that I want to keep secure is a link to a private Google Calendar. This is a public link, but I want to be in control of who can view it. There may be a time when a user a...

ASP.Net MVC HtmlHelper.Checkbox

Hello, I'm trying to figure out how to alter the value of a checkbox in ASP.Net MVC. Basically what I want to do is have the value of a checkbox returned to the DefaultModelBinder so that I can use it in my controller method for manipulation. As of now, the values generated default to true/false for visible and hidden inputs respective...

In VB how can I use a website url to create an HtmlDocument object that contains all the html from that webpage?

I was trying to use HtmlDocument and a given url to pull in the html contents of a website to use. However there is no constructor for HtmlDocument and it's Url property is readonly. Is there any way to create an object that contains the entire DOM for a given url? Thanks, Matt ...

What are all the HTML escaping contexts?

When outputting HTML, there are several different places where text can be interpreted as control characters rather than as text literals. For example, in "regular" text (that is, outside any element markup): <div>This is regular text</div> As well as within the values of attributes: <input value="this is value text"> And, I belie...

Embedded PDF always appearing over Absolutely positioned elements

We have a page where a PDF is embedded, and are trying to pop drop-down menus, jQuery UI dialogs, etc. over the PDF document which is currently displayed. The problem is that the PDF is ALWAYS taking the 'front' position, so any elements dynamically created appear behind it. This was a common problem with Flash back in the days of DHTML...

Group select boxes into array for post?

I know how to send data via a multi-select form object and group the data into an array: <select name="my_data[]" multiple="multiple"/> Is it possible to have multiple different select boxes with "single" values and push them all into an array? i.e. <select id="select-1" name="my_data[]"/> <select id="select-2" name="my_data[]"/> r...

Markdown vs. HTML in a CMS

I'm working on a fairly large CMS-like app that includes a forum, wiki pages, etc. What whould you chose between Markdown and HTML? I'm concerned about usability and the fact non-techie people will use this. Markdown has a very simple syntax but few users know it with HTML you can use a WYSIWYG editor but they are often terrible ...

Extract data from a website's list, without superfluous tags

Working code: Google dictionary lookup via python and beautiful soup -> simply execute and enter a word. I've quite simply extracted the first definition from a specific list item. However to get plain data, I've had to split my data at the line break, and then strip it to remove the superfluous list tag. My question is, is there a met...

ASP.Net MVC: Can I use a FormCollection to determine which radio button was selected?

I'm using a FormCollection to get client input on an ASP.Net MVC view. I was using a checkbox, and I would just check to see if the FormCollection's AllKeys list contained the name of the checkbox I was checking. I now need to switch to a radio button, but since the inputs need to have the same name (which seems a bit silly to me), I can...

HTML: Naming conventions for ID attributes

Lately I've been doing a lot of front-end work. Some developers here have been naming their elements things like "divPhotoGalleryContainer" and sometimes I'll just see "galleryContainer." Is there a good naming convention? Is adding "div" really useful? ...

How to markup a ladder/draw

I need to markup a ladder for upcoming tournaments, and I can't find any way to mark it up semantically. The only way I've seen so far is to mark it up as a table, and I'd like to avoid that at all costs. Any ideas? ...

I want to use the same image more than once and I would like the web browser to download this image only once, how to do it?

I want to use the same image more than once and I would like the web browser to download this image only once, how to do it? ...