It looks like you have line of code split across 2 lines, which Javascript doesn't like. Put it all on one line or break the calculation into 2 separate operations.
Lee
Use an else instead of your second if statement in each function. As well in your removeRow function, you use
if ( showing = 0 )
which should be
if ( showing == 0 )
Lee
You can also just hit the Enter key while continuing to hold the right mouse button down. The alert window will disappear and the context menu will come up as usual. What makes this "trick" work is someone using the mouse for everything will click on the alert OK button which will cancel out...
Since both op1 and op2 are readonly, what's going to trigger the onchange event.
Also, because of the format of your time values, you're going to have a hard time adding or multiplying them without converting to total seconds first. The hh:mm:ss format doesn't convert to a Number object...
T3 = T2 means you have 2 different variable names that refer to the same object. When you change T3, then T2 is changed as well. If you're familiar with pointers in C/C++, both variables point to the same object.
Because you first document.write T2 before you change T3, it displays as you...
The following has an error in it that will terminate the Javascript function:
var thePicture=document.getElementById("header";
You need a closing parenthesis. If you actually have a closing parenthesis, then in the future you need to copy and paste your code so we see EXACTLY what you have...
You need BOTH script tags, the one to load the external JS file and the one to call the function, the way you're trying to do it now.
Or you can put the HideMail() function call in the external JS file and then just load it (your first example) where you want it to display.
Lee
If you use the src attribute, you can't put a function call inside the JS tags. Gotta be something like the following in the body:
<script type="text/javascript">
HideEmail();
</script>
Lee
Where are you declaring res1? One way is to put it in a file that's included in both Form1 and Form2. You wouldn't use Form1->res1 then, just res1.
If you want to use Form1->res1, make sure res1 is a public variable and not private.
The same goes for res4.
Lee
I have used a simpler preload function for years:
var preimages = new Array();
function imgpreload(imgarray)
{
for (var ii = 0; ii < imgarray.length; ii++)
{
preimages[ii] = new Image();
preimages[ii].src = imgarray[ii];
}
}
imgpreload(picSrc);
Lee
Show your code. Copy and paste it in here, don't type it over.
If the page is online, you can also give us a URL for us to test to see what the problem is.
Lee
Phil, you gave me an idea how to do this and still make it secure from MOST people. If you put the link in a cookie along with the expiration time, then you could read the cookie to get the link and put it in a variable, then write that to the page dynamically with either document.write when...
Using server-side scripting (PHP, ASP, ASP.NET, Cold Fusion, JSP, etc.) to indicate the initial time on the page for Javascript to work with, you can make a link that will expire whenever you want. However, anyone with Javascript turned off wouldn't be limited to your time out period.
Lee
Something like this:
function fill_contact()
{
with (document.getElementById('frmContact'))
{
if (chbsame.checked == true)
{
vnds_scntct_fnm.value = vnds_cntct_fnm.value;
vnds_scntct_lnm.value = vnds_cntct_lnm.value...
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.