sillyboy 43 Practically a Master Poster

move you window redirecting code to a javascript function. Make your onclick call a function to validate the checkbox (again, in javascript), and then if the checkbox is checked you can then redirect.

Actually looking at your code, you seem to be mixing 2 approaches. You do not actually need the onclick if you set the input type to "submit" and the form action to "nflStats.html". Using this will trigger your confirmSubmit function too.

So there are 2 approaches you can take, I suggest you take the latter one I have mentioned.

sillyboy 43 Practically a Master Poster

I'm assuming it would be via the onclick event

Have you tried:

window.location = "???.html";
sillyboy 43 Practically a Master Poster

If you are using visual studio, the MSDN site has a complete reference to functions you will need. I suggest you get to know the MSDN site (it can be a bit tough to begin with).

sillyboy 43 Practically a Master Poster

<%! %> tags are used for declarations. I recommend you don't use this for anything other than declaring your variables, and this is probably the cause of your issues.

Just use normal scriptlets <% %> for your actual statements.

Good luck

sillyboy 43 Practically a Master Poster

I am not entirely sure what you mean by the drag / drop of the image. Is this while you are designing the page or do you actually have a feature on the website to allow drag / dropping?

sillyboy 43 Practically a Master Poster

Ok, so it is a good idea to try some javascript tutorials to get the hang of it first. Javascript can be a pain to debug from my experiences. A few things that you may find helpful to help with your tasks:
- onclick() *event
- visibility or display *attribute
- disabled *attribute

If you need more help post some code, and somebody can have a further look.

sillyboy 43 Practically a Master Poster
cout << table[row][column];

Are you sure this is what you want to be doing?
In regard to implementing the random integers, you can just assign them as you print that particular cell. So add something before the above code.

On a minor note, why are you creating an array of doubles?

sillyboy 43 Practically a Master Poster

Do a google search on "AJAX" I am not entirely sure what you want, but I assume it is something like the Mac OS fish eye. I have seen something similar done in AJAX before.

sillyboy 43 Practically a Master Poster

Sounds like permission on the actual FTP site. If they aren't allowing you to upload html, I don't really know what you can do.

sillyboy 43 Practically a Master Poster

Assuming you have the algorithm to reverse engineer the code, sure.

sillyboy 43 Practically a Master Poster

the easiest solution is to just use scriptlets on the page the form is forwarded to. If you want to use jsp correctly, you should not use scriptlets but instead move this code to java classes.

sillyboy 43 Practically a Master Poster

Oh sorry, it is a javascript library is it? Then I guess this is the correct spot and ignore my previous post. My bad...

sillyboy 43 Practically a Master Poster

you sure this is the correct forum?

sillyboy 43 Practically a Master Poster

You will only get help if we see some actual effort. Get coding.

sillyboy 43 Practically a Master Poster

Do something yourself, at least show are you having problems.

sillyboy 43 Practically a Master Poster

In css you can just change the "list-style-type" to what you want.

ul {
  list-style-type: disc;
}
sillyboy 43 Practically a Master Poster

Do just a couple of things that may cause you code not to work. I hope you are closing
addRowToTable()? And also, what is theName?

sillyboy 43 Practically a Master Poster

Why do you need ajax?

sillyboy 43 Practically a Master Poster

So if you want to show the value of the rolls individually, you will want something like:

System.out.println(rollcount);

I'll let you figure out where to put it, but it shouldn't be too hard.

sillyboy 43 Practically a Master Poster

why would you do this? If it doesn't work just copy it to the local drive.

sillyboy 43 Practically a Master Poster

Save Page As...

Then you will have a copy of the javascript. Is this what you mean?

sillyboy 43 Practically a Master Poster

I appologise about the ^2, you are correct here. I assume those "2"s are supposed to be in superscript :). Anyway I felt nice so:

#include <iostream>
#include <iomanip>
#include <cmath>
 
using namespace std;
 
int main() {
    long int terms, count;     
    long double pi = 0;
    
    cout << "Enter the number of terms to use:   " << endl;
    cin >> terms;
    
    for (count=1; count<=terms; count++) {
        pi += (1.0 / (count * count));
    }
    pi = pi * 6;
    pi = sqrt(pi);

    cout << "The approximate value of pi is:   " << pi << endl;

    return 0;
} // end main

You will probably want to put you system pause back in, but that should do what you want.

sillyboy 43 Practically a Master Poster
pi = sqrt(6* (1/(1)2 + 1/(2)2 + 1/(3)2+ 1/(4)2 + 1/(5)2 +...... + 1/(n)2))

Ok, so looking at this equation you have the series of summing 1/(n)2 . This is not equivalent to the sum of 1/(n^2).

I did notice you are using sqrt in your code, but 2 points. 1, surely sqrt means square root and not multiplication (the sqrt is also undefined in your code). 2, the sqrt is located outside of the parenthesis indicating it should be the last operation (you currently have *6 as the final operation).

