Click here to Skip to main content
15,888,733 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Session Automatically Expires After 55 to 60 Seconds In ASP.NET MVC With WEB API Pin
Member 115596118-Apr-15 18:30
Member 115596118-Apr-15 18:30 
QuestionSetting Textbox value using JQuery Pin
indian1431-Apr-15 12:10
indian1431-Apr-15 12:10 
AnswerRe: Setting Textbox value using JQuery Pin
Richard Deeming2-Apr-15 2:23
mveRichard Deeming2-Apr-15 2:23 
GeneralRe: Setting Textbox value using JQuery Pin
indian1432-Apr-15 7:27
indian1432-Apr-15 7:27 
AnswerRe: Setting Textbox value using JQuery Pin
jkirkerx3-Apr-15 7:16
professionaljkirkerx3-Apr-15 7:16 
QuestionHow create a cross domain web api? Pin
miss7861-Apr-15 3:49
miss7861-Apr-15 3:49 
AnswerRe: How create a cross domain web api? Pin
Afzaal Ahmad Zeeshan2-Apr-15 1:35
professionalAfzaal Ahmad Zeeshan2-Apr-15 1:35 
AnswerRe: How create a cross domain web api? Pin
jkirkerx3-Apr-15 7:30
professionaljkirkerx3-Apr-15 7:30 
  1. Well as far as I know, Javascript and jQuery doesn't allow you to do cross domain calls, to protect the website from false calls to web services within your web site. But on the flip side of the coin, I know you cal call card processing services from jquery, so I need to update my knowledge on that.
  2. You need to check your script for errors on something like http://www.javascriptlint.com/online_lint.php[^]
  3. With Javascript and JQuery, you really need to use the single quote char, and not the double quote char. by using the single quote char to wrap text values, you can use the double quote char without having to escape it
    e.g.
    var html = '<div style="classname"></div>';
I can't tell why it's not working, but you should code it correctly first before moving forward, you could just be getting the error after the first error.
$(document).ready(function () {
 2          $.support.cors = true;
 3          $.ajax({
 4              type: "GET",
 5              crossDomain: true,
 6              contentType: "application/json; charset=utf-8",
 7           //  url: "/api/stw",
 8               url: "<a href="http://apitesting.domain.com/api/stw">http://apitesting.domain.com/api/stw</a>,",
    ============================^
    SyntaxError: missing } after property list
 9              data: "{}",
10              dataType: "json",
11              success: function (data) {
12                  console.log(data);
13                 // var myData = JSON.parse(data)
14                  for (var i = 0; i < data.length; i++) {
15                      $("#tbDetails").append("<tr><td>" + data[i].Name + "</td><td>" + data[i].loan + "</td><td>" + data[i].evnt + "</td></tr>");
16                  }
17              },
18              error: function (result) {
19                  alert("Error");
20              }
21          });
22      });

QuestionAbsolutely lost with starting asp.net mvc Pin
Frygreen31-Mar-15 23:20
Frygreen31-Mar-15 23:20 
AnswerRe: Absolutely lost with starting asp.net mvc Pin
King Fisher1-Apr-15 0:18
professionalKing Fisher1-Apr-15 0:18 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
Afzaal Ahmad Zeeshan1-Apr-15 1:14
professionalAfzaal Ahmad Zeeshan1-Apr-15 1:14 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
King Fisher1-Apr-15 1:19
professionalKing Fisher1-Apr-15 1:19 
AnswerRe: Absolutely lost with starting asp.net mvc Pin
Afzaal Ahmad Zeeshan1-Apr-15 1:59
professionalAfzaal Ahmad Zeeshan1-Apr-15 1:59 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
Frygreen2-Apr-15 3:45
Frygreen2-Apr-15 3:45 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
King Fisher2-Apr-15 5:01
professionalKing Fisher2-Apr-15 5:01 
AnswerRe: Absolutely lost with starting asp.net mvc Pin
Afzaal Ahmad Zeeshan1-Apr-15 1:13
professionalAfzaal Ahmad Zeeshan1-Apr-15 1:13 
AnswerRe: Absolutely lost with starting asp.net mvc Pin
RajeeshMenoth1-Apr-15 1:16
professionalRajeeshMenoth1-Apr-15 1:16 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
Frygreen1-Apr-15 3:02
Frygreen1-Apr-15 3:02 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
jkirkerx1-Apr-15 8:10
professionaljkirkerx1-Apr-15 8:10 
QuestionChance Textmode Date Format Pin
Praveen Kandari31-Mar-15 22:34
Praveen Kandari31-Mar-15 22:34 
GeneralRe: Chance Textmode Date Format Pin
King Fisher1-Apr-15 0:15
professionalKing Fisher1-Apr-15 0:15 
GeneralRe: Chance Textmode Date Format Pin
Praveen Kandari1-Apr-15 0:24
Praveen Kandari1-Apr-15 0:24 
GeneralRe: Chance Textmode Date Format Pin
King Fisher1-Apr-15 0:31
professionalKing Fisher1-Apr-15 0:31 
GeneralRe: Chance Textmode Date Format Pin
Praveen Kandari1-Apr-15 0:37
Praveen Kandari1-Apr-15 0:37 
GeneralRe: Chance Textmode Date Format Pin
King Fisher1-Apr-15 0:39
professionalKing Fisher1-Apr-15 0:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.