html

Could not instantiate mail function. Why this error occuring

When Im trying to send mail through PHPMailer, im getting this error message. My code is below. Help CODE : <? require("phpmailer/class.phpmailer.php"); // First we require the PHPMailer libary in our script $mail = new PHPMailer(); // Next we create a new object of the PHPMailer called $mail $mail->From = "[email protected]"; $...

Textmate - select and modify matching HTML Tags

Textmate - Is there a shortcut for selecting matching HTML tags or another way to quickly remove/modify an existing begin and end tag at once? Kind of like SHIFT + CTRL + W ... but for tags that already exist in the code. ...

How to make silde like homepage of adidas.com with jquery

adidas.com so cool !!!!!!!!!! why not with jQuery, CSS & HTML? How div with different height & width together fill up div container when height & width are get random from database? Someones help me? ...

How can I render HTML as text using Perl as Lynx does?

Possible Duplicate: Which CPAN module would you recommend for turning HTML into plain text? Question: Is there a module to render HTML, specifically to gather the text, while adhering to font-style tags, such as <tt>, <b>, <i>, etc and break-line <br>, similar to Lynx. For example: # cat test.html <body> <div id="foo" c...

Seting User Agent param in PHP Simple HTML DOM Parser

Is there any way to include the user agent string along with the request send by PHP Simple HTML DOM Parser? ...

HTML textarea not correctly sized in table in ie8. Doctype problem?

<!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" > <head> <title>Untitled Page</title> <style type="text/css"> #textarea1 { width: 100%; overflow:hidden; } #...

JS: How to make document.getElementById cross-browser?

Hi, document.getElementById doesn't seem to work across all browsers (I mean some old ones) and I am sure there are developers who are not aware of this. What solutions would you suggest to make it cross-browser? Thanks ...

Encode HTML entities but ignore HTML tags - in PHP

I have a string that might look like this $str = "<p>Me & Mrs Jones <br /> live in <strong style="color:#FFF;">España</strong></p>"; htmlentities($str,ENT_COMPAT,'UTF-8',false); How can I convert the text to HTML entities without converting the HTML tags? note: I need to keep the HTML intact ...

How to add an element befroe the first element?

Hello. I am working on a comments system. I am using PHP + jQuery, I need to add the last comment to the top, i mean before all the DIV elements. E.G. <div id="comment"> <div class="comment-3"></div> <div class="comment-2"></div> <div class="comment-1"></div> </div> So now I want to add the new <div class="comment-4"></div> with jQue...

I don't want url #hash to be in the url after submitting the form

update: In this case action="url.php" works as I desired When I submit a form (I use get method), the url #hash part also got appended to the end of url after submit of the form. I tried to change the action of the page to get rid of this url #hash from the string. I removed the action part from the form, provided action as action="url....

Drop Down List background color

Hi is it possible and how to change background color for an item in a drop down list on focus using css or javascript? Thanks ...

Assigning Users to Profiles

I have an mvc app where I want to assign a user to a profile. I have two multiline select lists (i.e <select size="10"></select>). One for profiles the user is part of and one for the available profiles the user can become part of. I am using JavaScript with two buttons to move the items between the two lists. When the form submits the ...

PNG transparency of backgrounds to submit buttons or inputs of type image

Hi bit of a silly question. Are there any png transparency issues with backgrounds to submit buttons or inputs of type image? Or do they behave fine just like img tags with a png image as the source. I understand for IE6 you need a hack for png transparency to work. ...

c# Encoding conversion?

Hi, I have a string which looks like: &#xC0; l&#x27;int&#xE9;rieur But it needs to be: À l'intérieur I tried changing the conversion. I know it's read as ASCII encoding. So I tried using the code: ASCIIEncoding ASCII = new System.Text.ASCIIEncoding(); Byte[] BytesMessage = ASCII.GetBytes(Title); Title = Encodi...

URL in URL for flashplayer

<object type="application/x-shockwave-flash" data="flashapplication.swf?plan=plans/images/OBJECT_<%=iID %>_swffile.swf&data=./cgi-bin/dynamicXML.ashx&nextargument=nextvalue" /> <param name="parameter1" value="NULL" /> <param name="parameter2" value="NULL" /> </object> Now i should pass a parameter in cgi-bin/dynamicXML.ashx a parameter...

Libs for HTML sanitizing

I'm looking for a html sanitizer which I can call per API to sanitise strings which I get from my webapp. Are there some useful easy to use libs available? Does anyone knows maybe one or two? I don't need something big it just must be able to find unclosed tags and close them. ...

Where to specify image dimensions for fastest rendering: in HTML or in CSS?

I've learned that it is a best practice to explicitly specify image dimensions. The browser can then already layout the page while still downloading the images themselves, thereby improving (percieved) page rendering time. Is this true? And if so, is there a difference in specifying the dimensions in either HTML or CSS? HTML: <img sr...

Using an html button to call a javascript function

I am trying to use an html button to call a javascript function. Here's the code: <input type="button" value="Capacity Chart" onclick="CapacityChart();" > It doesn't seem to work correctly though. Is there a better way to do this? Here is the link:http://projectpath.ideapeoplesite.com/bendel/toolscalculators.html click on the capaci...

Load a Web Page in Flex component

Is there a way to display a web page in a flex component like Canvas, Hbox or TextArea? Thanks ...

Rails collection_select html options.

I can't seem to find the syntax to add a class to a select tag generated by rails collection_select. Some help? ...