164 Topics

Member Avatar for
Member Avatar for adishardis

Hi, I have a database table filled with interesting data. On my webpage I would like to let a user pick two rows in the table and compare the data to see how it differs. Picking what rows to compare would be done by two dropdown lists. The data in …

Member Avatar for adishardis
0
128
Member Avatar for noelthefish

Hi, I have looked at this code and I cannot see the problem. If anyone can spot the error then I will be very grateful. Basically I am returning an array from a .PHP in json format the code is here. echo json_encode($anarray); the array is made up like "vegetable" …

Member Avatar for Airshow
0
135
Member Avatar for manus26

Need an xslt to convert xml into json. I have a xml file which is having 3 attributes. The value in the 3rd attribute is another xml file. I need an xslt which can read the value of the 3rd attribute as another xml (not just a value) and can …

Member Avatar for Mike Askew
0
224
Member Avatar for dschuett

This works: while($row = mysql_fetch_array($results)){ if($isfirst){ $last_id = $row['id']; } $isfirst = 0; $msg_id = $row['id']; $message = nl2br($row['post']); $time = $row['post_time']; $name = $row['firstname']." ".$row['lastname']; if($row['updated']=='1'){ $updated = "- <font style='color:#DB4937;'>CORRECTED</font>"; } else{ $updated=''; } $newPosts .= "<li id='msgblk_$msg_id'><span id='message_$msg_id'>$message</span><p class='time' id='time_$msg_id'>$name - $time $updated</p></li>"; } $newID = $last_id; …

Member Avatar for dschuett
0
284
Member Avatar for dschuett

I am working on a live feed that pulls records from a database. Firebug shows the JSON being returned as the following: {"newPosts":"<li><span id='message_33'>This is a Test.\nLet me know if it works.<\/span><p class='time' id='time_33'>Apr 14th, 2012 10:13:57 AM<\/p><\/li>","newID":"33"} I have checked the JSON's validity at JSONLint.com, and it IS in …

Member Avatar for pritaeas
0
175
Member Avatar for Bugaya

I am trying to use JQuery Full Calendar along with Spring MVC. I have made a demo like [that][1]. Target: I need to send the UPDATED calendar's data,after I enter my events, to the controller to handle it. Issue: I've succeded to re-send the calendar I've inistialzed to the controller. …

Member Avatar for Bugaya
0
462
Member Avatar for Bugaya

I am trying to use JQuery Full Calendar along with Spring MVC. I have made a demo like [that][1]. Target: I need to send the UPDATED calendar's data,after I enter my events, to the controller to handle it. Issue: I've succeded to re-send the calendar I've inistialzed to the controller. …

Member Avatar for Bugaya
0
197
Member Avatar for RachelR

Hello All, I'm trying to GET values from a DB table in JSON format through AJAX and then parse them into a JQuery List. test.php (partial) [CODE]while($row=mysql_fetch_assoc($sql)) $output[]=$row; print(json_encode($output)); mysql_close();[/CODE] JSON Format it Returns: [CODE][{"name":"1423 Peacock Haven"},{"name":"9835 Fredericksburg Rd"},{"name":"Test Project"}][/CODE] Following along with [URL="http://www.roccles.com/?p=151"]this tutorial[/URL], I'm trying to parse my …

Member Avatar for RachelR
0
1K
Member Avatar for shaan_046

0 down vote favorite share [g+] share [fb] share [tw] I have a class in which i have a method name method() returning a String in the form of JSON string. The output is :: [CODE] [{"ID":1,"Names":"Shantanu"},{"ID":2,"Names":"Mayur"},{"ID":3,"Names":"Rohit"},{"ID":4,"Names":"Jasdeep"},{"ID":5,"Names":"Rakesh"}] [/CODE] Now this in the form of data that i want to Populate …

0
129
Member Avatar for Pravinrasal

pass dynamic values in json data in java script means when i am changing combo box i want to store values from combo box to json in key -value pair and finally also want length of JSON anyone please help me ...... Here is my code [CODE] <script type="text/javascript"> var …

