Calling client function from server script

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Calling client function from server script

    a.. How to write server script to call a client side function written in
    JavaScript?
    a.. When using Validation controls, it uses a file named
    WebUIValidation.js. This file is sent to the client machine to do the
    validation? Where can I find it in the client machine?
    thanks a lot.


    J. Marcelo Barbieri Guest

  2. Similar Questions and Discussions

    1. How to identify client in the server-side script?
      Imagine application consisting from server-side script and many client-side flash applications. Clients are connecting to server and calling various...
    2. Client Side Script interferes with Server Side Script?
      I added the form validation script (Java Script) to the head section of my insert records form page which works great when tested but when I submit...
    3. Flash Webcam client <-> client (not client <-> server<-> client)
      Dear Flash Team, supporter and regular mortals (Like myself) I am currently running a IRC chat with mostly webclients connected. We currently offer...
    4. ITC - urgent!!!I'd like to transmit binary data from SQL server to client and load it into variable. I used for this Microsoft Internet Transfer Control and my script looks like this:
      I'd like to transmit binary data from SQL server to client and load it into variable. I used for this Microsoft Internet Transfer Control and my...
    5. Calling a javascript function from server script URGENT HELP
      Ok I am about to pull my hair. I have an active x control in an object tag which, as you know cant have runat=server. So what I need is to not...
  3. #2

    Default Re: Calling client function from server script

    Hi,

    1) You can’t directly call client side script from the server side code.
    Although the current request process and create new response for certain
    page the server side code got nothing to do with the client. The server
    side code receives all the data that he need in the request headers. He
    can’t access the client.
    However you can simulate this by embedding client side
    script(RegisterClientsideScript, RegisterStartupScript,...) that will
    run on the client side.

    2) The WebUIValidation.js isnt send to the client as file. just the
    WebUIValidation.js. source is download to the client and embedded to the
    HTNL source.

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139