387 Topics
| |
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(){ … | |
I need to use Jquery $.ajax() function in order to represent JSON objects in HTML page. JSONs are on a url: [url]http://aaa.aaa.aaa.aaa/demo/example.php[/url]. That is a string of json objects. Please if you have any solution it would be more than helpful. THANKS!! | |
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 … | |
Hello, I have Googled this for days, but couldn't find a suitable code/tutorial. I need to write a simple java webservice that would return a XML/JSON file as its output. For example say there's a button, and when i click on it, it should run a SQL [CODE]select * from … | |
Hello, I'm having a problem with a script I'm working on, basically, it outputs a SQL query in JSON, however, it's not doing it properly.. E.g. Right way: [{"id":111,"title":"Event1","start":"2011-10-10","url":"http:\/\/yahoo.com\/"},{"id":222,"title":"Event2","start":"2011-10-20","end":"2011-10-22","url":"http:\/\/yahoo.com\/"}] Wrong way: [{"id":"1","title":"dfssafsaf","start":"2011-10-22","url":"http:\/\/yahoo.com\/"},{"id":"3","title":"dfssafsaf","start":"1-1-1","url":"http:\/\/yahoo.com\/"}[b],][/b] As you can see it inserts a ",]" and I only want it to show "]" because it's … | |
I need autofill script but i dont know where to begin I have mysql databese table like this (records aprox. 400): id | product name | barcode | quantity | price ------------------------------------------------------------- 1 | procuct 1 | 0000001 | 21 | 12 2 | procuct 2 | 0000002 | 23 … | |
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] | |
Hi all, I'm trying to insert an array (which I've decoded from a JSON object) into a mysql database (for the first time!) and keep coming back with a "Could not connect - Column count doesn't match value count at row 1" error message. My server and database connections are … | |
hi all, i have a problem with multiline json file that i wish to insert into an sql db. my problem arose as i went from one data set to two in the JSON file. the one data set was sucked from the json file to the sql db via … | |
hi can any one tell me how to call webservice through json query here is my code. i want pass two variable and i want to get the result of that methos say Add methos of following service. for webservice [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using … | |
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, … | |
sir i have one json i want deserlize this json how will i do iam try out but "Type 'System.String' is not supported for deserialization of an array." error coming here is my code : in cs file [code] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using … | |
how to deserilize json in asp.net i will get this type of data when i use HttpWebRequest [code=text] [{"id":23,"name":"Video Clips"},{"id":15,"name":"Deleted Scenes"},{"id":9,"name":"Music Albums"},{"id":7,"name":"Trailers"},{"id":18,"name":"Short Films"},{"id":21,"name":"Movie Clips"},{"id":1,"name":"Movies "},{"id":4,"name":"Plays"},{"id":22,"name":"Scenes"},{"id":2,"name":"TV Show"},{"id":5,"name":"Kids"},{"id":16,"name":"Interviews"},{"id":11,"name":"Film Songs"},{"id":14,"name":"Making of Movie"}] [/code] now i want deserilize this in asp.net(c#) please friends help me out | |
Hi all the problem lies with the createJSON function for some reason it is breaking no idea why though. please advise... [CODE]<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css"> <title>User Details</title> <script type="text/javascript"> function validateForm(){ var x=document.forms["myForm"]["username"].value if (x==null || x=="") { alert("username must be filled … | |
i need help in adding $data into datatable data.setvalue where will be used to generate column chart. first column = x-axis while the rest of the columns = elements. thanks in advance. [CODE] <?php $result=mssql_fetch_array($row); // $result already in correct structure. $data = json_encode($result); ?> <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> … | |
Scenario: Web Service needed to calculate values and send results back as json. These calls are to be made cross-domain so I'm using jsonp. The problem I'm having occurs both on the same domain and cross-domain. Problem: I'm having an issue getting back json data from a WCF Service. While … | |
Hello, I'm using Google Maps to show houses listings on the Google map. I'm also using AJAX to allow user to customize search parameters. Map is showing fine but the houses listings on the map is not working. Moreover, I'm getting the following pop up error; [url]http://imageshack.us/photo/my-images/857/screenshotpll.png/[/url] I'm also sharing … | |
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 … | |
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 … | |
[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":[ … | |
I'm trying to make an AJAX request to my localhost server. Here is the code for the page that is requested, ajaxresponsecontent.php. The content is queried from a MySQL database then encoded into JSON using PHP. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" … | |
Hie good friends! I have got a Jsp form for creating a database record for students. The form has got a drop down box for Countries, but the countries are too many that a user may spend a lot of time scrolling to locate his/her country. The drop down is … | |
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 … | |
Hello All, Ii want to know how can i check whether the response from the server is inJSON format or XML format . Please let me know how to do this, | |
hi all, i am using json and codeigniter for a project which it has 2 language preferences..english and french...my problem is.. in json number field has to accept (,) instead of (.) in french language can any one guide me on this... thanks, Praveen | |
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 | |
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 () … | |
Hi Everyone, I am currently working on a site that will have lots of European and Middle-Eastern town names that include accented and other special characters. I have never had to deal with these characters before and I foolishly assumed that setting everything to utf-8 would take care of it … | |
Hi there please help i want to consume a json web servvices with classic asp . i am still very new at web services a simple detailed sample code should do. thanx in advance... | |
Hi, I want to get such data using AJAX from PHP. With php I generate data this way: [CODE=php] $return['credits'] = $credits; $return['banners'] = $this->generate_banners($user->id); echo json_encode($return); [/CODE] generate_banners: [CODE=php] function generate_banners($user_id) { $html = ''; $query = $this->db->where('user_id',$user_id)->select('filename')->get('jos_reklama_banners'); if($query->num_rows() > 0) { foreach($query->row() as $filename) { $html .= '<div … |
The End.