ASP development of the abstract plugin submitting form
Source: Internet
Author: User
Submit a Form | Abstract example: specific features see "I Love Blog (http://www.woiblog.com)" in the relevant use of the introduction!
1, to achieve the function is in the browser plus a right key shortcut to submit the selected page or picture Content! Example application in the blog program, is that you have logged in the case, browsing the web to see the better news or pictures! You can select the content--"add my Net", then will pop up an IE window, automatically add the page title to the title of the form of the corresponding content, and select the content to add the relevant items, as well as the reference URL!
2, now let's take a look at how this function is implemented!
First we write with a text editor:
Windows Registry Editor Version 5.00
Form1.submit ();
</script>
Believe a lot of people understand, above is a common form, the following is a script, the key is still below
Odoc.title Page Title
Odoc.url Web Address
Getzy = ODoc.selection.createRange (). text; ' Get the selected content in a textual way
Form1.js1.value = getzy.substr (0, 250) + "..."; ' Get the first 250 characters, the ... End, as an introduction
Form1.content1.innerText = OWin.document.selection.createRange (). HTMLText; HTML method to get the selected content
Form1.submit (); Automatically submit form to action in form: user_post_blog2.asp
Here has done the acquisition of information! Then is the ordinary ASP form processing!
Like the value of the title, use Value=<%=request ("title")%>
The rest of the same son move is!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service