Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
311 views
in Technique[技术] by (71.8m points)

javascript - 在外部站点上搜索USER INPUT并返回true或false(Search external site for USER INPUT and return true or false [closed])

A client have been requesting a function on their WP site.

(客户一直在其WP网站上请求功能。)

They need a box where the user can input a word... Then a submit button, once clicked it will search an external site to see if this input is there or not.

(他们需要一个用户可以在其中输入单词的框...然后单击“提交”按钮,一旦单击它,它将搜索外部站点以查看是否存在此输入。)

Return true or false as a result on the WP site.

(结果在WP网站上返回true或false。)

Here is the twist: The site that needs to be searched is generated by a database call, so no hardcoded site to search, I was considering a solution using an iFrame to generate the site to be searched, then searching the iFrame and returning the true or false from the iFrame search...

(这是一个变数:需要搜索的站点是由数据库调用生成的,因此没有要搜索的硬编码站点,我正在考虑使用iFrame生成要搜索的站点,然后搜索iFrame并返回true的解决方案。或在iFrame搜索中为false ...)

Does it make any sense?

(有什么意义吗?)

  ask by Trier translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...