Member Avatar for AleMonteiro
0
650
Member Avatar for M.Waqas Aslam

hello ! i am working on a single page of asp ,and i am using ext js 4.0 with it . i have a grid of extjs , my task is to show records in that grid from mssql server 2008 , for getting records i am using webservice . …

0
89
Member Avatar for M.Waqas Aslam

hello ! I want to use JSON in my asp.net project using c# .how can i do that , i am very new in JS and JSON , please help me so that i can start work .i googled about it , and read some posts on different forums and …

Member Avatar for M.Waqas Aslam
0
186
Member Avatar for M.Waqas Aslam

hello ! i am very new in webdevelopment , i want to use ExtJs , please help me , i download the extjs-4.0.1 .now please tell me how to import it in my project , i mean is i copy this extjs-4.0.1 to my project or is there is another …

Member Avatar for stbuchok
0
115
Member Avatar for M.Waqas Aslam

hello ! my boss assign me a task to connect mssql server 2008 and show records in table using JS and JSON , i m very new in asp.net , can any one me help me where to start my work and how i can complete this , can any …

Member Avatar for mani-hellboy
0
179
Member Avatar for dashawk

Hi guys, I have a project that reads a json data and parse it. The program is working properly except that I cannot get its individual rows and view it in separate panels. Here is my code: [CODE] Imports System.Net.Json Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal …

Member Avatar for dashawk
0
256
Member Avatar for M.Waqas Aslam

hello EveryOne! i am very new in JS and JSON , or you can say this is my first day to learn something about JS and JSON, i have few questions 1- what is difference between JS and JSON. 2-My Task is to connect MSSQL server 2008 and show records …

Member Avatar for M.Waqas Aslam
0
137
Member Avatar for dashawk

I have been searching this topic over the internet and found a few solutions, but I can't seem to find any for Visual Basic. I tried json from codeplex, newtonsoft but has no luck... the json data that i want to parse is this [CODE]{"sample":[{"id":"1","fname":"kristine","lname":"reyes","address":"manila"}]}[/CODE] hope anyone could help.. thanks

Member Avatar for gusano79
0
571
Member Avatar for eawade

Ok, this is my final tango with this. Below I've listed the code. I'm able to get the value of the url and display it on screen for the current (active tab) in Google Chrome. Now all I have to do is pass that value as a parameter in the …

Member Avatar for Troy III
0
301
Member Avatar for ferrari77

I've simplified it quite a bit but it's still not working. PHP: [CODE] <?php $a = array('data' => 'Hello'); echo json_encode($a); ?> [/CODE] Here's the JQuery Code: [CODE] function getCityAndState(data, location) { var jsonString = {"zipCode": data}; var outR = outputResults alert("JSON String:" + jsonString.zipCode); if (location === "living") { …

Member Avatar for Airshow
0
126
Member Avatar for ferrari77

