Advertisement
Guest User

Response.WriteBlock error when using mootools in server-side ASP JScript

a guest
Feb 22nd, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Microsoft JScript runtime error '800a138f'
  2.  
  3. 'Response.WriteBlock(...)' is null or not an object
  4.  
  5. [1,2,3].each( function( i ) {
  6. Response.Write( "<b>" + i + "</b>, " );
  7. });
  8.  
  9. var fruits = [];
  10. fruits.push( "apples" );
  11. fruits.push( "oranges" );
  12.  
  13. fruits.each( function( fruit ) {
  14. Response.Write( "<b>" + fruit + "</b>, " );
  15. });
  16.  
  17. // As will this
  18. var nums = [ 1,2,3,4,5 ];
  19. nums.each( function(i) {
  20. Response.Write( "<b>" + i + "</b>" );
  21. });
  22.  
  23. <%
  24.  
  25. [ 1,2,3,4,5 ].each( function(i) {
  26. Response.Write( "<b>" + i + "</b>" );
  27. });
  28.  
  29. %>
  30.  
  31. <%
  32.  
  33. var something = 1;
  34.  
  35. [ 1,2,3,4,5 ].each( function(i) {
  36. Response.Write( "<b>" + i + "</b>" );
  37. });
  38.  
  39. %>
  40.  
  41. <%
  42.  
  43. ;[ 1,2,3,4,5 ].each( function(i) {
  44. Response.Write( "<b>" + i + "</b>" );
  45. });
  46.  
  47. %>
  48.  
  49. //foo.js
  50. 1 + 1 == 2
  51.  
  52. //bar.js
  53. ("lol, string")
  54.  
  55. //foo.js + bar.js
  56. 1 + 1 == 2("lol, string") // TypeError: number is not a function
  57.  
  58. //bar.js
  59. ;("lol, string")
  60.  
  61. //foo.js + bar.js
  62. 1 + 1 == 2;("lol, string") // SUCCESS!!1!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement