Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP/JAVA Settings

Status
Not open for further replies.

JackD4ME

Programmer
Jun 4, 2002
228
US
I have a site that uses asp and js combined. My problem I think is simple but I cannot find it. I have a matrix of numbers that are links. These links prompt for input through a js popup box, click ok and it calls a asp maintenance page then redirects to the original page with the matrix updated (no pun intended here).

The problem is all computers (even non-dev machines) will do this successfully except for my machine from home. Therefore the coding is correct. When I try this from home it does not make the updates. This leads me to believe that there is some setting on my machine that is causing this.

I have even tried to debug it by viewing the param's that are being passed and they are correct. Has anyone had this issue or know where to begin?

Thanks,
Jack :D
 
When you run this application on your machine at home do you see a little triangular icon to the bottom left near the task bar??

if you see it...just double click and see what the problem is...

is your machine java enabled??

-DNG
 
The ASP code is server side and independent of your computer settings.
Does your JS popup window open up for you?
If not then it is likely javascript is disabled on your browser. If it does work then your problem is somewhere else.

What does your ASP page actually do? Connect to a database or something? Does it do any lookup of the logon ID? If so it is possible that a computer originating outside of the domain is not validating correctly and the ASP code does not complete.

Does your ASP page get called onto the browser window or is it accessed in the background? You could always comment out the code that redirects to your form page and do some response.write's to see if the data is processing properly.
 
DNG-No there is not a little triangle. I have been trying to find where to check if my machine is java enabled (I believe it is I do a lot) but could not find where that is.

theniteowl-I thought it might be the domain so I have tried it on other w/s w/o trouble. Yes the popup window always comes up. Here is the code for the maintenance page:

sTr="Update Gradebook Set [Points Earned]=" & Request("val") & _
" Where [Student ID]='" & Request("sid") & "' and [Class ID]='" & Request("cid") & "' and [Assignment ID]='" & Request("aid") & "'"
tConn.Execute(sTr)
Response.Redirect "nav.asp?id=gradebook&cid=" & Request("cid")

Here is the main page coding for the js:

function newval(sid,aid){
var msg = prompt("Enter new value: ");
//var msg2=chkNum(msg);
//if (msg2=="'" + msg + "'"){
location.href="maint.asp?id=gradebook&btn=editi&cid=<%=Request("cid")%>&aid=" + aid + "&sid=" + sid + "&val=" + msg;
//else{
// alert(msg2);}
//return false;
}

I appreciate the help guys. I do believe it is a setting somewhere because it seems to work everywhere else.
 
ok as far now everything looks good...

1. There is with the code..becoz it runs in your development and non-development environment
2. No problem with your machine

BUT

my guess is it has to do with the permissions...may be your home computer has no permissions to make any entries/edit or changes.

The next step would be to look for permission privileges for this application that you are trying to run.

-DNG
 
oops...

in 1. i meant to say "there is no problem with the code..."

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top