I am trying to find a universal way to expand most if not all of the shortened URLs out there. I know short URLs such as bit.ly, TinyURL, goo.gl, etc use the 302 redirection method to redirect you to another site. How can I make a HEAD request to the shortened URL in php and get the "Location" part of the header?
Please help me with thi...
<div style="background-color:black">
<div style="float:right">
Test message
</div>
<div>
This will show 'Test message' with white background because the parent div didn't fit the content.
How can make the div fit to the content? (without using table, or display:table since it's not supported in IE)
...
I've noticed that on some websites (including SO) the link to the CSS will look like:
<link rel="stylesheet" href="http://sstatic.net/so/all.css?v=6638">
I would say its safe to assume that ?v=6638 tells the browser to load version 6638 of the css file. But can I do this on my websites and can I include different versions of my CS...
I have a new client with an old website using massive amounts of tables and inline styles. Some page weigh over 3MB due to huge backgrounds and other large images. I suggested they at least compress the files to speed up the site but they're convinced it's fast. Since they have 13Mbit connection at the office everything seems fast.
I'm...
So what I need is some Open-Source project for symbian which would consist of Customisable web browser and a folder to place my HTML+ images and SWF documents. So I don't have to dive deeply into Symbian Development and just put my files where I need, correct browser style menu and icons and compile into .sis
So is there any thing like ...
Hello all, First of all thanks in advance, this has been very frustrating and I'm hoping someone can see something I'm not, I am definitely no php expert. Well here' what is going on.
I have a form where I have a checkbox for people to opt in to our newletter. The form element looks like this:
<label for=newsletter accesskey=N class="c...
i need to autoheight an iframe with a cross domain src, i tried with javascript, but I get an "Access Denied" when I try to get the height of iframe contentWindow. anyone knows any method?
...
Hi all I am having some problems that I think can be attributed to xpath problems. I am using the html module from the lxml package to try and get at some data. I am providing the most simplified situation below, but keep in mind the html I am working with is much uglier.
<table>
<tr>
<td>
<table>
<tr><td></t...
Hi,
To upload a single file, it is very simple to use this HTML script:
<p> <input type="file" name="input.txt" />
In this question, my task is to select a folder and then get the input.txt inside that folder. The server will response whether input.txt is available or not and to upload it to web server.
Is there any way to select...
I want to write JavaScript code that would, when I close the current HTML page, display an alert message like "Are you sure?"
I want to take the value of the button from the alert message, whatever the user pressed. How can I do this?
...
Hi, I'm trying to create css buttons by using the following html markup:
<a href="access.php" class="css_button_red">Forgot password</a>
But it ends up being not bigger than the text in the middle. Even though I've set the class's height and width.
You can preview the problem here btw, www.matkalenderen.no
Notice the first button, t...
I am trying to create some dynamic html out of some data from db. My data returned from db is:
ApplicationName URL
------------------------------
AppName1 URL1
AppName2 URL1
AppName2 URL2
AppName1 URL2
I want that all URL's for a single application should be rendered under one...
I've this sample table and I want to make header row of table visible all the time. Header row should scroll with horizontal scrollbar and shouldn't scroll with vertical scrollbar.
table:
<div style="width:800px; height:150px;overflow:scroll;margin:50px auto;">
<table style="width:1600px" border="1">
<thead style="">
<tr>
...
Hi guys, I keep getting duplicate entries in my database because of impatient users clicking the submit button multiple times.
I googled and googled and found a few scripts, but none of them seem to be sufficient.
How can I prevent these duplicate entries from occurring using javascript or preferably jQuery?
Thanx in advance!
...
There is a page with drop-down menu "Products" overlapped by next content in IE.
It works fine under Gecko or Webkit browsers.
http://orbitscripts.com/easily-manage-advertising-across-all-of-your-websites.html
z-index property makes no sence.
I have no solutions yet.
Thanx in advance
...
I have the following CSS that hides the mouse cursor for anything on the web page. It works perfectly in FireFox but in IE and and Chrome it doesn't work.
html {
cursor: none;
}
In Chrome I always see the mouse pointer. In IE however I see whatever cursor was last 'active' when it entered the screen. Presumably it's...
Hi guys, I am having endless troubles with duplicate entries, so I need to check the database, and if a user has already entered that day, their entry will not be submitted and they will be redirected to a landing page that tells them they have already entered that day, and that they may only enter again tomorrow.
The field I would like...
I'm using JavaScript to load an image into my Canvas element in Firefox. This works fine for local images, but throws a security exception for external images. Is there any way to avoid this security exception, one that does not involve my server having to act as proxy to load the image locally (because that would stress my server)?
PS:...
<form><label for="attachment">Attachment:</label> <input type="file"
name="attachment" id="attachment"><input type="submit"></form>
i want to attach the file path to a form. i am doing it using the following code. but i want that the pop up window should open to a specified path. say D:\newfolder, so that user need not go to D: and ...
I have a site which I want to download using Unix wget.
If you look at the source code and content of the file it contain section called SUMMARY.
However after issuing a wget command like this:
wget -O downdloadedtext.txt http://www.ncbi.nlm.nih.gov/IEB/Research/Acembly/av.cgi?db=mouse&c=gene&a=fiche&l=2610008E11Rik
...