Hope this helps.

sillyboy 43 Practically a Master Poster

The problem lies where you are using the divisions for the second anchors in your list. The only purpose of these divisions I see is for font sizing, so I think you should move this sizing to css and remove the divs.

sillyboy 43 Practically a Master Poster

What do you actually mean here? :

var txt = locationId;

Because it is going to be undefined in your code. It should probably be given a string value or you need to set locationId before you use it.

sillyboy 43 Practically a Master Poster
for (count =1; count <= terms; count++);

This pretty makes your loop useless, you don't want that semi-colon.

You also need to check the logic behind the steps you take to calculate pi. E.g. I don't see any square root function used.

sillyboy 43 Practically a Master Poster

Show some effort first.

sillyboy 43 Practically a Master Poster

Is this just an issue with IE? If so try adding the following line.

newElem.setAttribute("className", "draggable")

Hope this helps.

sillyboy 43 Practically a Master Poster

This problem is most likely related more with your HTML & CSS than the actual JSP code.

sillyboy 43 Practically a Master Poster

You will need to add jars for activation and mail. Try mail.jar & activation.jar

sillyboy 43 Practically a Master Poster

Not entirely sure, just start working. It was probably a typo or something similar.

sillyboy 43 Practically a Master Poster

Solved

sillyboy 43 Practically a Master Poster

Hi, I'm trying to use a double click action on a input field. It works fine on firefox, but doesn't work on ie7 saying the object doesn't support the action. My action so far is just an alert box (for testing purposes), is this a known compatibility issue?

sillyboy 43 Practically a Master Poster

Care to shed some light on how I can obtain this information from the database?

sillyboy 43 Practically a Master Poster

When you create tables, tubles, views whatever it may be, does Oracle keep track of the date/time this happens?

sillyboy 43 Practically a Master Poster

Does anybody know if oracle saves "last modified" data? I want to use this in a archiving tool by only querying for data after/before certain dates.

sillyboy 43 Practically a Master Poster

I don't know what .jar the mysql driver is in. It shouldn't be that hard to find with a google. The .jar file goes into your web app directory under "WEB-INF\lib".

sillyboy 43 Practically a Master Poster
Unable to find a javac compiler;
Perhaps JAVA_HOME does not point to the JDK

Do you have JDK installed too? Make sure you let tomcat know where your java compiler is located.

sillyboy 43 Practically a Master Poster

Make sure you have "com.mysql.jdbc.Driver" in your web application. It will be contained in a .jar and it needs to go with your other java libraries you use.

sillyboy 43 Practically a Master Poster

Do you have java installed? If so check your path variables.

sillyboy 43 Practically a Master Poster

There is no need for 2 threads with the same question. If you are unsure as to how to do col4 + col5 that is a bit of a worry. Remember you are using JSP (i.e. java).

sillyboy 43 Practically a Master Poster

Well you can do arithmetic within the sql queries if you like, but seeing as though you already query for col1~3 just store them into int variables. I think your result set will save Strings, so use Integer.parseInt("...") this is off the top of my head so it may be mistyped. Sorry I don't have examples, but if you want them, I will do some up later.

sillyboy 43 Practically a Master Poster

Forks are very unnecessary for most things not concerned with networking. Your post above is quite redundant, since I would assume you would fork if you wanted to try run prog1 & prog1 concurrently (obviously this isn't entirely true, but will appear that way). If you are willing to wait for prog2 to finish before proceeding with prog1, why use a fork?

sillyboy 43 Practically a Master Poster

I bet it isn't reliable too.

sillyboy 43 Practically a Master Poster

I am not disputing that fact. ;)

sillyboy 43 Practically a Master Poster

They said encryption was not an issue. So just to answer the question, yes, you are going in the right direction. Just check on those braces if it is not working correctly.

sillyboy 43 Practically a Master Poster

cdName() is trying to call a function called "cdName". Elements of string are referenced using [...] (if that is what you want to do). Also, your setter method is pretty much useless, I think you mean cdName = diskName?

sillyboy 43 Practically a Master Poster

Yeah, well if you want experience, why not just start building something for yourself? That would probably interest you more than suggestions from others.

sillyboy 43 Practically a Master Poster

Ok, thanks. Well I will play with it again later on, and see how it goes. Thanks for the re-assurance though.

sillyboy 43 Practically a Master Poster

So I tried to google my problem, but for a change I didn't get any worthwhile answers. What I want to do is to have an external js file to define some functions (which will be used for form validation). Then I want to use the external functions inside each html to validate the particular forms (obviously forms on different pages will be different).

So what I had done:
Create blah.js
in blah.html:

<html>
<head>
<script language="javascript" src="blah.js"></script>
<script type="text/javascript">
  ...make function calls etc...
</script>
</head>
</html>

The above is not working for me. Is this even possible, and if so, do you know what is wrong? If you need actual code I have used, I shall post later.