Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
After a function call...
Message
From
16/07/2007 17:46:37
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
After a function call...
Miscellaneous
Thread ID:
01240882
Message ID:
01240882
Views:
86
Hello all.

I'm working with asp 3.0.

I have a piece of asp code at that I studying
At the top of my asp code, a function written with JAVA script as follows....
<Script Language="JavaScript">

function getID(oObject,oCommand) {
    var id = oObject
        var xPage = oCommand

        if ( xPage == 0 ) {
            newWin('Update.asp?ID=' + id + '&upd=1',500,150,0)
        }
        else if ( xPage == 1 ) {
            newWin('ViewExp.asp?ID=' + id,400,150,0)

        }
        else if ( xPage == 2) {
            newWin('Update.asp?ID=' + id + '&upd=1',500,150,0)
        }
        else if ( xPage == 4) {
            newWin('Comments.asp?ID=' + id ,800,500,0)
        }

        else {
            alert ('There was an internal error.\n\nPlease Try Again')
        }
}
After the function executes, does it execute the rest of the asp code below it, or does it come directly back to where the function was call?

I've tried to follow the code to see what it does after the call but I can't tell with this example they gave me.

TIA.
The American Republic will endure, until politicians realize they can bribe the people with their own money.
- Alexis de Tocqueville

No man’s life, liberty, or property is safe while the legislature is in session.
– Mark Twain (1866)
Next
Reply
Map
View

Click here to load this message in the networking platform