in Education by
FQL statement has executed and array object has been passed to $fqlResult successfully. However, I'm unable to write name into my through innerHTML. Neither exceptions nor errors have occurred. Other columns from the table such as latitude, longitude, page_id, checkin_count are able to write into respective correctly. Only name is giving me problem. May I know what is preventing me from writing name into my ? FQL Place Documentation FQL Statement SELECT page_id,name,latitude,longitude,checkin_count FROM place WHERE distance(latitude, longitude,"1.2894680406278", "103.86311775635") < 200 ORDER BY checkin_count DESC Results from print_r($fqlResult) appears to be consistent with results from Graph API Explorer. HTML Page Name: Latitude: Longitude: Observation JavaScript Setup 1 (Blockage) document.getElementById('fName').innerHTML = <?=$fqlResult[0]['name']?>; document.getElementById('fLatitude').innerHTML = <?=$fqlResult[0]['latitude']?>; document.getElementById('fLongitude').innerHTML = <?=$fqlResult[0]['longitude']?>; //Output No. of Facebook Checkins: Latitude: Longitude: JavaScript Setup 2 (No blockage - Okay) document.getElementById('fLatitude').innerHTML = <?=$fqlResult[0]['latitude']?>; document.getElementById('fLongitude').innerHTML = <?=$fqlResult[0]['longitude']?>; //Output No. of Facebook Checkins: Latitude: 1.2894680406278 Longitude: 103.86311775635 JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Latitude and logitude are numbers, so no problem there. But name is a string (a.k.a. text literal), and what did you forget to put around the value in your JavaScript code …? Exactly, string delimiters. You should really learn how to work with your browser’s error console …!

Related questions

0 votes
    How to set same number 'priority' with one query for Mercedes. +--------------------- ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    I have this table where columns correspond to names: i.e. 11 = first, 12 = second, 13 = third.. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 15, 2022 in Education by JackTerrance
0 votes
    The structure of a table Employee is given below. Suggest suitable data type and size of each column. Column name ... _ Design _ _ Select the correct answer from above options...
asked Dec 11, 2021 in Education by JackTerrance
0 votes
    In a network, If P is the only packet being transmitted and there was no earlier transmission, which of the ... B. Queuing delay C. Transmission delay D. Processing delay...
asked Jan 9, 2023 in Technology by JackTerrance
0 votes
    There are record-once versions of the compact disk and digital video disk, which can be written only once ... Media in portion Storage and File Structures of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    __________ states that only valid data will be written to the database. (a) Consistency (b) Atomicity ... Transaction Concept topic in division Transactions of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    You have a column that will only contain values from 0 to 256. What is the most economical data ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Which of the following statement is incorrect regarding with first general elections in India? 1) Only 10% of ... were introduced Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    I want to click on group add button of Facebook, but I have not found it possible using an xpath. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Convergence in perceptron learning takes place if and only if: (a) a minimal error condition is satisfied (b) actual ... (d) all of the mentioned Please answer the above question....
asked Sep 3, 2022 in Education by JackTerrance
0 votes
    I am developing a web page code, which fetches dynamically the content from the server and then places this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    Name the countries where East European revolutions took place in 1989-1990? Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    If a piece of bread is kept in a container in moist place for 2-3 days, (1) What will you see? (2) ... of the organism you may observe. Select the correct answer from above options...
asked Nov 9, 2021 in Education by JackTerrance
0 votes
    SQL structure such as table names, column names, and so on cannot be escaped, and thus user-supplied structure names are ... issue in a report-writing software. 1. True 2. False...
asked Mar 20, 2021 in Technology by JackTerrance
...