Re: embedding html in a javascript function
- From: David Dorward <dorward@xxxxxxxxx>
- Date: Tue, 17 Jan 2006 21:25:11 +0000
Rick wrote:
> well...i want to put some .asp code into my javascript function. i
> have a function that, when the user presses a button, generates three
> text boxes, and i want to add some asp code to that function so that i
> can write the user inputted data over to my database. any suggestions?
Short answer is: You can't.
1. The browser makes an HTTP request
2. The server executes the ASP and generates an HTTP response
3. The browser recieves the HTTP response and parses the HTML, executing any
JavaScript it finds.
To send data from the browser back to the server to process that data with
ASP requires another HTTP request. This is typically done by directing the
browser to a new URL. Another option is the XMLHttpRequest object.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
.
- References:
- embedding html in a javascript function
- From: Rick
- Re: embedding html in a javascript function
- From: Evertjan.
- Re: embedding html in a javascript function
- From: Rick
- embedding html in a javascript function
- Prev by Date: Re: embedding html in a javascript function
- Next by Date: Re: time selector
- Previous by thread: Re: embedding html in a javascript function
- Next by thread: Re: embedding html in a javascript function
- Index(es):
Relevant Pages
|