Javascript handlers

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Gurgen
Posts: 34
Joined: Thu Dec 10, 2015 2:09 pm

Javascript handlers

Post by Gurgen » Wed Feb 22, 2017 4:55 pm

Hi all,

I have some js code which sends data back to livecode.

My js code

Code: Select all

function crosswordDataToLivecode(pData){
	 
    try{
    liveCode.dataReady(pData);        
    }
    catch(err) {
       alert(err);
    }
};
So I'm getting error "TypeError: liveCode.dataReady is not a function".

I have dataReady as a javascripthandler in my browser widget properties.

Please help to solve this problem.

Thanks,
Gurgen

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Javascript handlers

Post by capellan » Thu Feb 23, 2017 4:28 pm

Hi Gurgen,

Could you post a stack to run on the ide?

Al

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”