[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - Json

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 27th, 2024, 7:30 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Json
PostPosted: May 17th, 2013, 10:13 pm 
Offline

Joined: March 14th, 2013, 5:49 am
Posts: 52
I have an array in Json how to bring one of its values ​​in the label


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: May 18th, 2013, 5:49 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: May 23rd, 2013, 3:43 pm 
Offline

Joined: March 14th, 2013, 5:49 am
Posts: 52
Something I error knocks.

Here at this link is JSON: http://api.vkontakte.ru/method/users.ge ... =photo_200, status

Spars and need to display text ->> in Lable.
need to display A reference to the awatar ->> component "picture"

Please Help me


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: May 23rd, 2013, 5:26 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: May 24th, 2013, 9:59 pm 
Offline

Joined: March 14th, 2013, 5:49 am
Posts: 52


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: May 25th, 2013, 11:30 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
Definitely not but I wont advice to dump your creation.
Use gethttpstr or ActiveX do fetch strings

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: May 31st, 2013, 9:37 pm 
Offline

Joined: March 14th, 2013, 5:49 am
Posts: 52
function file_get_contents_async( url ,callback) {
var req = null;
try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {
try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {
try { req = new XMLHttpRequest(); } catch(e) {}
}
}
if (req == null) throw new Error('XMLHttpRequest not supported');

req.open("GET",url,true);
req.onreadystatechange=function() {
if (req.readyState==4) {
var response = req.responseText;
callback(response);
}};
req.send(null);
}


file_get_contents_async('http://api.vkontakte.ru/method/users.get?uids=1&fields=photo_200',function(response) {


//get the json.. lets say that is stored in a obj
//response is the downloaded string...
//BE WARNED THAT : if download fails no call is made
alert(response);
});
var obj = (How to insert here response????????????);
var uid = obj.response[0].uid;
var firstName = obj.response[0].first_name;
var lastName = obj.response[0].last_name;
var avatar = obj.response[0].photo_200;
alert(lastName);


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: June 1st, 2013, 5:26 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: June 1st, 2013, 10:02 pm 
Offline

Joined: March 14th, 2013, 5:49 am
Posts: 52


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: June 2nd, 2013, 12:58 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
Your JSON source is api.vkontakte.ru?? Then wait a min... i'm seeing what it does

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: June 4th, 2013, 12:46 am 
Offline

Joined: March 14th, 2013, 5:49 am
Posts: 52
The problem remains ... the answer comes but does not parse out


Top
 Profile  
 
 Post subject: Re: Json
PostPosted: June 4th, 2013, 10:50 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
JSON not defined?? This is because the script framework is not updated.

Use this widget, I've tested, it works. untitled2(2).XWidgetPkg [11.96 KiB]
Downloaded 227 times

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Bing [Bot] and 217 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group