Dictionary API

Completado Publicado Sep 2, 2011 Pagado a la entrega
Completado Pagado a la entrega

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

Nº del proyecto: #1192668

Sobre el proyecto

7 propuestas Proyecto remoto Activo Sep 11, 2011

Adjudicado a:

buraqtech

Check your PMB for details!!!

$312 USD en 7 días
(100 comentarios)
8.0

7 freelancers están ofertando un promedio de $309 por este trabajo

sainathkohta

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

$250 USD en 1 día
(69 comentarios)
7.8
srinichal

I can deliver the code asap

$250 USD en 4 días
(143 comentarios)
7.4
engrphp

Hi, I'm ready plz give me the details

$250 USD en 1 día
(2 comentarios)
3.0
dariomp

Hello,see my private message for details

$350 USD en 5 días
(0 comentarios)
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 en 40 días
(0 comentarios)
0.0