Hi there, i need help to :
How to pass variable ASP to JavaScript ?

Example:

myvar = "textvarable"

i would like to get it from a form without refreshing the browser, if is possible with AJAX

Thanks!!!

well, if you want to get from the post, I guess you can do this:

   <script>
    alert("<%=request.form("x")%>");
    </script>

    <form ....>
   <input type="text" value="bbbb" name="x" id="x" />
    </form>

but it depends of what you want to do...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.