ASP.NET JQUERY Cross Domain with Web Service

Zamknięty Opublikowano Feb 4, 2012 Płatność przy odbiorze
Zamknięty Płatność przy odbiorze

Need an example of a cross domain Jquery - Ajax

Currently my Jquery against a [url removed, login to view] works great when the jquery and [url removed, login to view] are on the same server.

Here is the problem when I move the [url removed, login to view] to a different domain the Jquery fails for the following reasons:

-- reason 1; returns xml NOT JSON

-- returns a GET; not a POST

Look at the two attached screen shots. local [url removed, login to view] shows everything working & remote [url removed, login to view] shows the webservice returning XML.

Attached is a ZIP file with two websites. Place both in the Visual Studio 2010 project.

This should be done in Visual Studio 2010 with ASP.NET 4.0.

The websites are:

Site 1: Williamsport

Site 2: WebSite22

Williamsport has three files that are important

File 1: [url removed, login to view] – this calls [url removed, login to view]; method ZIP3_NEW

-this works, return JSON, returns a POST, JQUERY autocomplete pops up) – see local [url removed, login to view]

File 2: [url removed, login to view] – this calls http://localhost:20568/WebSite22/ZIP3_NEW webservice; cross domain call

-this returns xml not JSON, also does not return a POST, stops at a get – see remote [url removed, login to view]

File 3: [url removed, login to view] (this contains method ZIP3_NEW)

Website22 has one file that is important

File 1: [url removed, login to view] (this contain method ZIP3_NEW -- this the webservice called during the cross domain call).

Both Site 1 and Site 2 have the same webservice. It is [url removed, login to view]

Here is the job:

Build a Visual Studio 2010 project with both websites inside.

Step 1 - Run [url removed, login to view] from Williamsport Website - this runs well - no problem.

Step 2 - Run [url removed, login to view] from Williamsport Website - this does not return JSON and the JQuery does not receive the data to get the Autocomplete to work.

Look at the issues in Fiddler. Firebug or whatever debugger you want.

Get the [url removed, login to view] to work just like [url removed, login to view]

The project probable only involves changing a line of two of code for a developer that knows what he is doing.

I will give the best recommendation to whoever handles this for me.

*****************

I will award the job as soon as I get a qualified developer to give me a reasonable bid.

I need to get this this done ASAP.

***************************

.NET AJAX ASP Visual Basic

Numer ID Projektu: #1427031

O projekcie

15 ofert Zdalny projekt Aktywny Mar 10, 2012

15 freelancerów złożyło ofertę za $104 w tym projekcie

OShuqair

Hello Sir, I can help you doing this.

$150 USD w ciągu 2 dni
(67 Oceny)
7.0
netcoder

Hi, I think I can do it:-)! Best regards, netcoder:-)

$55 USD w ciągu 5 dni
(129 Oceny)
6.2
snsTechnologies

Please see PM for detailed proposal. Thanks!

$125 USD w ciągu 2 dni
(16 Oceny)
5.2
contactfordotnet

Hi, Please check your PMB.

$90 USD w ciągu 1 dnia
(7 Oceny)
4.6
Jaipawan

Hi, I am ready to work on that. Please refer the PMB. Thanks

$90 USD w ciągu 2 dni
(5 Oceny)
3.5
littlemaster2706

Hi!! I had download your given project code files. Let me look into it & come-up a solution for it. I am planning to deliver my feedback within this weekend. I hope, we can build a strong business relationship for f Więcej

$125 USD w ciągu 2 dni
(1 Ocena)
1.4
yadavsatyam2

hello i can do this ,please give me chance having 3 + year work experience on .net

$100 USD w ciągu 1 dnia
(1 Ocena)
1.0
apatel7777

hi please check your pm

$30 USD w ciągu 0 dni
(1 Ocena)
1.0
nexusfintech

Sir, Please check the PM for further details.

$50 USD w ciągu 1 dnia
(1 Ocena)
0.0
irfanglb

I am an expert ASP.NET developer. I can get it done soon.

$30 USD w ciągu 1 dnia
(0 Oceny)
0.0
levanlevi

Hi, I can do the work, I know what's problem. See PM

$80 USD w ciągu 1 dnia
(0 Oceny)
0.0
alinamishti

Respected Client Please check my PBM for more details thanks

$200 USD w ciągu 15 dni
(0 Oceny)
0.0
hainahoo

Hi, I am looking to grab this easy task from you.

$100 USD w ciągu 0 dni
(0 Oceny)
0.0
arcticwalker

Sir, Allow me to fix your problem by choosing my bid. I require no upfront cost, pay upon completion only.

$250 USD w ciągu 1 dnia
(0 Oceny)
0.0