Is there a reason why certain pages are made as .php when you can put php into a .html file? Is it simply for the sake of organizing your files? Or does it affect how the page loads?
(I'm talking about the file extension)
...
Is there anyway to achieve this that works cross-browser? (Keeping solutions to pure JavaScript, HTML, and CSS) I'm using JQuery, so JS in that would be best.
(disabled="disabled" doesn't allow focus)
...
I am working on a small perl program that will open a site and search for the words Hail Reports and give me back the information. I am very new to perl so some of this might be simple to fix. First my code says I am using an unitialized value. Here is what I have
#!/usr/bin/perl -w
use LWP::Simple;
my $html = get("http://www.spc.noaa....
We've just brought up a new ASP.NET page that is showing a strange error.
The error shows up in the next page as if the data isn't in the form.
When the user goes back and refreshes the page and resubmits the form it works just fine.
A little background, this source is being served up from a virtual directory for 8 web servers with a loa...
I know the mouse can be located by position with the event.clientX and event.clientY features but is there any way to tell which character # of the document the curser is on?
...
I'd like to create a 3 column layout, with the middle being for all the content and menus and the other two being a solid background color.
I have something like this set up already, but the middle column doesn't extend to the bottom of the page. How can I get this middle column to extend to the bottom of the page?
...
Hello, I'm using Generic HTML Form Processor in combination with an xampp lite installation to save data into a MYSQL database. However, I've encountered a problem while writing a multi-page survey. If users use the previous and forward buttons coded like:
<INPUT TYPE="button" VALUE="Previous Page" onClick="history.go(-1);">
<input ty...
Hello
Pleas help me
I had a to radio
<input type="radio" name="sex" value="male" /> Male<br />
<input type="radio" name="sex" value="female" /> Female
<div class="content">
<div id="male">male contetn</div>
<div id="female">femalecontetn</div>
</div>
I want use ajax when i click radio value male
will show div id =male and ...
I'm new to .net, and I've noticed that when viewing my HTML source code generated by a .net application the carriage returns are removed from the head tag when it has runat="server" attribute on it.
I remove the runat="server" and the returns... return.
This really looks nasty when you have a few javascript and css files in your header...
I'm writing some XSLT to render the output of a Rich Text Box in an infopath form.
Occasionally I'll get something like this in the output:
"<span style="font-size: 11px" class="Apple-style-span" />"
And it breaks EVERYTHING. I can't use:
<xsl:if test="string(.) != '' or descendant-or-self::/@[string(.)]">
because technically it i...
Firebug claims that an unstyled textbox is border: 3px inset #F0F0F0;
However, <input type="textbox" style="border: 3px inset #F0F0F0;" /> and <input type="textbox" /> produce very different looking borders. What's going on here?
This is true in Safari, Chrome, and Firefox—I don't have IE though, so I dunno about that.
...
Hello,
I'm using BeautifulSoup to do some screen-scraping. My problem is this:
I need to extract specific things out of a paragraph. An example:
<p><b><a href="/name/abe">ABE</a></b> <font class="masc">m</font> <font class="info"><a href="/nmc/eng.php" class="usg">English</a>, <a href="/nmc/jew.php" class="usg">Hebrew</a>...
I'm trying to load a gif file within my .css file, like this:
li.box_entry {
background-image: url(data:image/gif;base64,R0lGODlhDAANANUAAPv7+/r6+vn5+ff39/b29vX19fPz8/Dw8O/v7+7u7u3t7ezs7Onp6ejo6Ofn5+bm5uTk5OPj4+Hh4eDg4N/f397e3tzc3Nvb29ra2tnZ2dbW1tXV1dPT09LS0tHR0c3NzcjIyMfHx8bGxsXFxby8vLe3t7W1tbOzs62traurq6mpqaioqKenp6ampqWlpaOjo6KioqG...
I have a DIV container that is a CSS class defined on the top level. That container also has a style that has a couple elements that should override the main class elements. As far as I understand, this is what it should be doing, but it seems to ignore everything I am putting in there.
/* In the CSS file. */
div.ItemContainer {
pos...
I'm trying to create a hidden textfield for an iphone specific site, basically I've taken a textfield, hidden all of its elements and show an image instead, when clicked this pops up an onscreen keyboard, as well as submitting when the form loses focus.
What I can't get rid of is the text caret. It flashes at me as if I'm some loser who...
Hey all,
I've been teaching myself python and cgi scripting, and I know that your basic script looks like
#!/usr/local/bin/python
import cgi
print "Content-type: text/html"
print
print "<HTML>"
print "<BODY>"
print "HELLO WORLD!"
print "</BODY>"
print "</HTML>"
My question is, if I have a big HTML file I want to display in python (...
Hello guys, I'm very new at CSS and i want to put a header on to my new web site.
A simple one, only an image who goes on the top background. I really don't know how to do it with out much coding.
So, this is what i have, and this is what i want. And at the end of this question is the code of the actual page. Any ideas? Thanks so munch...
I have an ASP.NET server control which produces html. I have no control on the html produced.
However I need to style some elements in the html using jQuery.
I need to style the div shown below which has no class or id.
The first child element which has an id is the Select element which has an id=mySelectID. How do I reference the div e...
I want to use the same string in my img "src" in my "onclick" as a parameter to a function. What's the easiest way to do this? It works fine if I type it out both times but it doesn't look nice.
Here is an example so you can see what I mean...
<img src="/images/image1.jpg" onclick="doStuff('/images/image1.jpg')"/>
I'm wondering if th...
I have been making websites for years now. Most of them tend to be under 10 pages and don't require any programming at all. I am wondering if anyone with lots of experience can recommend the standard or best way to go about setting up these types of websites. Let me explain in a bit more detail what I mean.
Here is a typical structure o...