This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

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

By: a guest on Feb 22nd, 2012  |  syntax: None  |  size: 0.95 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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!
clone this paste RAW Paste Data