I just moved from an Ubuntu PHP workstation dev environment back to Windows and am using xampp. I have a bit of code, like so:
<input type="text" name="txtEmail" value="<?=$emailaddress;?>"/>
that I swear worked to display the variable in the textbox when I was developing before. But when I loaded the page on Windows/xampp it just p...
if i use history.back() for button press then what will happen?
html content will be displayed from local history of browser or cache and browser dont request
to server?
or
browser request to server based on url resides in history of browser??
...
Anyone know how to get a random set of lines from a text file?
I want to get a set of 3 lines with
<br>
on the front of each and display them through html.
example:
set 1
<br>Hi
<br>what's your name
<br>goodbye
set 2
<br>stack
<br>overflow
<br>hi there
set 3,4,5....
Choose one random set and display it.
The sets of lines would be...
I do a lot of design work with XHTML, CSS, and PHP. A friend mentioned Sass to me and it looks pretty cool. I don't know anything about Ruby or Rails and I am running a windows machine.
Does anyone know a good tutorial for a beginner to dig in to something like this?
...
I have no problem executing a cgi file under the normal url like this:
http://www.myhost.com/mydir/cgi-bin/test.cgi
However when I tried to embedd it into HTML file (called index.html) like this:
<HTML>
<BODY>
<P>Here's the output from my program:
<FORM ACTION="/var/www/mydir/cgi-bin/test.cgi" METHOD=POST>
<!-- This does...
Okay - this is the dumbest glitch I have seen in a while:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type='text/javascript'>
var data = "</script>";
</script>
</head>
<body>
This...
Hi,
I have the following HTML and you can see the extra space between the links when the
page renders.
How do trim this space?
EDIT: This seems to be an IE problem.
<div class="navLinks" style="text-align:right;margin-bottom:30px;">
<form action="/Invoice/SetPaid" method="post"><input id="id" name="id" type="hidden" value="11356"...
I've written a jQuery script to replace <select /> elements with some DIV's and UL's allowing my to simulate the original SELECT but also allow me to style it. So far, aside from a few minor bugs, it works rather nicely.
However, in Internet Explorer, the 'options' div is getting rendered underneath the elements below the div.
Here's t...
I have graphs, reports or just plain text I want to place in a web page. Instead of sitting on the dull white background, I want them to have some containers around them. I can do plain color backgrounds but I was wondering if there are templates for containers with things like rounded corners, shaded containers, flexible gradients, dro...
I have trouble figuring out how do I load the rest of the data in html. Here is my code:
<?php
$con = mysql_connect("localhost","root","nitoryolai123$%^");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("school", $con);
$result = mysql_query("SELECT * FROM student WHERE IDNO='$_GET['id']'");
...
I have a simple div element that contains another div element which contains 2 inline tags. I've associated an onmouseout event to the first div container and an onmouseover event to the second container.
The problem is that the onmouseout event is fired when the user hovers their mouse between the two tags in the div and also after ...
Hi,
The HTML content below the flash content not displaying in IE8 browser. Here is the code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="100%" height="100%">
<param name="movie" value="main.swf" />
<param name="qua...
I didn't find anything about parsing HTML in the XML::LibXML::Reader documentation. And I tried to parse a HTML-site and it didn't work.
Is my conclusion, that XML::LibXML::Reader doesn't work with HTML right?
...
I want to have a cgi-script that does two things.
Take the input from a form.
Generate results base on the input values on a frame.
I also want the frame to exist only after the result is generated/printed.
Below is the simplified code of what I want to do. But somehow it doesn't work.
What's the right way to do it?
#!/usr/loca...
In sharepoint, when you post a long annoucement the webpart trims it to the first two lines but preserves any links in the html.
I'm trying to create a custom webpart that trims long text and want to reuse this functionality. Does anyone know where in the sharepoint libraries it lies?
...
We have a html page being rendered in the browser (IE) that causes the browser to hang. The page is generated through server side script (ASP.NET and viewstate is disabled). The page while loading takes a long time (its not a b\w issue since we can reproduce it on local machine) and sometimes results in script unresponsive error. On deb...
I don't get it, I see no mistakes in this code but there is this error, please help:
mysql_fetch_array() expects parameter 1 to be resource problem
<?php
$con = mysql_connect("localhost","root","nitoryolai123$%^");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("school", $con...
Hi, I need to make this show an error if the user tries to leave the page without checking this tickbox. It has no other use other than visual, is there a way to implement such a thing?
<span>
<input value="1" type="checkbox" name="salgsvilkar" ID="checkbox2" style="float:left;"
onclick="document.getElementById('scrol...
Hi all,
I'm writing an AJAX function that returns some information to display in a <div>. My code looks like this:
HTML:
<div id="basket_summary">Your basket's empty. Why not add some items to get started?</div>
jQuery (relevant part of ajax call):
success: function(products){
$('#basket').html(products.basket);
$('#basket_s...
Hi, I've scavenged on every single topic on this forum to try and find an answer before I posted this. Most people say you should simply use SWFUpload, some others mention Activex, and it keeps going.
I know this is do-able, as Google does it with gMail when you try to upload a file that's bigger than 25mb, or executable.
My question i...