简体   繁体   中英

sending data to server with javascript

how can i send a string value to a sever with java script without submit method? i know i can use jquery or ajax but is there any other way to do that without any library? i searched in Google and i find some good links: How to send data to remote server using Javascript http://bytes.com/topic/html-css/answers/154271-post-data-server-javascript-client-side

but all of them said we should use jquery or ajax

Yes, that what you have to do if you don't want to refresh the page. Although, you could find other framework rather than jQuery. That framework still use ajax technology inside.

AJAX isn't a library - it's built into Javascript, and is available on pretty much all browsers from even IE6 onwards.

You can find full tutorials and instruction here: http://www.w3schools.com/ajax/default.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM