Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
After a function call...
Message
From
18/07/2007 15:15:51
 
 
To
16/07/2007 21:22:31
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01240882
Message ID:
01241710
Views:
24
Thanks John.

Another question if you can.

I have a HTML header (th) code like this:
<th bgcolor="#b0c4de"><b><IMG SRC="up.gif" onClick =SORTLIST("1") style="cursor:hand"><IMG SRC="down.gif" style="cursor:hand"><br> Description </IMG></b></th>
It displays fine but when I click the "Up.gif" or the "Down.gif" I want to call a function called SORTLIST(), which is written with VBScript.
The ways I've tried to call it doesn't work. What is the correct way to call this function?

TIA


>>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.
>
>As far as I can see, it calls the newWin function based on the second parameter and then returns to the calling program/object.
>
>The newWin function is most likely another bit of code lower down in the script block.
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform