Hello,
I'm trying to perform a substring on a string variable. I want to extract a part of the string till a specific character is found within the string.(the pipe character '|' in this case)
Currently, I'm using the index function to supply the Length argument:
my $cd = substr($_, 0...
It was a text input box and the empty quotes worked. Thanks! For some reason, everytime I got back to this site, I had 0 responses. But when I clicked on the post, I saw that you all wrote in it. And I didn't use the back button to get back to the site but used the favorites. I had to reload my...
I am trying to get some statements executed in a case a form box is empty and I tried comparing the value (theform.thebox.value) to null, NaN, undefined but it doesn't seem to work. Anybody know how to do it?
if (theform.thebox.value == null)
alert("You got it!");
else...
You may have to open that new window from a function and call the function from the link.
<a href="javascript:openPopUp();">
For some reason you can't open a new window right from a link, not by using javascript. Maybe someone knows why.
I am trying to get some data from the opener window, like form values, without adding any code to the opener. I tried this:
alert(opener.form1[0].value);
and
alert(opener.document.form1[0].value);
and
var a = opener.document.form1[0].value;
alert(a);
None of this seems to work. It's...
I am trying to create a little browser based program to evaluate performance. I put asterisks inside divs and absolutely positioned them inside another div. That makes it look like a chart. What I would like to do is connect those asterisks with lines for it to be more clear. Can it be done...
Have you tried something like:
to ad var a and var b:
var c = parseInt(a,60) + parseInt(b,60);
Of course this will only round it up to the integer. If you always have the same number of characters after the decimal point you might try something like:
[code]
var d = 2; // number of points...
I've tried box1.backgroundColor and document.box1.bgColor and I've tried Netscape6 but they wouldn't work. I think it's like you said, that you can only change the background in the whole document because document.bgColor did work. But I could not do it in a div.
I can't get this to work in Netscape. What is wrong? Can you not change the background color in Netscape dynamically?
[code]
<div id="box1" style="background-color:#ccffcc;">
This is box 1
</div>
<script language="JavaScript">
function color() {
if...
I can't get this to work in Netscape. What is wrong?
[code]
<div id="box1" style="background-color:#ccffcc;">
This is box 1
</div>
<script language="JavaScript">
function color() {
if (document.all) {
box1.style.backgroundColor="blue"; }
else {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.