How to customize ning using PHP? using webservices? any one tell me recommended architecture to customize? if we want some extra feature by interacting with our own database using PHP/mysql? what is recomended?
Tags:
I am trying to use NING API to get title and URL of first 5 events, blogs etc. i couldnt see any way where i can put my PHP code therefore i create webservice on my server and trying to call thru ajax in ning but i unable to call the same webservice is working while calling from my localhost or other servers.
the 2nd thing i want to do is i want to create a widget of online examination bcause i am developing a forum for a particular university students so this is a requirement so i want to use my own database bcz ning doesnt allow to play with their database, therefore i decided to do through web service.
this is want i m trying to do but not working
<SCRIPTlanguage='javascript' | |
src='soapclient.js'>//here path will be the js uploaded on ning | |
</SCRIPT> | |
<SCRIPT language=javascript> | |
var url = "http://www.vustudyaid.com/wsserver.php"; | |
function GetVersions() | |
{ | |
var method = "hello"; // Method name to Call | |
var pl = new SOAPClientParameters(); | |
pl.add("name", "sohail"); | |
SOAPClient.invoke(url, method, pl, true, GetVersions_callBack); | |
} | |
/* WebService CallBack*/ | |
function GetVersions_callBack(r,soapResponse) | |
{ | |
if(soapResponse.xml) // IE | |
alert(soapResponse.xml); | |
else // MOZ | |
alert((new XMLSerializer()).serializeToString(soapResponse)); //print SOAP Response | |
alert(r.returnParam); | |
//print Object result | |
} | |
</script> | |
<input type="button" onclick="GetVersions();" value ='call'/> |
Posted by Kyle Ford on October 13, 2010 at 8:00am 3 Comments 3 Likes
Posted by Phil McCluskey on October 1, 2010 at 8:55am 0 Comments 1 Like
Posted by Kyle Ford on September 30, 2010 at 8:30pm 1 Comment 1 Like
© 2023 Created by Build Team.
Powered by