title: Return JSONP from Classic ASP with Javascript server side coding
body: <p>I'm calling a classic .asp page from jquery to return a list (using JSONP). I want to use JSONP because of the same origin policy that causes problems when my website is viewed through google translate. The problem with all of the solutions I have found is that they assume the asp page is using VBscript as the server side language. I am using javascript as the server side language, in asp, to connect to a db and return results.</p>
  
  <p>I have tried a few different methods that have only returned 500 server errors. Here is my jquery call:</p>
  
  <pre><code>$.ajax({
    dataType: 'jsonp',
    url: 'website/page.asp',
   success: function () {
      alert(data);
    },
  });
  </code></pre>
  
  <p>And this my page.asp:</p>
  
  <pre><code>&lt;%@ language="Javascript" %&gt;
  
  &lt;script language="javascript" runat="server" src='json2.js'&gt;&lt;/script&gt;
  &lt;script language="javascript" runat="server"&gt;
  
  var jsonValue = eval('('hello world')');
  Response.Write(jsonValue);
  
  &lt;/script&gt;
  </code></pre>
  
  <p>All I want to do is create a simple hello world JSONP call so that I can start to modify it to include data from a query I am doing to a database. Does anyone have a simple version of this? Is this possible?</p>