html

reorder items algorithm

I've got an html table thus: up | dn [ ] Item 1 [x] Item 2 [ ] Item 3 [ ] Item 4 [x] Item 5 [ ] Item 6 [ ] Item 7 If 2 & 5 are checked and I click up, the result is: up | dn [x] Item 2 [x] Item 5 [ ] Item 1 [ ] Item 3 [ ] Item 4 [ ] Item 6 [ ] Item 7 If I click dn, the result is: up | dn [ ] Item 1 [ ] Item 3 [ ] ...

DropDownList with Firefox and ASP.NET MVC

I have been hitting a brick wall on this for about an hour now. I have a list of counties that I build and add to my view data (counties) and then render the list with a: html.DropDownList('invoice.county', counties) in my view. It appears to render correctly but FF REFUSES to set the selected item. I have tried swapping the values ...

dynamic content overlap footer but remain within content flow?

Hi. My footer if quite high so I'm wondering if it is possible to get the content to overlap it slightly whilst still remaining in the content flow? I suppose the alternative is to make the footer a few thousand pixels high and position it at the bottom. It's not an elegant solution though, anyone have a better idea? ...

CSS text-decoration: reverse

I'm surprised that there is no "text-decoration: reverse" in CSS as it seems very awkward to achieve using JavaScript. I.E. set the element's foreground and background color to the background and foreground of the parent respectively. I noticed JavaScript techniques for that here Surely it's not that complicated? ...

How do I submit an HTML form to a Popup windows with resize disabled?

I had designed an HTML form with submit button. But instead of submit it to another page I want to submit to pop up windows where I can limit the size of the pop up windows say "320x240" hide all the toolbar, disable resize. ...

Better to Javascript redirect OR form submit?

I'm doing a select box navigator and wondering if it's better to do a javascript redirect or submit a form and redirect from there. Pros and cons of each? ...

Querying html using Yahoo YQL

While trying to parse html using Yahoo Query Language and xpath functionality provided by YQL, I ran into problems of not being able to extract “text()” or attribute values. For e.g. perma link select * from html where url="http://stackoverflow.com" and xpath='//div/h3/a' gives a list of anchors as xml <results> <a class="qu...

player opening more than one time?

This is my site. When i will select songs for playing player.php file will open and it will play the songs selected. Everything working fine,but the problem is when o will go back and select another songs it is opening one more player window. please help me. I want only one player window has to be opened even i select other songs also...

Problem with disabling submit buttons on form submit

Greetings I am using the jquery disable on submit plug-in but I have a problem. If I disable the submit buttons they dont get passed back to the server so I cant tell which button was pressed. Is this normal? Is there anything I can do about it? I really dont want to retool my website so I have to set a variable on form submission to t...

Validation Message

I have a problem with setting validation message. i have two Model in one control and both Model have same property "amount". So setting validation for one Model.amount will reflect to other Model.amount as well. I have tried to pass different ids to both but not working. <%= Html.TextBox("amount", Model.amount, new { id = "Pamount" }...

get an html element top and left properties data

i'm using the mshtml dll to develop a helper to ie, i'm trying to get the position of an htmll element, i have an object with type of HTMLAnchorElementClass when i'm trying to get his style.posTop value i get a null ref exception is there a better way to do it? maybe other cast? please help ...

javascript form - bypassing default behaviour for ajax

I am trying to use the following code below. What I want is to get the value of which radio button is selected, sent back to the javascript method. Any variation I try seems to fail. <html> <head> <style type="text/css"> body { background-color: black; color: white; } </style> <script type="text/javascript"> fu...

Recommend an html textarea editor?

I'm looking for something with minimal functionality, such as what you see in gmail or even in stack overflow, but aimed at non developers, that is, no markdown syntax. Any pointers? ...

Whats the best way to get data from other websites programmatically? "amazon offers for example"

I want to build a small application which will go to some websites and read specific data from these website, i want the application to be generic as i can so it work on any website i want later. So there is a good way to parse website using .net? ...

SAXException: bad envelope tag

I'm trying to connect to a webservice https protected through a webservice client. Eclipse generated a stub based webservice client and looks nice to me. The problem comes when I try to call a method from the webservice: String a = (String)webservice.userProfileServices(xml); I'm also using the following SOAP headers: esgGateway...

How to embed image in html and send html as email by msdb.dbo.sp_send_dbmail?

I can use msdb.dbo.sp_send_dbmail to send out email in html format. It is very nice for text only in terms of format. For example: EXEC msdb.dbo.sp_send_dbmail @recipients = @p_recipients, @subject = @v_subject, @body=@emailHTML, @body_format = 'HTML'; However, if I want to include images such as trend generated from data on ...

HTML Entity Codes to Text

Does anyone know an easy way in Python to convert a string with HTML entity codes (e.g. &lt; &amp;) to a normal string (e.g. < &)? cgi.escape() will escape strings (poorly), but there is no unescape(). ...

Internet Explorer 8 prototypes and XMLHttpRequest

This is partially a request for a workaround, and partially an attempt to get the word out that Internet Explorer's prototype implementation is still faulty. The following code does not work on Internet Explorer. XMLHttpRequest.prototype.old = XMLHttpRequest.prototype.open; var x = new XMLHttpRequest(); x.old("POST", "test", false); ...

Which is better to display extra info on web page? Pop up when you click or when you hover?

I like to display more info on certain keywords in a web page. I don't want to send the visitor to another page and I prefer to show the extra info on top of the current page. The keywords are in an html list. It's basically a list of features and I want to offer more info about the features. So I have two ideas based on having 'More In...

What is a good book to learn CSS

Duplicate of: What is the best book on CSS? I have experience with web development and need an intermediate book about CSS. Specifically I am looking for best practices and help coping with browser differences. ...