Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updates to /quickstart/helloworld via Wiki

  • Loading branch information...
commit 6ab22caede700284b99cd686e4e014acc0130a35 1 parent 07ae99f
maastermedia authored Website Account committed

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 quickstart/helloworld.rst
4 quickstart/helloworld.rst
Source Rendered
@@ -166,7 +166,7 @@ Firstly, in the markup section of the HelloWorld-get.html file (i.e. the body se
166 166 error: helloError
167 167 });
168 168 });
169   - </script>
  169 + </script>
170 170 </button>
171 171
172 172 to:
@@ -190,7 +190,7 @@ to:
190 190
191 191 Before we go any further - it is important to mention that the url property in the xhr.get function call must be set to the file that is appropriate to your environment. If you are using an ASP server then the value must read 'HelloWorldResponseGET.asp' instead of 'HelloWorldResponseGET.php' Likewise, if you are using a ColdFusion server then the value must read 'HelloWorldResponseGET.cfm' instead of 'HelloWorldResponseGET.php'. Finally, if you are using a Java server (JSP) then the value must read 'HelloWorldResponseGET.jsp' instead of 'HelloWorldResponseGET.php', or if you are using a Perl server then the value must read 'HelloWorldResponseGET.pl' instead of 'HelloWorldResponseGET.php'. The code for these files is in the sections below.
192 192
193   -In the code above, you will notice that there is a new property that has been passed to the xhr.get function. This property - content - allows the programmer to send arbitrary values to the server as parameters. In this case, since we are using the default method of dojo.io.bind which is GET, the server side script will have the value of the textbox available to it as the GET parameter 'name'. It is worth mentioning that if the script expected the parameter under a different name (such as 'myName'), we would simply change the content property to be (note the change of 'name' to 'myName' on the left of the assignment operator ':'):</p>
  193 +In the code above, you will notice that there is a new property that has been passed to the xhr.get function. This property - content - allows the programmer to send arbitrary values to the server as parameters. In this case, since we are using the default method of dojo.io.bind which is GET, the server side script will have the value of the textbox available to it as the GET parameter 'name'. It is worth mentioning that if the script expected the parameter under a different name (such as 'myName'), we would simply change the content property to be (note the change of 'name' to 'myName' on the left of the assignment operator ':'):
194 194
195 195 .. html ::
196 196

0 comments on commit 6ab22ca

Please sign in to comment.
Something went wrong with that request. Please try again.