Notice the URL in the SRC attribute of the script tag.
注意,script标记的src属性的URL。
Avoiding the same-origin policy: JSON and the dynamic script tag.
避免同源策略:JSON和动态脚本标记。
Either XHR or dynamic script tag insertion can be used with this format.
XHR和动态脚本标签注入都可以使用这种格式。
The typical way to include a script is to use the SCRIPT tag in your HTML page.
在典型的方式包括一个脚本就在你的HTML页中使用SCRIPT标记。
The URL to the Web service is the string in the SRC attribute of the script tag.
指向Web服务的URL为脚本标记的sr c属性中的字符串。
This can be added at the top of the existing script tag on the photo gallery page
这些操作可以添加到相册页面上已有脚本的前面。
To call Twitter, you use a dynamic script tag, which is a technique often referred to as JSONP.
为了调用Twitter,要使用动态脚本标签,这是一项常称为JSONP的技术。
The first script tag initializes the Dojo toolkit by simply loading the dojo.js bootstrap file.
第一个脚本标记通过加载dojo.jsbootstrap 文件来初始化 Dojo工具箱。
When this code runs, a new script tag is appended as a child to the current page's head tag.
执行后将在当前页面的head标记中增加一个新的script 标记。
The script tag defines one or more scripts that can be invoked by elements within the document.
script标记定义一个或多个脚本,文档中的元素可以调用这些脚本。
On the other hand, Google provides a way to surface gadgets on any Web page using an HTML script tag.
另一方面,Google为在使用html脚本标记的Web页面上使用小部件提供支持。
The script tag brings in an external script page, which is defined by a form named s_StdPageReadCode.
脚本标签引入了一个外部脚本页,它通过名为s_stdpagereadcode的表单来定义。
JSONP operates by dynamically adding a new script tag into your page and then executing the contents.
JSONP运行在一个安全漏洞中。通过向您的网页动态添加新的脚本代码,然后执行内容。
Edit the Settings, and paste the Flex application script tag of your Flex application as shown in figure 3.
编辑设置,并粘贴Flex应用程序的Flex应用程序脚本标记,如图3所示。
Within this script tag, we also override response and displayJSONobj functions to display query result to users.
在这个脚本标签中,我们还要通过覆盖response和displayjsonobj函数来向用户显示查询结果。
Also, add the lines shown in Listing 5 to the so-far empty script tag with the your Dojo-based application code goes here code comment.
同样,将清单5所示的代码行添加到目前为止仍然空着的脚本标记,代码注释为your Dojo - basedapplicationcodegoeshere。
Its implementation consists of three functions: a constructor, a method that dynamically creates a script tag and thereby runs the Yahoo!
该对象包括三个函数:构造器、动态创建脚本标记从而运行Yahoo !
With this approach the browser application makes an asynchronous request for data from the server either using XMLHttpRequest or a script tag.
这一方式中浏览器应用会使用XMLHttpRequest或者脚本标记对服务器数据发起异步的请求。
When the user submits a search, an API call is made by dynamically adding a script tag to the page and specifying the name of a callback function.
用户提交搜索时,会动态添加一个脚本标记到页面并指定回调函数的名称,从而进行一次API调用。
It might be tempting to set some sort of timer before creating the dynamic script tag and just assume the JSON has arrived after, say, three seconds.
在创建动态标记之前设置某种定时器,然后假定JSON在某个时间,比如说3秒之后到达,这种方法初看起来似乎可行。
Now let's refactor the test to use a general purpose mocking framework. We do this by adding a single script tag to the test page and rewriting the test like this.
现在让我们重构测试,使用一种通用的mocking框架。
If the retrieved tag is for the first movie in the list, the script starts to play that movie right away.
如果检索的标签是列表中的第一部电影,脚本立即开始放映这部电影。
The form tag submits the values in the form back to the script when a user selects the submit button.
当用户选择提交按钮时表单标记会将表单中的值提交回脚本。
After you run the script in Listing 3 to create a new tag, your SVN repository should look similar to Figure 4.
运行清单3中的脚本并创建了一个新标记之后,您的SVN储存库应该如图4所示。
The best way to know when a tag is loaded is to have the script that the tag returns call a function instead of simply loading data.
获悉标记何时加载的最好的方法是让标记返回的脚本调用函数而不是简单地加载数据。
If you put them inside the tag, no part of the page body will actually render until after the script has loaded and executed, giving the user the impression that your page is loading slowly.
如果将它们放在标记内部,只有到脚本加载并执行后,页面主体才会呈现,从而让用户觉得页面加载很慢。
Script from the previous case study should filter the tag after it is through decoding the name parameter. This method has some severe downsides, though.
举例来说,来自之前的案例研究中的welcome. cgi脚本在解码name参数之后,应该过滤标签。
You will also see the Results tag in a more practical role in the second PHP script.
您还将会在第二段php脚本中看到更具有实际作用的Results标记。
This script gets called into an IFRAME tag by other pages so that it is shown inside those pages, making it easy to drop it into blogs or Web sites.
这个脚本还可以调用其他页面的IFRAME标记,以在这些页面中显示它,从而可以轻松地将其放入到博客或Web 站点中。
This script gets called into an IFRAME tag by other pages so that it is shown inside those pages, making it easy to drop it into blogs or Web sites.
这个脚本还可以调用其他页面的IFRAME标记,以在这些页面中显示它,从而可以轻松地将其放入到博客或Web 站点中。
应用推荐