如何将HTML文本框值从一个域复制到另一个域的文本框?(How can I copy HTML textbox values from one domain to another domain

编程入门 行业动态 更新时间:2024-10-14 20:27:18
如何将HTML文本框值从一个域复制到另一个域的文本框?(How can I copy HTML textbox values from one domain to another domain's textboxes?)

我正在努力帮助节省工作时间,以便进行大量繁琐的复制/粘贴任务。

因此,我们有一个支持性CRM(具有适当的HTML ID等,用于访问元素),我想将这些值从CRM复制到其他网页上的文本框(在CRM之外,因此Twitter,Facebook,Google等网站)等)

我知道浏览器限制了它的安全性,我对任何东西都开放,它可以是C#/ C ++应用程序,Adobe AIR等。我们只在工作中使用Firefox,所以即使扩展也可以。 (我们确实安装了GreaseMonkey,如果它也可用,那么很好)。

那么,关于如何将值从一个网页复制到另一个网页的任何想法? 理想情况下,我想点击一个按钮,让它自动填充字段。 如果该按钮必须启动需要复制的网页,那很好。

示例:从我们的CRM复制客户用户名,在创建新帐户时将其粘贴到Facebook的用户名字段中。

更新:要回答下面的用户,每个域上的HTML元素都有特定的HTML ID。 这些数据不需要操作或清理,只需从我们的CRM网站到facebook.com / twitter.com即可

I'm trying to help save time at work with for a lot of tedious copy/paste tasks we have.

So, we have a propitiatory CRM (with proper HTML ID's, etc for accessing elements) and I'd like to copy those vales from the CRM to textboxes on other web pages (outside of the CRM, so sites like Twitter, Facebook, Google, etc)

I'm aware browsers limit this for security and I'm open to anything, it can be a C#/C++ application, Adobe AIR, etc. We only use Firefox at work so even an extension would work. (We do have GreaseMonkey installed so if that's usable too, sweet).

So, any ideas on how to copy values from one web page to another? Ideally, I'm looking to click a button and have it auto-populate fields. If that button has to launch the web pages that need to be copied over to, that's fine.

Example: Copy customers Username from our CRM, paste it in Facebook's Username field when creating a new account.

UPDATE: To answer a user below, the HTML elements on each domain have specific HTML ID's. The data won't need to be manipulated or cleaned up, just a simple copy from ourCRM.com to facebook.com / twitter.com

最满意答案

Ruby Mechanize是抓取数据的好选择。 然后你可以存储它并随意发布。

SO we thought of an easier way to do this (in case anyone else runs into this issue).

1) From our CRM, we added a "Sign up for Facebook" button

2) The button opens a new window with GET variables in the URL

3) Use a greasemonkey script to read those GET variables and fill in textbox values

4) SUCCESS!

Simple, took about 10 minutes to get working. Thanks for you suggestions.

更多推荐

CRM,HTML,复制,copy,电脑培训,计算机培训,IT培训"/> <meta name="description&

本文发布于:2023-07-18 04:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154836.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本框   如何将   HTML   copy   textboxes

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!