Dictionary API

Completed Posted Sep 2, 2011 Paid on delivery
Completed Paid on delivery

I need an expert in Javascript / Ajax / Php to fix a dictionary function on my website (former API was from Google but has been disabled)

It should be fixed by a new API (/ [login to view URL] or [login to view URL] or any other)

> Free API - no commercial use

> English

> Full coding / Installation (Joomla) / testing

should replace functionalities of following code:

/ set the language

$mainframe->initialise();

error_reporting(3);

$task = JRequest::getVar("task", null );

class ajaxDefinitions extends JObject{

function define(){

$user = & JFactory::getUser();

$db = & JFactory::getDBO();

$videoID = JRequest::getVar("videoID", null );

$order = JRequest::getVar('cc_order');

$word = JRequest::getVar('word');

$language = JRequest::getVar('language');

$userID = JRequest::getVar('userID');

if (isset($word))

{

$html = new simple_html_dom();

$ch = curl_init();

// set url

curl_setopt($ch, CURLOPT_URL, '[login to view URL]'.$language.'|'.$language.'&q='.$word.'&hl='.$language);

//return the transfer as a string

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_REFERER, JURI::base());

// $output contains the output string

$output = curl_exec($ch);

$html->load($output);

$replace = $html->find('div[class=dct-srch-rslt]');

$final = str_replace("<a ", "<a target='_blank' ", $replace[0] );

$final = str_replace("/dictionary", "[login to view URL]", $final );

$final = str_replace("<h3>Web definitions</h3>", "", $final );

if ($final != "")

{

ajaxDefinitions::_return($final);

}

else

ajaxDefinitions::_return("0");

}

else

ajaxDefinitions::_return("0");

}

AJAX JavaScript PHP

Project ID: #1192668

About the project

7 proposals Remote project Active Sep 11, 2011

Awarded to:

buraqtech

Check your PMB for details!!!

$312 USD in 7 days
(100 Reviews)
8.0

7 freelancers are bidding on average $309 for this job

sainathkohta

We can easily do this. Please give us a chance.

$250 USD in 1 day
(69 Reviews)
7.8
srinichal

I can deliver the code asap

$250 USD in 4 days
(143 Reviews)
7.4
engrphp

Hi, I'm ready plz give me the details

$250 USD in 1 day
(2 Reviews)
3.0
dariomp

Hello,see my private message for details

$350 USD in 5 days
(0 Reviews)
0.0
NitsBabar

I have hands on experience on web development,Virtualization-Storage domain,websites/CMS,products and social applications. I am also into testing QA for bugzilla and testopia tools.

$500 USD in 40 days
(0 Reviews)
0.0