884 Topics
![]() | |
At first, hello everybody! I want to make a php script which autofollow other users on twitter. The userinformation like the twitter username password or the search tearm will be saved in a database and read out. Here are is my code so far, but won't work correct: Autfollow.php [CODE] … | |
can any one tell what is json? why it's used , can you explain with a example. | |
I have this data in JSON: object(stdClass)#1 (2) { ["noun"]=> object(stdClass)#2 (2) { ["syn"]=> array(59) { [0]=> string(5) "drama" [1]=> string(13) "dramatic play" [2]=> string(8) "maneuver" [3]=> string(9) "manoeuvre" [4]=> string(3) "bid" [5]=> string(12) "child's play" [6]=> string(14) "playing period" [7]=> string(14) "period of play" [8]=> string(9) "free rein" [9]=> … | |
I recently herd the buzz about JSON and stuff was also saw the coding style , but still i am not able to appreciate it . Well i am working in python web framework (not Django) and also using templating language. when i wrote a program to just to add … | |
Hello everyone, i'm trying to use 2 mootools scripts together in one source. They work serperately but as soon as i combine them only one is working. It seems they interfere with each other but i can't seem to find the problem. Can anyone help me out? I'll paste them … | |
I'm trying to develop a drupal module to return json from the citysearch api. I can successfully construct the url and I can use the url to open a new window and display the returned json data, thus: [CODE]testwindow= window.open (URL, "mywindow", "location=1,status=1,scrollbars=1,width=100,height=100");[/CODE] however, my attempt to try this with … | |
Hello I'm new to java and am having trouble making a drop down list that draws the top 10 electronics from an rss feed for amazon using the rss link: [url]http://www.amazon.com/rss/bestsellers/electronics/ref=pd_ts_rss_link[/url]. I;m familiar enough with drop down lists to have that part, but have no idea how to add the … | |
I need to iterate through a JSON object in JavaScript or jQuery that is returned from a PHP file with the a json_encode function call: echo json_encode ($varDump); The beginning of the JSON objects looks like the following: ["date","Rescription",{"date":"1715-05-03","description":"Edmund Halley observes total eclipse phenomenon \"Baily's Beads\""},{"date":"1765-05-03","description":"1st US Medical school opened"},{"date":"1797-05-03","description":"Jamaica … | |
8:16 pm on Apr 28, 2010 (utc 0) I currently have a website that I am using SPRY Accordion on for the navigation. anu-d dot c o m When I try to add another javascript element the SPRY Accordion stops working and the javascript element I am adding does not … | |
I've got the following Problem while using linq with stored procedures: I convert the ISingelResult with AsQueryable() to IQueriable and then try to serialize the results with JSON.NET (James Newton Kings JSON serializer) but I alsways get a "The query results cannot be enumerated more than once" Exception Any Help … | |
Hi Been trying to use the json_parse function from the json.org website - looking for a link to a tutorial (or a short example) to show how i would use it to cycle through a list of responses - in this case im returning a JSON object with an id … | |
Hi, I want to send three text box values to server using jquery ajax. problem is that, i dont know the exact syntax to send three data. When i try sending one data(also change no.of parameters to one at server side method), its going good but when i try to … | |
In order to make sure my site works for a user I need to check that both JSON and XMLHttpRequest() are defined as objects by their browser. Rather than if/else I thought I'd use the ternary operator:[CODE=javascript]condition ? true : false.[/CODE] I tried the following and it doesn't work correctly. … | |
So I am creating a Lockerz program using Visual C++. I have created a few buttons and the web browser thing. It all works great. Accept, when it gets to a page that play a video, I get this error: [CODE]An error occurred in a script on this page Line: … | |
hello guys! i'm quite new here and i'm probably posting this on the wrong place, but hey, here goes nothing! :P so, i have this lovely XML (not!) that was obtained through a yahoo pipe, and had a JSON decode, in order to transform it in a XML that could … | |
here I have code in python and now I want to transfer it in Java. import logging import urllib import re from waveapi import events from waveapi import model from waveapi import robot from waveapi import document from django.utils import simplejson from google.appengine.api import urlfetch def OnDocChanged(properties, context): #Get Contents … | |
Hi all. I have the following form: [CODE=html]<form id="registrationForm"> <input id="forename" type="text"></input> <input id="surname" type="text"></input> <input id="emailAddress" type="text"></input> <input id="password" type="password"></input> <input id="confirmPassword" type="password"></input> <input id="agreeToTerms" type="checkbox"></input> <input id="clickToRegister" type="button" onClick="javascript:SpeakAtServer(FormToJson('registrationForm'))" value="Register"></input> </form>[/CODE] ...with the following JavaScript... [CODE=javascript]FormToJson = function(sourceElement) { var JsonToServer = new Object(); if (document.getElementById(sourceElement).childNodes) { var … | |
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!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 id="Head1" runat="server" > <script type = "text/javascript" src = ""> function click() { new Ajax.Request('Handler.ashx', { method: 'get', onSucess: function transport() { var response = transport.responseText(); var Obj = response.evalJSON(true); for (i … | |
hi i wrote a code for login. it uses xhtml, ajax and php. the problem is when i try to login using firefox and chrome it does log me in and working fine but when i check it on IE8 and safari it does not log me in. it just … | |
![]() | Hi all. Am messing about with an ajax form at present which loops through records in a DB. This is my issue: I have a reset image link in my form (called "file_edit") which calls a 'confirm reset': [CODE]function reset() { if (confirm("Reset? You'll lose any changes!")) { document.file_edit.reset(); } … |
I built an ajax chat in one of my mvc website. everything is working fine. I am using polling. At certain interval i am using $.post to get the messages from the db. But there is a problem. The message retrieved using $.post keeps on repeating. here is my javascript … | |
Hello, I have started to work on a new implementation of a shopping basket, some of it is not working as I would like it to do and so, I thought I could ask for an advice. I have included the full HTML page in a ZIP attachment, it is … | |
I am working on a Project in j2me, in this i have to bring some data through Wap in Json format and display it on mobile using MIDP, when some button is clicked. Like when i click a button 'Ships Information', it should bring the data which is being displayed … | |
Hello everyone, I am trying to understand how a journey planner shows a map of user's journey. My idea is the journey planner will use the Google maps API or some similar service to plot the journey. There must be some type of XML data (JSON in case of google?) … | |
[b]Split From - [url]http://www.daniweb.com/forums/thread145927.html[/url] [/b] [QUOTE=anish.anick;698556]Hi Unfortunately we cant use these two suggestion since our requirement does not allow to do so. I was able to solve this issue using JSON. Thanks for the information..[/QUOTE] Hi, We are also facing the same issue. It will be great help if you … | |
Hi everyone, I want to convert [B]JDBC ResultSet to JSON Array[/B]. As u guess, direct casting isn't allowed.. How can I convert my DB data which is stored in ResultSet to a JSON Array? I'll be happy if someone can help me. Thanx in advance, With regards, Talha.. | |
Hi all, bellow i m writing the code snippet which gives the error as Microsoft JScript runtime error: Object doesn't support this property or method, what to do.I m trying for jqgrid in asp.net with MVC without creating Helper. [code] <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#list").jqGrid({ url:'/jqGrid/GridData/', datatype: 'json', mtype: 'GET', … | |
please help me how to check the validity of the json object if suppose the example of the JSON is as ({type:'AAU', msgid:1265033798233, sel:0, gadinfo:[{ adid:316,adprt:40.0,dur:10,ef:'2009/06/03 10:00:00',et:'2012/06/03 12:00:00',imgfurl:'vaccumcleaner_h.jpg' }]}) SO I want a script in python which would give me the validity of the object as the output by taking … | |
Hi all, I have a Windows Communication Foundation service which queries the Entity Framework and retrieves data in the form of Entity objects. I'd like to serialize these objects to JSON and send them back to the client to be interpreted in Javascript. It seems this is tricky, according posts … | |
Hi all, How to be professional in web development? any web technologies that we can use? Lists: Web Service, Web Cache, JSON, Ajax, Web Security, ... any thing else ? What books teach about these technologies all in one ? Thanks in advance! | |
Hi, I have the some php/mysql queries that pull data from my database and then echo out json_encode($rows);. In turn I display the data in my divs from JSON array's. My query is, I am trying to work out how to incorporate the an auto refresh on each of the … | |
Hi, i hava a dropdownlist in asp.net mvc page. On selecting particular select item from dropdownlist i have made an ajax post request to the controller method that returns me the result. Everything is working fine. i also get the required result. But the problem is how shall i extract … | |
hi got a bit stuck on this... [code] function changeDay(newDay){ ajaxCall('tools/refresh_booking_visual.php','start=' + newDay, function(x){ var pieces = eval("(" + x + ")"); document.getElementById('booking_visual').innerHTML = pieces.visual; document.getElementById('booking_date').innerHTML = pieces.date; document.getElementById('date_back').onclick = changeDay(pieces.backdate); document.getElementById('date_next').onclick = changeDay(pieces.nextdate); } ); } [/code] My code is to do with a calendar, when the user clicks … | |
I have my site [url]http://toddj.com[/url] which works fine in firefox 3.5, but hardly at all in IE8. I use tumblr and a custom theme that I built off of one of the original themes. I play around with it a lot so I think I've messed something up while doing … | |
Today went to use GD within PHP and a simple check of phpinfo() showed it wasn't installed, but running php -m show that both (pdo_mysql and gd) where installed. Does anyone know how to sort this? [INDENT] [CODE] - PHP Modules ctype curl date dom exif filter ftp gd <-- … | |
I have the following in "home.html": [CODE=html]<html> <head> <script type="text/javascript" src="sandbox.js"></script> </head> <body onload="compatibilityCheck();"> <div id="content"> <p>You need to enable JavaScript to use this site</p> </div> .....[/CODE] where "sandbox.js" is: [CODE=javascript]function compatibilityCheck() { var compatibilityCheck = new compatibilityCheck; compatibilityCheck.browser; compatibilityCheck.cookies; } var compatibilityCheck { browser : function() { switch(navigator.appName) { … | |
Hi great ones, i have a form that i save employees photos to server and URIs to DB. Doing some tests yet. I can save in the server without no problem. the javascript callback function aint being fired .. dont know why; below is the code.. i appreciate any help … | |
[CODE] <?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('murali',$con); $message = ''; $error = array(); $select=mysql_query("select * from registration where username='$_REQUEST[username]'"); $taken_usernames=mysql_fetch_array($select); // main submit logic if (@$_REQUEST['action'] == 'register') { $resp = check_username($_REQUEST['username']); if ($resp['ok']) { $message = … | |
hello, I am S L O W L Y working through learning/writing a JS project. here is the core issue.: [CODE] var pt =<? echo json_encode($prt);?> alert(pt) // for diagnostic purposes [/CODE] json is flattening the PHP array to be used in the script. However, the alert shows me that … | |
In this the JS Codes (in the code tag)are not working only in this page can any one help me on this <!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"><!-- InstanceBegin template="/Templates/main.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Luxmi Lanka</title> <!-- InstanceEndEditable … | |
This is my codes [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" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="javascript" type="text/javascript" src="js/mootools.js"></script> <script language="javascript" type="text/javascript" src="js/getchqno.js"></script> </head> <body> <script type="text/javascript"> function buildSelect(select, options) { var select = $(select); select.empty(); options.each(function(item) { if($type(item) != "array") { item … | |
I have found Javascript to be the most difficult language to find useful and CORRECT info on. Afterr working for several hours looking at various sites, I'm still somewhat stumped. All I know at this point is that these is a difference in the array formatting between PHP and JS. … | |
I'm trying to retrieve values from a database and encode them as JSON for another script to grab. I'm doing this like this: [CODE]for($i=0; $i<7; $i++) { $nextDay = $i+1; $startDateTime = date("Y-m-d H:i:s", strtotime("-$i days")); $endDateTime = date("Y-m-d H:i:s", strtotime("-$nextDay days")); $query = "select count(*) as cnt from app_instances … | |
Hi, I'm new to this thread. I need someone to help me out in deciding the following:- I'm creating a asp.net web application that only displays a lot of data from Oracle 10g database tables. These data or the informations shown on the webpage will be changing very frequently and … | |
I am very new at javascript and programming in general. I am using the following function and 9 more labeled "doAjax1" through "doAjax10" respectively. I have an html file called "ch2_xhrMockServer.htm" that I am calling 10 sets of json data from with the name of each being "response1" through "response10". … | |
Hello, I want to use Graphviz to produce dynamic organizational chart with php array or json. Here is my idea: Use php array or json get the data from mysql database, then save the data to dot file, and then produce the dynamic org chart using pear Image_graphviz and implement … | |
[CODE] <?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('murali',$con); $message = ''; $error = array(); $select=mysql_query("select * from registration where username='$_REQUEST[username]'"); $taken_usernames=mysql_fetch_array($select); // main submit logic if (@$_REQUEST['action'] == 'register') { $resp = check_username($_REQUEST['username']); if ($resp['ok']) { $message = … | |
<?php session_start(); //Check User Session include ("includes/check_session.php"); include 'includes/config.php'; $current_module = 'MATERIALREQ'; //$related_modules = array('BIDDINGENTRY','PIRRAISING','POLIST','BIDDINGSELECTION','GRV'); include ('includes/check_acl.php'); //include 'includes/config.php'; include 'includes/sqlquery.php'; include 'includes/message.php'; $valid = ''; $current_user_id = $_SESSION['associate_id']; //if the session value is present, set whether the last transaction is stored or not if (isset($_SESSION['mrmsg']) && ($_SESSION['mrmsg']!='')) { $valid … | |
I get an error trying to parse som XML. The error is [icode]System.Xml.XmlException: Root element is missing..[/icode], and I can't understand why. Here is the code I run: [code=C#] MemoryStream xmlStream = new MemoryStream(); StreamWriter xmlStreamWriter = new StreamWriter(xmlStream); String xml = "<html>\n<body>\n\n<h1>My First Heading</h1>\n\n<p>My first paragraph.</p>\n\n</body>\n</html>"; xmlStreamWriter.Write(xml); xmlStreamWriter.Flush(); XmlReader … | |
Hello everyone, first of all, I dont know if this should be in the java or the jsp forum. I put it here since is a web related question. I am making a report module for a web page using java. For this I will use a jquery plugin called … |
The End.