html

Store HTML into MySQL database

I'm trying to store a String which contains HTML in a MySQL database using Longtext data type. But it always says "You have an error in your SQL syntax". I tried to store a normal String and it works. Update: This is the query: st.executeUpdate("insert into website(URL,phishing,source_code,active) values('" + URL + "','" + phishingSt...

Iframe covers navigation bar, needs close, open to fix?

I have a small webpage with a form, iframe-d in. When I put invalid input inside the form, the iframe covers up the navigation bar and I can't get the navigation bar back without closing and opening the page again. Here is where I am (temporarily) hosting the webpage: dl.dropbox.com/u/1144456/rlp/v2/demo.html the css stylesheet: dl.dr...

MVC/HTML - input submit won't trigger when HTML is in a text area

Any idea why the below code doesn't trigger if I were to put some HTML inside the textarea? It works fine it I don't have HTML in it, but I'm not sure why it doesn't work with it. Here is the code. <% using (Ajax.BeginForm("AddPost", new AjaxOptions { UpdateTargetId = "blogPosts" })) { %> <table> <tr> <t...

Ordered List (ol) showing up un-numbered?

Hello all, I have an ordered list (ol) on my page but the numbering is not showing up at all! I have done this: <ol> <li>my text</li> <li>my text</li> <li>my text</li> </ol> As I have typed the above, stackoverflow was able to render it correctly the way I wanted it to, like so: my text my text my text ...

How can I make a list self-arrange in an animated way based on periodic json updates ?

I have a list of complex entities (divs), that are scored. The list will be sorted based on updates from the server as the user fills out a form. What i haven't figured out is how to animate the entities into their new positions. I don't want to just refresh the list. Is there a magic JQuery technique that achieves this? ...

Prepend to the title tag using jQuery?

I want to have my title tag look like this: My Website - Name of Page I want to prepend the My Website - part so that I don't have to type it on every new page I make. So the title tag that I actually have on the page would be: <title>Name of Page</title> Is this possible? ...

HTML and PHP simple contact form.

I tried to make a simple contact form via HTML and PHP but the form doesnt seem to submit. it stays on the HTML page and doesnt post to the php form. would love someone to look over the code, thanks in advanced. simple_form.html cdoe <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xh...

How to speed up my websites (backoffices)

Hello im developing some backends in ASP.NET 2.0 and i have put all the images in Cache, GZIPED my CSS, JS files and everything to speedup the load of each options. the performance its good and i have no problems with the clients but i want "MORE" fast loads and im looking for some recomendations. Is important to mention that those web...

How To Change the color of disabled html control in iexplore?

input[disabled='disabled'] { background-color:#FFFBF0; color: #28B51D; } I am using this example but that is not run in iexplore. But also run in other browsers. If any body know then please tell me that how to change the color of disabled html control in iexplore. ...

How to write Javascript function to obtain bitmap data from Html 5 Video player?

So I have simple video tag on HTML 5 page playing OGG video. I want to take Its RGB colors in format of array (assuming we know width and height) conteining colors for each pixel (from pixel 1,1 to maxWidth,maxHeight) like { {R:Color, G:Color, B:Color}, {R:Color, G:Color, B:Color} ,... } ...

HTML / PHP form

I am trying to code an all in one HTML/PHP contact from with error checking. When I load this file in my browser there is not HTML. I am a newb php programmer so most likely forgot something pretty obvious. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html ...

Add URL link in CSS Background Image?

I have a CSS entry that looks like this: .header { background-image: url("./images/embouchure.jpg"); background-repeat: no-repeat; height:160px; padding-left:280px; padding-top:50px; width:470px; color: #eaeaea; border-bottom:1px solid #eaeaea; } How can I add the link to the the background image in t...

Tomcat always gives 404

I'm trying to deploy a Google-Web-Toolkit web application on my tomcat. It works in Eclipse Hosted mode, it works on XAMPP without the rpc calls but on tomcat it doesn't even find the HTML. Before anything happens I always gets localhost:8080/test.html the requested resource (/test.html) is not available. Even when I just put a Hello...

Wrap HTML with DIV until next H3

I have the following HTML structure: <div id="subgroup"> <h3>Group name #1</h3> <a href="#">Link #1</a> <a href="#">Link #2</a> <h3>Group name #2</h3> <a href="#">Link #3</a> <a href="#">Link #4</a> </div> I have this flat structure because I want to use jQuery UI's accordion effect. I want to wrap all a elemen...

Looking For A Good HTML Templater for PHP

That's an HTML templater, not a php templater, not java or whatever. I am looking for something like HAML for PHP. I tried the 2 projects for PHP, PHAML and PHPHaml both of which are suffering from serious bugs. Do you know of any good html templater out there, preferably for PHP? EDIT I''m looking for something that can turn this <...

menu not displaying list item in html

I have 3 menu's like cust , quote and table Under customer,i have edit and delete.It's displaying but the list item in table isn't getting displayed http://dpaste.com/hold/184077/ ...

ASP/HTML problem with spaces and monofonts

I have a ASP has a Function that converts ä to &auml so far so good. I have lets say space for 10 char's if there are more cut them of if there are less fill the space up with &nbsp's. . Like this: test &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp but if i say "täst" it does this: te &auml t &nbsp It interprets the &auml not as one char...

CSS - Why is this invisible margin being applied to my <a> tag css-button?

I was having trouble with two types of buttons. It was a form button and a css button basically. And I was advised that the css button whould use display:inline-block; This made the whole a href tag actually look like a button. But this invisible margin seems to be screwing up something. I tried separating them into separate css classes...

How can I access attributes of Html elements in ASP.NET MVC

With ASP.NET Webforms, I could drag and drop a control on a form and be able to access its properties: if (number == 0) AddButton.Enabled = false; Although I cannot drag and drop a control on a ASP.NET MVC View template, can I change its attributes? For instance: disable a button in some conditions and be able to enable it if c...

How can you find all HTML hyper link tags in a string and replace them with their href value?

I'd like to take a string of text and find all of the hyper link tags, grab their href value, and replace the entire hyper link tag with the value of the href attribute. ...