html

How to resolve 500 Internal Server Error ?

Hi, I am getting "500 Internal Server Error" when I used ajax call. What is causing this problem? How to resolve it? ...

Why sifr text's swf takes more width than actual text ?

I think if we can match swf size with original text width's then rendering will be fast. ...

HTML/CSS - Issues between Firefox and Chrome, and IE

Hi all. I'm working on a site for a friend, and the code I'm using is showing up differently in Firefox and Chrome - the way it is in Chrome is the way I want it to look, but Firefox is messing something up. I uploaded what I have so far here: http://baruchlevine.com/test/ If anyone has any ideas how to get it to work in Firefox like it ...

Set cursor at a length of 14 onfocus of a textbox

Hai Guys, I want to set cursor at a position of length 14 on a textbox which will not have a value.. Iknow initially cursor will be at 0 i want it to be at 14 ...

Server Internal Error : Premature end of script headers in file.cgi

Hi, I am running Apache server. When I send the request from HTML using ajax call to cgi, I am not getting any response. I found the following error statement in the httpd/error_log file: Premature end of script headers: file.cgi When I gave alert to the status code, it returned 500 Internal Server Error. How to resolve this? ...

jquery: loading an html element with $.ajax or $.get methods

I would like to learn how to achive the following with the other two functions, or at least the ajax function. $('#myDiv').load('index.php #content'); How would I load #content in the index.php file, into #myDiv on the current page with the $.ajax and $.get methods? The url param doesn't seem to take a selector with any other ajax me...

Can a website pass focus to the browsers url field?

Can I create a piece of code for my website which focuses the browser url bar (field) so I can directly start typing in a new url? There could be for example a predefined hotkey which would execute this code. Background: My (mouse-less) webapp steals the focus when loaded, so keyboard shortcuts can work. Users requested a possibility t...

Getting Web page document in Windows mobile 6.0

Hi All, After searching lot on the internet we have found following code to get only body part of the web page loaded onto web browser control IPIEHTMLDocument2 *pHTMLDocument; IPIEHTMLElement* pBodyElement; CComPtr<IDispatch> spDispDoc; HRESULT res = m_spWebBrowser2->get_Document(&spDispDoc); if(SUCCEEDED(res)) { spDispD...

Can javascript file get its ows name?

I am trying to build some sort of logger functionality in JS. Is there any API for getting its own filename? ...

How do I mimic browser back arrow in my application page ?

request.path gives me the clicked url. I need a return link on that page which on clicking, should return to Referrer page, just as it would happen in case of browser back arrow . I do not maintain any session and do not want to hardcode the referrer page url. ...

Change text direction in iframe dynamically

I want to be able to change text direction, per line, inside iframe's document. Like in Gmail compose mail textbox. (By the way how Gmail accomplish that?) For now I define this: iframe's outerHTML = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'&gt;" + ...

.png images display in IE8 alone but not inside a page

Hi It's been a while since I did serious web development. Now I meet a host of brand new problems I'm no longer familiar with.. I have some .png images for various icons in my web page. What I find is that whenever I edit these images, they stop working inside a page in IE8. That is, they (usually) display OK when I first open the page...

Hiding DIVs without IDs or Classes

My html page includes tons of text including lots of DIVs and Tables. At the end of the code, there's an automatically created code such as: <div id="fld1_date" ... style="position:absolute;visibility:hidden"> </div> <div id="fld3_date" ... style="position:absolute;visibility:hidden"> </div> <div id="fld8_date" ... style="position:ab...

how to create the upload progress bar using javascript

hi all, i am using php to upload the file to server, HTML and javascript on the client side. i want to create a determinent progress bar which progress of the file upload,using javascript Regard, fresher ...

Html: play audio without controls?

I need to play a mp3 audio file when the user clicks on a image. I only want to audio to play, i.e. there should be no controls, widgets, etc. Nor should the browser launch an external application. Edit: ok, I might be able to try out flash. recommendations for a lightweight flash player? ...

populating different data with select onChange in php

Hi, i need some clarification on how to populate select(s) with data from mysql. Basically what I am trying to do is: There will be a first select box with some data in it. <select> <option>1</option> <option>2</option> <option>3</option> </select> when the user selects a option in the first select, there is a second select ...

Working with HTML Entities

I am storing HTML code in my MySQL table column. For inserting records, I framed the query like this: $InsertQuery = "INSERT INTO listing (ldate, places, company, designation, projectdetails, desiredcandidate, hrname, hrcontact, email) VALUES (DATE_FORMAT('" .$ldate ."','%Y/%m/%d'),'" .$places. "','" .$company. "','" .$designation. "','...

How to extract the RDF snippet out of an HTML page?

I want to extract the RDF snippet of an web page. Since it can even be inside a HTML-comment I'm at a loss here. Can anybody point me into the right direction, what libraries or classes to use or something like that? The goal is to have the trackback URL to be able to send trackbacks. ...

iframe don't reload at page refresh

is there any way to div or iframe don't reload at page refresh ...

Ways to hide first column of table through CSS.

This code is working on browsers other than IE: table.tbl.tr.td:first-child { display: none; } What shall I use for to make it work on all browsers? ...