html

Content div not filling up the remaining space

Basically #content is not obeying the height: auto attribute. What am i doing wrong? <!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 runat="server"> <title id="title" runat="server">AMIDS: Advanced Mana...

jquery change element to element

Hello <div class="leftlink" id="mcontacts"> <img src="test.gif" class="arrowred"/> <a href="/contacts/" class="u">Контакты</a> </div> if(window.location == 'http://my.site.com/contacts/') { $('.menuwelcome').css('display', 'block'); $('.leftlink').find('Контакты').css('font-weight', 'bold'); $('#mcontacts').find('a'...

Embedded pdf object steals focus and will not let it go

Hi guys, I was given the task of adding some usability to one of our applications, ie. make sure that every controll has a shortcut key, and that they can be reached by "tabbing" through the page. The gui runs in a IE. control on a winform, and consists of asp.net pages, so basically it is just asp.net always running in internet explor...

Iteration through the HtmlDocument.All collection stops at the referenced stylesheet?

Since "bug in .NET" is often not the real cause of a problem, I wonder if I'm missing something here. What I'm doing feels pretty simple. I'm iterating through the elements in a HtmlDocument called doc like this: System.Diagnostics.Debug.WriteLine("*** " + doc.Url + " ***"); foreach (HtmlElement field in doc.All) System.Diagnostics...

"’" showing in page in place of this " ' "...

’ showing in page in place of this ' what is the problem? how to solve This is already defined in <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Update: Browser is already set on Unicode And content type is already set too ...

persist value between two pages using javascript

i have a one html page in which i am storing few user selected values now and want to use these values on another html page. i am using jquery in my module and i have already tried window.name and window.localStorage but they don't persist values between two pages. so please help me to solve this problem. ...

jQuery click event on td row not firing.

i have a simple bit of jQuery which displays the row below the current one if selected. What I want if for all the <td> elements but one to fire this method. Works on whole <tr> row $(document).ready(function(){ $("#report > tbody > tr.odd").click(function(){ $(this).next("#report tr").fadeToggle(600); ...

how do I POST a jpeg to a web form the way a browser would?

I need to upload a file to a form. This is a generic browser based upload I want to mimic. I have looked through the HTML documentation but I can't figure out how it works. right now I am using a URL to submit the rest of the form information "www.domain.com/form.html?field=value&field2=value2". This is all there is to the HTML for the...

How do i make a background image right click able?

I gave up on trying to center an image vertically and horizontally. I seen solutions that require you to know the size of the image. I do know background-image will center it properly. However i cannot right click the image and hit save as. Is there a trick i can use to allow this? ...

Is using iframes to improve page performance an acceptable approach?

Hi all, I have a complex page that has several user controls like galleries, maps, ads etc. I've tried optimising them by ensuring full separation of html/css/js, placing js at the bottom of the page and trying to ensure I have well written code in all 3 but alas I still have a slow page. It's not really noticeable to a modern browser ...

Encoding Issue [NSFW]

Hello, I am having issues correcting an encoding type issue on a site. Unfortunately the site is non work safe (gay porn). For the brave: SNIP Ive tried setting the meta content from utf8 to iso-8859-1. Ive switched tables over to utf8 from latin1_swedish_ci but no luck. EDIT Note very pretty, but I exported everything into a text f...

Center an Image vertically and horizontally? css

How do i vertically and horizontally center an image when i do not know the size of it? I asked this question and someone suggested using a table. This isnt the first time i heard a table can do it but i tried without luck. Searching SO only got me results when i do know the size of the image. How do i do this with a table? NOTE: Javas...

Can I render in tabular form with <ul> and <li> in html?

I want to display data in a tabular form using <ul> and <li> as shown below: mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata mydata I cannot use <table>; I have to use <ul> <li>. Actually the problem is with OpenSocial while rendering data coming from JSON <li repe...

HTML - make input field selectable but not changeable

Like the youtube embed text fields. How do you make a text field selectable but not changeable? ...

html to text with domdocument class

How to get a html page source code without htl tags? For example: <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" content="hu"/> <title>this is the page title</title> <meta name="description" content="this is the description" /> <meta name="keywords" content="k1, k2, k3, k4" />...

Can i rename a file when the user does save as? HTML

I use url rewriting and one of my urls is /blah/file ILLEGAL CHARS.jpg ILLEGAL CHARS are names not valid on windows such as * and may confuse servers even after escaping such as ? and /. I know i still cant save filenames as / and ? but certain characters i would like to let through. How can i give a new filename when the user right cl...

How to set HTML list as mx:DataGrid data provider?

So I have Html like this http://trac.edgewall.org/wiki/RecentChanges (I want to create some Flash Track reader which will be opensource) I need to list in my DataGrid Index of all viki pages in form like +-----------+--------+ |page name |page url| +-----------+--------+ | name | url | +-----------...

Why is it bad practice to use links with the javascript: "protocol"?

Hello everyone, In the 1990s, there was a fashion to put Javascript code directly into <a> href attributes, like this: <a href="javascript:alert('Hello world!')">Press me!</a> And then suddenly I stopped to see it. They were all replaced by things like: <a href="#" onclick="alert('Hello world!')">Press me!</a> For a link whose sol...

How do I find the vertical position of tags using .net webbrowser control?

I need to traverse through an HTML document and detect the position of each tag so I can insert HTML elements when I reach specific positions, such as the bottom of a page (9x11 paper) I am using the .NET web browser control. I cannot seem to get the code to figure out my current position. OffsetRectangle is dependent on the parent node...

target="new" is not opening new tab or window of my browser in OpenSocial app!

target="new" is not opening new tab or window of my browser in OpenSocial app! ...