Florin Dumitru
Posts: 0
Joined: Tue Jul 17, 2012 5:28 pm

How I pull data using REST API and show it in alert box using javascript ?

I user PARSE to make a list of data and I want when I click to one item of the list to pop up an alert box with other info about that data.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How I pull data using REST API and show it in alert box using javascript ?

If you want to open the standard browser alert, simply read the data from the page when you open the alert. Or, on click, save the data into local storage and then read it in the alert or popup.

Florin Dumitru
Posts: 0
Joined: Tue Jul 17, 2012 5:28 pm

How I pull data using REST API and show it in alert box using javascript ?

I try ...and is not working. Please give me a solution.
The alert box is empty.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How I pull data using REST API and show it in alert box using javascript ?

You need to show what you tried and what exactly doesn't work.

Florin Dumitru
Posts: 0
Joined: Tue Jul 17, 2012 5:28 pm

How I pull data using REST API and show it in alert box using javascript ?

var pop = Tiggr('details');
alert(pop.val());

where "details" is the label with text from REST API

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How I pull data using REST API and show it in alert box using javascript ?

If it's a label component, you need to use pop.text(). val() is for input components.

http://api.jquery.com/text/

Return to “Issues”