html

How to getback the old form data on Browser Refresh.

Hi All, I am implementing one search solution. Technology i am using is .net Web service, html and java-script (jquery library). * I will state the issue i am facing. There are html elements for 'query string' typing and few 'filtering' options. In Form Submit I am reading those fields, generating the request object and then calling m...

How do I disable the image toolbar for images in IE?

When hovering the mouse over images IE pops up a little toolbar that suggests saving, printing and so on. Here's a pic of this: I need to accomplish this with JavaScript. ...

HTML 5 Doctype causing quirksmode?

Does using an HTML 5 Doctype cause Quirks mode in modern browsers, since HTML5 isn't out yet? (That is Modern Browsers were out before HMTL5 started spreading, so they don't properly support it.) If yes, does this mean that the HTML 5 Doctype is tentatively like none at all? EDIT: If not, what does it do in browsers that don't support...

How to Convert BB Code To HTML view (VB.NET)

Hello , The point of my idea is to write a program for a Web site that has it's own BB CODE (PHP) ,then user of the program can write his message and range his message with this BB code (inside the program) , all this can be done easily , but just one thing I can't do , How can I add a Review before send with this BB code (without conn...

Possible to add HTML content to SimpleXMLElement node

Hey all, Simple question. Is it possible to add a block of HTML in a SimpleXMLElement (or as a matter of fact, DOMDocument) node without auto-converting the HTML data into entity format? For example, take this snippet (with DOMDocument here, but SimpleXMLElement behaves exactly the same): <?php $dom = new DOMDocument( '1.0', 'utf-...

php form script

I'm very new to PHP and am having some trouble. I have a form using HTML which is action=.php method=post The form is using text boxes and select options, I'm not sure if it makes a difference in sqldatabase. I've tried about 30 different combinations of this script and can only get a connect successfully message but nothing is posted....

What is the best method to code physical address in html ?

What is the best method to code physical address in html ? in Semantic, Accessible and SEO way ...

Implement depths in XHTML Strict

I would like to implement <div> beneath a <table>, in other words, the div will be visible, as the table has transparent png's in but it will behind the <table>. Does anyone know how to do this? I tried float:left and differing z-index's, but to no avail. ...

How to get the background color of an element using javascript?

How can i get the background color of any element, say Div, using javascript. I tried:- <html> <body> <div id="myDivID" style="background-color: red">shit happens</div> <input type="button" value="click me" onclick="getColor();"> </body> <script type="text/javascript"> function getColor(){ myDivObj = ...

How to do this in jQuery?

I have to attach the method copyToLeft on onClick event of all images which are inside the TD. TD is inside the table named mismatchList, so that the structure becomes like this mismatchList > tbody > tr > td > img Although i have already done this, but that is using plain javascript. What i did was, i manually added copyToLeft(this)...

Which tools do you use to debug HTML/JS in your browser?

I'd like to collect the best debugging aids for all browsers out there. So that would probably be Firebug for Firefox but what do you use for IE? Safari? Opera? Opera Mini? What else is out there? Are there tools that work well for IE 6? IE 5? ...

how to preview an image before upload in various browsers

I want to show preview of an image before it is uploaded. I have found a partial solution that works for ie6 and firefox, and havent yet tested it in ie7 or ie8. But i want a solution that works in safari, ie7 and ie8 as well. Here is the solution obtained by combining the ie6 and firefox solution: function preview(what) { if(jQuery.bro...

javascript or css trick to group spans without separating them when one reaches the edge of browser

so we have three spans and a parent span <span id="parent"><span1></span><span2></span><span3></span></span> when one of the spans reach the right end of the browser, it moves down, leaving its siblings behind. Are there any tricks here on how to keep these spans together that if one moves down, the others will follow? Thanks. ...

Cookie slows down my website on first start, always like this?

As soon as I implemented only one cookie into my website, the entire website became very slow on first start. I guess it's because it is fetching the cookie information. But is this always the case? There is no heavy code behind fetching the cookie, just plain simple php like this: $arr = $_COOKIE['name']; // array maximum of 10 val...

Multi-level Array to a table

I am trying to convert a multi-level array to a table. However my code does not output what I want. It shows the last child, but not other child and grandchild. I appreciate your help. DB table CREATE TABLE IF NOT EXISTS `menus` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `shortdesc` varchar(255) NOT NU...

IE ignores font-size for HTML SUB elements?

I'm usually well-versed in CSS but this issue surprised me... I have some simple markup consisting of some text and a sub text: <p>I am a main text<sub>This is a sub text</sub></p> I have set the CSS so that by default, all elements get a font-size of 12px. However, for sub elements I am overruling this: sub { color:#999; font-size:...

creating google maps website - map city to latitude and longitude.

is there a way where i can enter a city name and get the latitude and longitude for that location as i am trying to take a list of cities and dynamically populate a google maps webpage. I have the idea of the code below but i dont have the Latitude or Longitude points. foreach (City city in cities) { marker...

How to force elements to stay in the same row

Hi I have a following css : div.container { height:20px; overflow: hidden; margin: 15px 0px; padding:5px 10px 5px 10px; white-space: nowrap; } div.content{ width:100%; float:left; display:inline; } div.content a { float:left; padding: 2px 2px; border: 1px solid #cccccc; text-align:center; } div.content a:hover { backgr...

c# webbrowser control printing

I'm using the web browser control in an application to display a report. The report is just straight HTML text but is fairly wide. When I preview the print using the .ShowPrintPreviewDialog() I see that the report is truncated on the right hand side, even when switched to landscape mode. Currently I am only calling the .ShowPrintPreview...

Custom HTML Attributes,: Firefox vs. IE

What changes do I have to make to the following simple HTML page to get Firefox to read and set a custom attribute as it does in IE? <!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> <meta content="text/html;...