html

Why is textarea filled with mysterious white spaces?

I have a simple text area in a form like so: <textarea style="width:350px; height:80px;" cols="42" rows="5" name="sitelink"> <?php if($siteLink_val) echo $siteLink_val;?> </textarea> I keep getting extra white space in this text area. When I tab into it my cursor is like in the middle of the textar...

Contact Form Domain Blacklists (using java, html or php)

I'm using HTML contact forms on a business site to post lead information to Salesforce. We're using auto-responders to deliver key information to people who complete a form asking for additional information. The goal is to reject forms that are submitted by competitors. It doesn't need to be bullet proof; the main idea is to reject an...

When do browsers start to render partially transmitted HTML?

I have a long-running report and want to show a wait-spinner to the user while it's generating. I have made this work already but am not sure I'm doing it the best or right way. This is using ColdFusion but it could be any language I guess. At the top of the page, I have some Javascript (jQuery) that shows a wait-spinner plus there's a ...

When loading an html page via ajax, will script tags be loaded?

When you load an html document using AJAX, what does it do with the nodes inside the HEAD tag: (script,link,style,meta,title) ignore them or load and parse them? And in the case of jquery 's ajax() function? ...

How to design a static/dynamic survey application?

I'm struggling here a lot really. I need to prepare a form that is something between static and dynamic. Basically on the first part of the survey you get a question asking you to select items from the checklist. You select the items and then you are presented with a list of n number of questions. Now, some facts: the questions and p...

Offline HTML templating

I'm designing a simple website with no dynamic content that I want to be light and portable — no PHP or other server-side scripting needed, or wanted. I'm running into a question that I've had a few times before. I'd love to be able to write common elements (head, foot, navigation) once and write the individual pages on the site with co...

Why do some websites access specific versions of a CSS or JavaScript file using GET parameters?

I have seen quite a lot of websites doing this (even stackoverflow itself) within their generated HTML source, accessing a specific version of a CSS or JavaScript file with GET parameters. What's the point of it? Example: <link rel="stylesheet" href="http://sstatic.net/so/all.css?v=6230"&gt; <script type="text/javascript" src=...

jquery append element from string + do not close tags properly

Hello, I have the following string elements that i want to append to the DOM, but in IE the tags do no close. Example: $("#accordion").append('<div id="mydiv" class="sortme">bla bla bla</div><div id="panel" class="accordionPanel"></div>'); After IE render it the div elements for instance are rendered without closing tag. It was suppo...

Is it good to use bullet image inplace of browser default bullets for UL to get cross browser result?

Is it good to use bullet image inplace of browser default bullets for UL to get cross browser result? ...

Transforming tablecell content with CSS or jQuery

I have a html table similar to this: <table> <tr> <td>1</td> <td>Some text...</td> </tr> <tr> <td>2</td> <td>Some text...</td> </tr> <tr> <td>3</td> <td>Some text...</td> </tr> <tr> <td>1</td> <td>Some text...</td> </tr> <tr> <td>1</td> <td>Some text...</td> </tr> <tr> <t...

Can you make an embedded MP3 keep playing from where it left off?

Is it possible to make an mp3, that is embedded in a webpage, keep playing from where it left off if the page is reloaded? Perhaps into a cookie or with any other method. <embed src="track1.mp3"></embed> For example: track1.mp3 is embedded in a webpage; it is 3 minutes long. A visitor loads the webpage and listens to the first 1 minu...

text overflowing tables when generating PDF with dompdf

I am generating some PDFs with dompdf, which contains some text and images in a table. But if the text has a large URL in it, the URL wraps all the way to the end of the line. All the text and URL are wrapped in a div with fixed width and height, yet the URL still overflows. The same HTML rendered in the browser seems to be OK. Any t...

What is a tool that will syntax highlight using only HTML with class attributes?

Hi. I'm looking for a command line tool (or Perl module or VIM script or whatever) that will take some input files (such as XML or JavaScript files) and format them in HTML. I specifically want my output not to contain stuff like <span style="color: red"> or <font color=red> according to a particular colour scheme, rather it should use...

a page shuold be open in right frame on clicking link of some page if left frame?

i am new user to php and i have a html page which is devided into two frmaes left frame and right frame and i am showing a tree list page in left frame and what i want to do is that when i click on a node of tree related link page should be open in right frame. how can i do this. plz help e out. ...

Get referrer percentage

What will be the best way to go about getting the referrer details like say google 20%, msn 10%, internal 70%. Its for finding out how each article posted on the site was viewed or accessed or referred. Not in google analytics. But its for the bloggers to check after they have posted a technical article. The app is in php and also uses Z...

Is it best practice to use same text in browser <title> and in <H1>?

Is it best to use whatever we want to use in <h1> Should be same in <title>? Is it good for SEO, Accessibility, Usability, in any terms? <title>How to decide What should be chosen to make heading bold &lt;strong&gt; or &lt;h3/h4/h5&gt;? - Stack Overflow</title> <h1>How to decide What should be chosen to make heading bold &lt;strong&gt...

How to auto select center picture in a slide images?

Hello. I have slide-show images used jquery and jcarouse lite. You can see it in http://mayvanphongtmt.com/bug/hexbal.htm I want to its auto select center picture( has difference background) in slide. Now, when I click on right arrow, it can work correct 5 times, on 6-7 times, it work incorrect. And more, when click on left arrow, on...

How do I remove focus onmousedown in IE?

The ultimate goal: pretty pages for mouse users, accessible pages for keyboard users. The effect I want is for clicking an anchor to produce no outline during and leave no outline after. Further, I want keyboard tabbing to move the focus and thus surround items with an outline. The following code works in FF (and I assume the other mo...

adding element dynamically from javascript

all, How to create an element in javascript, say <div></div> and i want to assign a javascript value to it say var a=3; Example: <script> var ele=create element('<div>'); ele.add(a) </div> </script> Thanks.......... ...

how to know load finished event of newly injected html script element in Qt?

Hi all, I would like to know load finished event of newly injected html 'script' element from Qt. After that i want to call one method of that js file . I am working with Qt UI application. From main method i open the web page. In on_webView_loadFinished() slot , i write script injection first and after that invoke one method from the ...