html

How do I access the list of classnames using javascript/jQuery ?

here are the html elements : <input class="myClass problemOne" type=text value=something></input> <input class="myClass problemTwo" type=text value=somethingelse></input> and here is the javascript and jquery in which I am tryign to access classaname, neither method a, or b works ... "classname is null or not an object". var myElem...

Javascript block removing

I really need to remove some block with the help of js. Is it possible not to hide some block, but remove it at all? Because I have a field wich user will not be able to see if he selected "no" in my selectbox, but JQuery validation anyway sends message that this field is empty. I have this: $(function () { $("#wichone...

Multiple character encodings inside one HTML page possible?

I have a webpage that is set to UTF-8. But parts of its content (built in php) come from iso-8859-1 files and are thus not displayed correctly. Is it possible to set a specific encoding for a particular page element? ...

PHP get all unclosed HTML tags in string

Hello! How can I get all the unclosed tags in a given string, prefferably in the order they should be closed? Note: consider that there are no errors in the HTML and that it was just cut off after X characters. No it's not a case of bad html or overlapping tags etc. Also there will be no ending Example: <p><span>Lorem</span><b>ipsum ...

Getting x and y position of mouse pointer relative to an element.

Hi can anyone help with this? When I move the mouse pointer of a element, I would like to retrieve the x and y positions relative to the <div> E.g - when I put the mouse pointer at the top left point of the div I would expect to get an X of 1 and a Y of 1. This needs to be compatible for Internet Explorer Thanks all for your time. ...

Javascript truncate HTML text

Hello. Does JavaScript have a way of truncating HTML text without all the headaches of matching tags etc etc? Thank you. ...

How does Vimeo do their 'more' videos container scrolling - aka Flash scroll bars for HTML content

On a Vimeo.com video page (say for example http://vimeo.com/12887367) there is a container to the right of the video titled 'more', which has a customized flash scroll bar. I would like to replicate something similar on a website I am working on, which I am currently using jScrollPane in (but having some problems with different browsers...

jquery: submit form after a value is selected from dropdown

I have this form in my html: <form action="/awe/ChangeTheme/Change" method="post"> <select id="themes" name="themes"> ... <option value="blitzer">blitzer</option> </select> <input type="submit" value="change" /> </form> anybody knows how to submit it when a value is selected in the 'themes' dropdown ? ...

Javascript: Enter does not work for submitting password

I can't get the following code working: when I press enter in the text-box, the function is not called. I can't see why though... <form> <p align="center"> <input type="password" class="password" name="text1" onkeypress="submitonenter(text1.value,"money","cash",event)" /><br> <input type="button" value="Enter" style="width: 100px" name=...

Compressing web pages with php, javascript, html, and css in them

I have found utilities that can compress html, javascript, and css files individually. However, lets say I have a file called homepage.php with php at the top of the page, css and javascript in the header, html in the body along with more php code and perhaps some more javascript. Sometimes, the chunks with javascript may also have php i...

PHP Help converting diacritic characters to HTML quotes

This one's driving me nuts . . . I have a bunch of MS Word files that a client wants displayed on his web site. I've converted them to HTML using "Save as Web Page" -- and yes I know that this produces lousy HTML but other methods I've tried lose the links to the imbedded images. For the most part, I can use PHP to clean up the displa...

Why isn't min-width working for ie6?

Hi there, I am coding exclusive ie6 css, wherein I am facing the problem. The footer does not take the min-width value whereas it accepts the fixed width value. I am using the repeat-x for an image and assigning a min-width value to it. The same thing I did with header div and it works perfectly fine. For example here is my code. Heade...

how to disable windows themes while loading page?

hi all, I might asking simple question. But i dont know how to resolve it? I just created normal button. which contains text around 30 characters. Then button size should increase accordingly. But button coming in ugly manner in IE. I checked in some other machines. There it is coming better. I just understood, my ...

CSS positioning with IE8 - expressions not supported

Hello, I have the following code: <html> <head> <style type="text/css"> DIV#left { z-index: 100; position:absolute; left:0px; top:0px; width: 100px; height: 100px; background-color: #e7e7e7; } DIV#right { z-index: 100; position:absolute; left:100px; top:0px; width: 100px; height: 100px; background-color: #e20074; } </style> </head> <bo...

Easiest way to embed HTML/CSS/JS content in a Windows (XP +) C++ application?

Hi, I have an app written in C++ using Visual Studio 2010 to run on Windows (version XP upwards) as an .EXE. It uses plain Win32 for the existing UI. I also have some content based on web browser formats, HTML/CSS/JavaScript. I would like to have this content displayed in the application window, in the same way that WebView works on And...

How to set the <img> tag with basic authentication

I would like to display the image from a network camera on my web page, but the image is behind a HTTP basic authentication server. In Firefox and Chrome I can do this: <img width="320" height="200" src="http://username:password@server/Path" /> But in Internet Explorer 8, I get an empty image box. If I use JQuery to set the src attr...

Cache an html file on the client

In some of my pages I have "templates". For example, I might have a table, and I have a "template" for each row in the table <div class="wholeRow"><div class="lefCol"><!-- some stuff will go here --></div>... Then I use JS to fill out this table. It's a bit silly though that the user has to load this template every single time they vi...

submit button not lining up no matter what with two input boxes in a table.

Hello, This is ordinarily a simple task. I have a simple sign in form that has an email input,password input, and a submit button, all in a horizontal line. After hours and hours of taking styles off, and trying different structures, the button sits a little lower then the boxes. I am thinking it might be because I have absolutely positi...

Laying out "Label - Value" to center without use of tables

So often you will have a number of labels (lets use name, age, colour) and a value for each! If I placed these In a 2 column 3 row table I could make sure that the values (lets use Steve, 19, Red) all start in the same horizantal position. And if I wished by having that column left align, and if i also wanted have the label column righ...

HTML Different link type Question

What is the difference between? Thank you. <img src="images/file.jpg"></img> between <img src="/images/file.jpg"></img> between <img src="./images/file.jpg"></img> between <img src="../images/file.jpg"></img> ...