html

Preventing Site from Being Indexed by Search Engines

How can I prevent Google and other search engines from indexing my website? ...

How much functionality is there in an .xlsm file embedded in html

If I were to embed a macro-enabled workbook on a web page, would the users be able to: 1) Run the macros and if so 2) Would the Macro run on the server or the user's machine? ...

Color (syntax highlighting) within an HTML <code> tag

In a code fragment like the following ... class Foo { internal Foo() { for (int i = 0; i < 42; ++i); } } ... its various keywords and so on are color-coded when they're displayed in my browsers. When I do "View source", I don't see anything special in the HTML that would implement this color-coding. How and/or where is thi...

Hpricot looping with index ?

Hello, I have the following HTML doc : <ul> <li><span>Some text</span></li> <li><span>Some other text</span></li> <li><span>Some more text</span></li> </ul> How can I use Hpricot to loop on the list items and insert some new HTML at the beginning of each, so that I get the following : <ul> <li><span>1</span><span>Some text</...

[HTML/CSS/JavaScript/PHP]: In which order code must be written?

While writing code in a file that would comprise of PHP, HTML, CSS & JavaScript, in what order each must appear? What are the best practices for separating the presentation and the logic? Sometimes external .js and other files are using in the link tag. Where these link tags must appear? ...

[PHP/HTML]: URL Masking.

I want to know about the advantages and disadvantages of URL masking. Does it really make sense from security point of view? ...

[HTML/PHP/JavaScript]: Profiling tool.

Is there any free profiling tool with which I can measure the performance of HTML, PHP and JavaScript code independently? ...

color compatability issues in Internet explorer and firefox

Hello, I got stuck among the weared behaviour of browsers. Ihave a div which has a background image which has color code #fbc61e so i set the background color of div to #fbc61e. This works well in Inernet explorer. But when I render same page on firefox an edge appears between image and background where image ends. When I analysed the...

Can't get the table / news articles aligned properly

Hi there, For the life of me I can not figure out why my table will not display properly. 365-hosting.net/hosting2.html ( until source is corrected ) 365-hosting.net/style.css ( CSS file) I am only posting it this way because the automation of this help script feels it is spam. I have never openly asked for help before so this is new t...

Query strings generating each time when paging links (next, prev) are clicked, Help

I am trying to implement paging and i done that. The problem is when I click the search button the search results are displayed with no problem. 1st Snap http://www.flickr.com/photos/41695354@N08/4057149857/ 2nd snap http://www.flickr.com/photos/41695354@N08/4057149861/ When i click the next button, it once again gets the value from a...

Insert, Defer, Prototype and Append elements

Hi all, This might be a more generic browser/javascript questions than a prototype specific quesiton but i thought it would better to ask here because you all tend to really understand javascript and browsers in a ton of detail. So here goes. If i execute the following code: HTML: Javascript: $('area').insert({bottom: "<div ...

Changing the symbols of a html password field

As the title says: is there any way to change the "*" or in some browsers a bullet that appears in password fields in HTML? thx ...

Justified plain text from HTML

I need a plain text representation of an arbitrary HTML file (e.g., a blog post). So far that's not a problem, there are dozens of HTML to txt converters. However, the text in paragraphs (read "p elements") should be justified in the plain text view (to a certain amount of columns) and, if possible, hyphenated to give a better readable r...

GSP g:select option default selection

Hi guys, is there any possiblity to select a option field by default in gsp g:select tag? I only saw the "noSelection" parameter in the documentation. <g:select name="user.age" from="${18..65}" value="${age}" noSelection="['':'-Choose your age-']"/> But I need a default selection from the data I got. For example 18..65 is my ...

Does ec2 have good latency?

For keeping a website with significant traffic, how good is the latency on Amazon EC2? I have heard that it is slow for websites and web apps. Is this true? ...

Generate MTH from HTM file

I have a htm page in my disk (C:\pages\page1.htm). This page link CSS and gif (C:\pages\img\img1.gif, c:\pages\css\css1.css). How can I generate MHT file ?? Only using C# .NET managed. ...

How do I line up my textboxes without using a table? html/css

I want to display Name [Textbox] Age: [Textbox] BlahBlahCatfish: [Textbox] but if I simply plonk the code in, it gets lined up exactly as its lined up above. What I want is for it to be lined up like this: Name: [Textbox] Age: [Textbox] BlahBlahCatfish: [Textbox] Ordinarly I would use a Table but I am tryin...

[HTML/PHP]: Abort refresh of page.

In a Form, I am calling a PHP file if the validation passes. My Form header looks like this: <form method="POST" action="inst.php" style="margin:0px;"name="form1" onSubmit="return CheckUsername(document.getElementById('username').value);"> </form> The problem is that even if the validation fails, it shows a blank page in an attempt t...

How to store parts of form-data when they're on separate pages?

Whenever I'm to prepare a long form for the client I always want to split it into separate pages, so the visitor doesn't have to fill it all, but does it in steps. Something like: Step 1 > Step 2 > Step 3 > Thank You! I've never done it for one reason: I don't know how to store the data from separate steps efficiently? By efficien...

Jquery script issue IE7 add/remove class

I'm having some IE7 (and presumably IE6) issues with the script. <script type="text/javascript"> $(document).ready(function(){ $(".testimonial:first").show(); $("li.testID:first").addClass("selectedName"); $("li.testID").click(function(){ $("li.testID").removeClass("selectedName"); $(this).addClass("selectedName")...