doukeng7426 2010-12-24 08:01
浏览 11
已采纳

来自外部服务器的javascript“script”

I read somewhere that a .js script "served" from an external server actually formed part of the page it is used on. Not really being a .js person can someone clarify something for me - please.

I have an application that uses JQuery & php. The Jquery is included via a simple <script> tag and points to the googleapps api Jquery link. The user (member) of the app then loads a page from my server into an empty div on their page via the JQuery ajax call .load() The loaded page is a php script. In some ways you could call it a widget. One aspect of the php script is an e-mail function i.e. the php mail() Am I right is assuming that because the php script is loaded via JQuery/.js the mail() will be processed via their server/mail server i.e. however their "hosts" do it rather than from mine.

Reason I ask concerns scripted e-mail response limits imposed by most hosts in relation to fighting SPAM. Note: the mail() script is not spam in anyway, but a way for the "member" site to gather some information and give feedback.

  • 写回答

1条回答 默认 最新

  • dsqbkh3630 2011-01-14 20:43
    关注

    As alluded to in comments, generally speaking,

    • JavaScript is executed by the client (generally a web browser)
      • Regardless of where the source is hosted
    • PHP is executed on the server (generally an apache web server)
      • Regardless of where the client request comes from
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)