html

Class is not applying to submit button

Hi All, I m Trying to apply a class to following submit button Code: <input type="submit" value="Submit" name="commit" class="confirm-button-submit "> css : .confirm-button-submit { width : 79px; font : bold 12px sans-serif;; color : #000; background : url("../images/confirm-btn.png") 0 -33px no-repeat; ...

Php referrer works or not?

I need to know the referring server for a page on my site. Is there any safe method to check where the user "came" to the page FROM? I tried uploading this to my server, but this wont output anything at all when I write the adress to the file in the browsers adress bar: <?php echo $_SERVER['HTTP_REFERER']; ?> I need to check thi...

Re-Databind on RadCombobox with ajax??

So I've been moving a lot of stuff into a webservice because it makes the whole thing make more sense to me personally. Also makes AJAX easier for me. Right now the user will say they want to save a new contact somewhere then, through the webservice, they are added to a database and that call returns the new primary key so that I can c...

Stop an input field in a form from being submitted

I'm writing some javascript (a greasemonkey/userscript) that will insert some input fields into a form on a website. The thing is, I don't want those input fields to affect the form in any way, I don't want them to be submitted when the form is submitted, I only want my javascript to have access to their values. Is there some way I cou...

activate a css webkit transition using javascript onclick

I have an img that I would like to be able to click on and have my .image_click:active { -webkit-transition-duration: 500ms; -webkit-transform: scale(1.5); } stay scaled! I realize that css alone can't do this, as I achieve the transition when I click, but lose it when I release the mouse button. Is Javascript the solution for thi...

JQuery Validation Plugin not working when used on page that includes another page via AJAX

We have a long page that contains a bunch of different form elements. One part of the form is called remotely via AJAX and is populated in an empty div. This is the part which JQuery Validation plugin is not working correctly on. We have class="required" on the elements on this page, but they do not show up as required. I'm guessing it...

Is there a way to make HTML labels work with form elements without IDs?

For example, given: <label for="username">Username:</label> <input id="username" name="username" value="" /> When you click on the "Username:" label, focus goes to the corresponding form field. Without resorting to JavaScript, is it possible to have the same behavior when the form field has no ID? Real world example where this will ...

reading non-english html pages with c#

I am trying to find a string in Hebrew in a website. The reading code is attached. Afterward I try to read the file using streamReader but I can't match strings in other languages. what am I suppose to do? // used on each read operation byte[] buf = new byte[8192]; // prepare the web page we will be asking for HttpWebRe...

HTML: Include, or exclude, optional closing tags?

Some HTML1 closing tags are optional, i.e.: </HTML> </HEAD> </BODY> </P> </DT> </DD> </LI> </OPTION> </THEAD> </TH> </TBODY> </TR> </TD> </TFOOT> </COLGROUP> Note: Not to be confused with closing tags that are forbidden to be included, i.e.: </IMG> </INPUT> </BR> </HR> </FRAME> </AREA> </BASE> </BASEFONT> </COL> </ISINDEX> </LINK> </...

How to get image to pulse with opacity with JQuery

I am trying to get an image to change opacity smoothly over a duration of time. Here's the code I have for it. <script type="text/javascript"> pulsem(elementid){ var element = document.getElementById(elementid) jquery(element).pulse({opacity: [0,1]}, { duration: 100, // duration of EACH individual animation times: 3...

Fix a box 250px from top of content with wrapping content

I'm having trouble left aligning a related links div inside a block of text, exactly 250 pixels from the top of a content area, while retaining word wrapping. I attempted to do this with absolute positioning, but the text in the content area doesn't wrap around the content. I would just fix the related links div in the content, however...

make a button to change the parent's CSS classname attribute

so I have a javascript function that changes the class name of a div function flip (event) { var element = event.currentTarget; element.className = (element.className == 'card') ? 'card flipped' : 'card'; } How can I make it so my onclick="flip(event)" can be attached to a button (or preferably an image) and the button will then f...

php Mail function; Is this way of using it safe?

I have a classifieds website, and inside each classified, there is a small form. This form is for users to be able to tip their "friends": <form action="/bincgi/tip.php" method="post" name="tipForm" id="tipForm"> Tip: <input name="email2" id="email2" type="text" size="30 /> <input type="submit" value="Skicka Tips"/> <input type="hidden...

Pulse effect with jQuery

I still cannot seem to get pulsing images to work with jQuery. This is code that apparently should work but does not. <!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> <title>test</title> </head> <body> ...

Is there a way to force a page in IE8 to render in IE7 quirks mode or IE8 Compat View Quirks Mode?

NOTE: When I say "Browser Mode" and "Document Mode", I'm referring to the rendering options in the menu bar of IE8's developer tools. We're noticing odd functionality on our website in Internet Explorer 8. When the user clicks the "Add to Cart" button, the jQuery .load() method is called to request a new webpage that is then placed ins...

Style of input=File as a button

Hello guys, I'm trying to put some style in the input=file aka uploader and I'm having a hard time with it, is there some NON FLASH solution (maybe jquery or even plain javascript)? ...

Find a control by String from asp.net Web service

Well since it seems relatively difficult to send the object of a WebControl over JSON using jquery.ajax() I've decided to send the name of the control as a string because I know how to do that. Then I promptly realized that, from a web service, I don't actually know how to search for a control by ID name. Since its a service I can't seem...

Prototype Selectors

Hi, I have been trying to use Prototype to do some DOM manipulation, but I am not able to find much help on a certain selector. I have a table with many rows and each of these rows has 4 columns, with each having a different class name. Some of the cells might be empty, i.e., they do not have a class, in a particular row. Now, when ...

jQuery Dynamic Button Click Handler

I have a code the change the html of a div to make a button. When I make a click handler for the dynamic button, nothing happens $('#signinup').html("<button id=\"login_submit\">Sign In</button>"); And the handler: $('#login_submit').click(function() { alert("Works!"); }); ...

How to make overflow: hidden really hide content?

Please, look at this example. I intend making horizontal layout with pure html/css, don't bother of old browsers. I made it with display: table technique. But displaying main text containers (light-yellow) became a problem. Each of this has overflow: hidden to prevent vertical scroll. Later, I intend adding some shadow effect at the bott...