Problemo: My PHP Script (it's just a snippet) is not picking up my JavaScript code. It doesn't even see the zip code field. It says it doesn't exist: [CODE] <?php $zipCode = $_GET[zipCode]; //echo "data:".$zipCode; $json = "{data:.$zipCode}"; echo $json; //echo json_encode(array("data"=>$zipCode)); //print ("Zip Code:".$zipCode); ?> [/CODE] I'm passing it …

Member Avatar for diafol
0
320
Member Avatar for cip6791

I would like to check if a user is logged on domain1.com and return a message on domain2. There is a lot more to the code, I only added a basic sample. index.php on [url]http://domain2.com[/url] [CODE]<script type="text/javascript" src="http://domain1.com/test.php?js"></script>[/CODE] test.php is on [url]http://domain1.com[/url]. [CODE] <?php if (isset($_GET['js'])){ header("Content-type:text/javascript"); ?> function doAjax(){ …

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for Mbot

Hi, Im having difficulty getting my form contents to send to my php page using ajax, jquery and json. The results just doesnt want to show. My javascript, where I create the JSON object and try to send it through to the php page: [CODE] var JSONobj; var JSONstr; function …

Member Avatar for Airshow
0
2K
Member Avatar for bspace

The following request isn't retrieving a response when I look for it in Firebug. Any ideas why? [CODE]$function(){ //json request to flickr $.getJSON('http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key=71282ef5623d61a898f798c7916bed31&photoset_id=72157627882181032&format=json&jsoncallback=?'), });[/CODE]

Member Avatar for Airshow
0
94
Member Avatar for scrivomcdivo

Hey folks. I currently have a large JSON file made up of entries similar to the below. The file contains information relating to photographs:- [CODE]{ "SourceFile": "C:/Users/Me/Desktop/Photos/5294030805_9497032cd7_o.jpg", "ExifToolVersion": 8.63, "FileName": "5294030805_9497032cd7_o.jpg", "Directory": "C:/Users/Me/Desktop/Photos", "FileSize": "1094 kB", "FileModifyDate": "2011:09:09 22:40:39+01:00", "FilePermissions": "rw-rw-rw-", "FileType": "JPEG", "MIMEType": "image/jpeg", "JFIFVersion": 1.01, "ExifByteOrder": "Big-endian (Motorola, …

Member Avatar for Momerath
0
268
Member Avatar for mark22

I have almost given up but thought I would post here in a last attempt. I am pretty new to jquery and I am having an issue. I need to use the same carousel with three different json queries on the same page. I tried putting them in divs with …

0
111
Member Avatar for sithembisophp

Hi, I'm trying JSON for the first time and I have a php file that returns this: [CODE] [{"userID":"39160902151","content":"I really can't wait to get this thing done :-)","published":"2011-06-07 10:33:35"}] [/CODE]. What do I do if I want to display only the userID from this data using javascript. I load this …

Member Avatar for twiss
0
91
Member Avatar for ispeakbinary

[CODE] <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript" src="js/jquery-1.3.2-vsdoc.js"></script> <script type="text/javascript"> $(function() { $("#Button1").click(function() { $.getJSON("ticketPriceInArray.js", function(json) { var ticketPriceArray=[json.tickets[0].price, json.tickets[1].price, json.tickets[2].price, json.tickets[3].price, json.tickets[4].price, json.tickets[5].price]; alert(json.tickets[0].type); var inputWord =$("#keyword").val(); if (inputWord=="A"){$("#result").text(ticketPriceArray[0]);} if (inputWord=="B"){$("#result").text(ticketPriceArray[1]);} if (inputWord=="C"){$("#result").text(ticketPriceArray[2]);} if (inputWord=="D"){$("#result").text(ticketPriceArray[3]);} if (inputWord=="E"){$("#result").text(ticketPriceArray[4]);} if (inputWord=="F"){$("#result").text(ticketPriceArray[5]);} }); }); }); </script> [/CODE] Here is "ticketPriceInArray.js" [CODE] { "tickets":[ …

Member Avatar for twiss
0
172
Member Avatar for cutexxbaby

hi i am doing a project now i going to use ajax to retrieve coordinate from the json in html and pin the coordinate onto a point on the map using javascript but the problem is i am only able to use one point on the map can tell me …

Member Avatar for Airshow
0
187
Member Avatar for elneco

Forums, I've been trying to get the ASP version of this widget to work but have had no luck: [url]http://www.radoslavdimov.com/jquery-plugins/jquery-plugin-digiclock/[/url] I need help with this urgently and am willing to reimburse anyone that can help me figure this out. Thanks in advance! -jaime

0
70
Member Avatar for sampa420

Hi developers, I develop a feature to recover the password for the user, but I'm having trouble to retrieving the value of json. The problem is....on success the IF condition always run the else I am pasting my code and if someone can help me. My engine JS [CODE]$("#mailResetUsrPass").click(function () …

0
78

The End.