html

what is other option for HTTP_REFERER in php?

Hi all, I want to know is there any option/work sround for $_SERVER['HTTP_REFERER']. Because 'HTTP_REFERER' can not be trusted. Then What is other way to know that from which url the request has came from?. Here is the situation - http:// abc.com/one.htmlwill have an iframe having src=http:// xyz.com/giv.php?param=1. How giv.php on xy...

Firefox Border Radius Not Showing

I am using the following css #helper{ position:absolute; bottom:0; width:100%; } #key{ width:950px; margin:0 auto; z-index:2; -moz-border-radius-topleft:8px; -moz-border-radius-topright:8px; } <-- inside body --> <div id="helper"> <div id="key">SHould be rounded top corners?</div> </div> Yet in Firefox it is not showing after refre...

Multiple stylesheets for a Lightbox clone.

Hey! I have a Lightbox clone (colorbox), which works fine and has no real issues. What I would like is an extra arguement that would say: [pseudocode] if (linksRel == "lightbox1") { add stylesheet1 to this lightbox } else { add stylesheet2 to this lightbox } [/pseudocode] Currently, I have a page with a "colorbox.css" file atta...

Production ready alternative to Microsoft Doloto (Javascript minifier/prefetcher)?

As you surely know Microsoft Doloto is tool which profiles you javascript code as it actually runs on the page and splits it in to two files: one file will be statically included in the footer of the page which contains stubs for all functions and loads the actual implementations (in file 2) in the background (under the assumption that o...

deep linking in Excel sheets exported to html

hello everybody, I am working on a project where I must export to html a lot of Excel files. This is pretty straightforward using automation and saving as html. The problem is that many of these sheets have links to worksheets of some other files. I must find a way to write a link to a single inner worksheet. When you export a multi...

dynamic button in jsp

hi everyone, in my jsp i have a table constructed dynamically like the following: ' retour.append(""); try { s= HibernateUtil.currentSession(); tx=s.beginTransaction(); Query query = s.createQuery(HQL_QUERY); for(Iterator it=query.iterate();it.hasNext();) { ...

Customized combobox text in HTML / JavaScript

Hi, I wonder if it is possible to create combo box as in the picture below. The aim is that the actual text of the combo (select in HTML) would be different that items' texts that are displayed while the combo is opened. The application is written using Google Web Toolkit so any solution in gwt or HTML/JavaScript would be great. Tha...

Html code clearner

Is there any library or method to input a String with html code, and which has a return value another String without this html code, just the information??? I am watching libraries such JTidy, or HtmlParser, but I don't know how to use it! Something easier??? ...

How to prevent auto correction / suggestion of text in textarea?

We provide a page where a student can provide his answer to a certain question. This information is obtained via an input text area box and we would prefer that the browser doesn't auto correct and indicate grammatical errors on the student responses (e.g. obey is correct but obay is wrong). The browser shows a red underline if there are...

How to make HTML Helpers that supports generic type?

public static class EmptyOrNullHelper public static string EmptyOrNull(this HtmlHelper helper, IQueryable(T) type) { //Code } } ...

How to make up a search box?

How to make up a form that is going to be a search box and work only via Ajax? That is: 1) What to put as the form's action value? (action="what") 2) How to submit it so that nothing else happenes except for calling the JavaScript function? ...

use "px" and "%" both for one element.

is this right to use "px" and "%" both for one element like .box{ padding:10px 2% 0 3%; } is this right to use in css. ...

HTML, CSS: how can I merge these divs in order to use float:left property on their children ?

hi, I've 2 sets of thumbnails and in each set I'm displaying them one nearby each other in 4 columns using float:left. I would like to "merge" the 2 sets (but I cannot change the html code) because I want the thumbnails of the second set floating right after the last thumbnail of the first set. In other terms, if in the last row there...

How can I stop the browser from url-encoding form values on GET

I have a form with method="get". In the form I need to pass the URL of a CSS file but it is encoding it to http%3A%2F%2Fwww... etc. Is there a way to stop the encoding of the URL as it is breaking the file. Thanks ...

What Kind of Knowledge is Necessary For a Permon Who Does Not Have IT Background?

One of my colleagues joined our company, which by the way is a internet company, months ago as an on-line marketing specialist. He majored English in his college and has never deeply touched IT before. He says that to be a good on-line marketing specialist he needs to lean some basic IT skills in order to deliver superb work. According ...

User interface for addition/deletion of items to a list?

I have a ban list that I'm building as part of an application that displays articles. This ban list will contain keywords, which if found in an article, would lead to the article being disabled(the article will not be displayed on the front-end) I'm having a tough time visualizing the UI. I could always display a textarea and ask the us...

<span></span> gets ignored on IE8, not on mozilla

I have something like this: <ul> <li> <div> <div style="display:inline"> <a><span class="ui-icon ui-icon-circle-plus floatleft "></span></a> </div> <input type="checkbox"> <label>good</label> </div> </li> </ul> the bullet goes above the span on IE8, I would like to make it stay bef...

How to make href will work on button in IE8

I want href will work on type="button"in IE8. <a href="submit.php"><input type="button" value="Submit" class="button" /></a> Other browser working fine but on IE8 the code above not working. How to fix it? Update <form action="submit.php" method="post""> <input type="submit" value="Submit" class="button" /> </form> I know this wa...

Using same name for id and classname of an element?

Hi, I have some s in my webpage, is there anything wrong with sometimes using the same name as the classname and id? Something like: <div id='foo' class='foo'>hello</div> just wondering - Thanks ...

How do I remove separation between rows in a HTML table?

I have a html table with 3 rows and 1 column. In the top and button row I have images and in the middle row I have div. Between my rows I see a separation (I see background of my page). I tried to set all padding and margins to zero (for tables, div and images) and I still have this separation. Can anybody, please, help me to solve this...