async javascript - onclick event gets data from server

Discussion in 'ASP .Net' started by Steve Richter, Aug 1, 2007.

  1. what topics, documentation am I looking for to do the following:
    - when a button or anchor tag is clicked, I want to call back to the
    web server to retrieve the complete url with which to open a new
    browser window.

    function WindowOpen( url )
    {
    window.open(
    url, 'steve',

    'location=no,titlebar=no,height=400,width=400,scrollbars=yes,resizable=yes') ;
    }

    function Button_OnClick( key )
    {
    url = GetFullUrlFromServer( key ) ; // how to async connect to
    server ??
    WindowOpen( url ) ;
    }

    <INPUT type="button" value="Button"
    onclick="Button_OnClick( 'abc123');">

    thanks,
    Steve Richter, Aug 1, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    860
  2. Stefan Mueller
    Replies:
    5
    Views:
    506
    Steven Saunderson
    Jul 10, 2006
  3. Replies:
    5
    Views:
    481
  4. Steven
    Replies:
    0
    Views:
    347
    Steven
    Nov 30, 2005
  5. libsfan01
    Replies:
    5
    Views:
    229
    Jeff North
    Dec 20, 2006
Loading...

Share This Page