html

Changing a Select dropdown with a jquery ui slider

Trying to set a select dropdown with a slider. You move the jquery ui slider and then it will change the selection of the other two dropdowns. is there a current method in jquery that would set these options? Current dropdown: <select id="alert-options-frequency-opts"> <option value=""></op...

making links with out anchor tag using dojo

I have a image with link <div id="img"><a href="src/blah.html"><img src="/src/img.png"/></a></div> but i don't wanna use tag for linking.the page has multiple entries like this in a page as it is being populated for a search result.Some 10 or more entries will be there in a page.its all inside a <div id="result"></div> have an idea f...

how to convert the html tags and get a message in string

how to convert the html tags to the msg bodg in mail function. i.e i have   Company Name: BPL   Industry Type:   i have got the string as datatable dt=new datatable(); string msg= dt.rows[i]["Message"].tostring(); i need to convert this html tags to the exact message; if (boolcheck) { msg....

Changing background image to a button

I am trying to change the backgound-image of a button but it doesn't work as I thought !! the CSS is OK and it is as follows : #ITA { float: right; margin: 5px 85px; width: 40px; height: 40px; background: #FFFFFF url("../ITA_off.png") center center no-repeat; border: 0; } my javascript function in the "HEAD" is...

How can I save a webpage as an image in my rails app?

In my rails app I have a need to save some webpages and display them to the user as images. For example, how would I save www.google.com as an image? ...

Change of a background image of a button on onclick event

Why does this not work ? In Firebug, when I click on the button, it always says to me that cambiaBandiera is not defined ... HELP Alex CSS #ITA{ float:right; margin : 5px 85px; width:40px; height:40px; background : #FFFFFF url("../ITA_off.png") center center no-repeat; border:0; } JAVASCRIPT (in HEAD) <style type="text/javascrip...

Random padding above list?

Hi all, look at http://ballpointradio.com/new/index.php. Do you see above the Recent Tracks there's sort of padding? How do I get rid of this? Thanks, Sam. ...

Detecting file upload size on the client side?

I'm using PHP for file uploads. In the PHP manual it shows an example using a MAX_FILE_SIZE hidden field, saying that it will detect on the client side (i.e. the browser) whether the file is too large or not. I've just tried the example in Firefox, Chrome and IE and it doesn't work. The file is always uploaded, even if it is way larger ...

iframe widget: know which domains are iframing the canvas?

If i have a php generated widget canvas and site's using the widget iframe it with $_GET parameters, is there anyway to get the domain that's making the request to my canvas page (javascript/php?)? ie - stop people using my widget that don't have permission... ...

Converting digits, generated by weblog service, to Arabic form

sorry if this is irrelevance :-) I need to write something in my html code to convert digits of form 0123456789 to ۰۱۲۳۴۵۶۷۸۹ (Persian digits uni06F0..uni06F9). the number of visitors is generated by blog service. and I want to convert its digits to Arabic. Counter: تعداد بازدیدکنندگان : <BlogSky:Weblog Counter /> نفر the Persian p...

HTML or Javascript Decompiler Available

Is there any HTML or Javascript decompiler available? ...

Doesn't show the android email html format when receive outlook

doesnt show the html format in outlook. please do reply me. sorry for the english private void sendEmail() { try { String value = "" + "" + "Name " + "anroid" + "" + "" + "Version" + "2.2" + "" + ""; ...

Cross browser div center alignment using CSS

What is the easiest way to align a div whose position is relative horizontally and vertically using CSS ? The width and the height of the div is unknown, i.e. it should work for every div dimension and in all major browsers. I mean center alignment. I thought to make the horizontal alignment using: margin-left: auto; margin-right: auto...

HTML email: tables or divs?

Does the HTML/CSS for an html email newsletter need to be in table format, or can I use DIVs with equal assurance it will display well cross email-client? I've downloaded a number of templates to see how they're done, upon which to base my own, and they all seem to use tables. Any insight much appreciated, thanks! ...

BeautifulSoup: Get the contents of a specific table

Hi, My local airport disgracefully blocks users without IE, and looks awful. I want to write a Python scripts that would get the contents of the Arrival and Departures pages every few minutes, and show them in a more readable manner. My tools of choice are mechanize for cheating the site to believe I use IE, and BeautifulSoup for parsi...

Multiple steps form. All-in-one or multiple web pages.

Is it preferable to develop multiple steps form (80+ fields grouped into 5 steps) as single web page (tabbed) compared to page-per-step approach if users tend to complete form when started to populate? What are draw-backs big tabbed single page and page-per-step forms usually have? Thank you in advance! ...

How to keep PayPal variables secure

I'm trying to link my 3rd party shopping cart to PayPal, and in the process I'm finding that my variables are extremely exposed, such that, if someone uses, say, Firebug, to manipulate the values of my variables, they can change the cost of the items in the transaction. I'm very new to online carts and shopping, so my question is how do...

Dynamic Text limit when users writes in a textbox (HTML)

Hello, I need to implement in Html/javascript (or php is possible) a script which works like twitter, when the user writes text in a field a label change showing the characters left. Can you help me with a simple and easy script example? ...

How to get rid of this sliver of white between DIVs?

I am currently having trouble getting rid of a sliver of white... Here is an example page: http://m.stackoverflow.quickmediasolutions.com/view_question.php?id=97969&amp;site=serverfault As you can see, the answers have a sliver of white stuffed between the top of the 'button' and the content. Here is some relevant code: <!-- this is ...

Creating "screenshots" with HTML 5 and CSS 3?

Hi, I need to create small thumbnails of HTML elements. I first thought using CSS 3 reflection, but it is limited to being only a reflection (and not a direct copy) and I can not move it from its standard position. Then I thought using JavaScript to copy the HTML element entirely along with all its contents and apply CSS 3 transform to...