884 Topics

Member Avatar for
Member Avatar for logicslab

Dear Friends, I have a string with structure $selectedTime = "2017-02-10 07:00,2017-02-10 08:00,2017-02-11 09:00"; I need to convert it as {"2017-02-10":[{"start":"07:00"},{"start":"08:00"}],"2017-02-11":[{"start":"09:00"}]} any idea ? please advise asap Thanks Anes

Member Avatar for logicslab
0
664
Member Avatar for SimonIoa

Hello i want to pass the user id (uid) from the home page to a user Details Page. Because i display multiple users on my home page i don’t wan to pass the user session id (as given by the `JSON.parse(localStorage.getItem("userData"));` ), i want to click on the name of …

0
588
Member Avatar for seularts

I have 2 files: apix.php and crud.php. I am trying to convert the fetched data from php to a jason print. The issue is that the function does not the results for me to parse in the next section of my code. The CRUD.php: class crud { private $db; function …

Member Avatar for seularts
0
456
Member Avatar for screenedcreamy

I have this use case where in I would need to dynamically create java objects out of json input and insert the data into sql tables. I tried using gson APIs but unfortunately we need to specify strucuture of that class (Car.class). Is it possible to dynamically achieve the above …

Member Avatar for Tarek_2
0
369
Member Avatar for davy_yg

Hello, There is something that confuse me. Check this site: www.fresway.com When I try to login. There is this error appearing: JSON.parse unexpected character at line 1 (I am using speedy wifii) If I change using my cell phone hotspot. Then I am able to login. This is strange why …

Member Avatar for ryantroop
0
196
Member Avatar for Kenny_4

Hi everyone, I'd like to ask for help modeling my JPA entities and their relationships with each other. I use more abstract class names as class names in my project[](https://phonty.com/), so I'm going to translate that into a "more tangible" example. I start from a festival where several gigs take …

0
176
Member Avatar for SimonIoa

Hello i have a problem with my Ionic App. I am using typescript files. I am getting console log `No Access` that means there is a problem with `resposeData`. Any hint? I am really stuck home.ts file import { Component, ViewChild } from "@angular/core"; import { NavController, App, AlertController } …

0
415
Member Avatar for gentlemedia

I'm using `file_get_contents()` to parse data of a JSON file within a `foreach()` loop onto my page. <?php $url = 'data/gigs.json'; $data = file_get_contents($url); $gigs = json_decode($data, true); foreach ($gigs as $gig) { echo '<tr>'; echo '<td><time>' . $gig['date'] . '</time></td>'; echo '<td>' . $gig['event_venue'] . '</td>'; echo '<td>' . …

Member Avatar for gentlemedia
0
342
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 Hex_1
0
6K
Member Avatar for patk570

Hey everyone, I have a JSON array that pulls data, its an immense amount of data that i use. It is a multilevel array eg: dateTime: 2018-12-04T10:30:45:222z comments:"" +Driver[0] [0] fname: John lname: Doe driverCode: DOEJ [1] fname: Mary lname: Smith driverCode: SMIMA more info etc I am trying to …

Member Avatar for ndeniche
0
3K
Member Avatar for patk570

I have a code that pulls a JSON response, and I need to compare times from now() and a previous when the timestamp was created. I am able to pull the info and have it display. However, when i try and get the comparison to work it just sits there …

Member Avatar for jkon
0
396
Member Avatar for SimonIoa

Hello i have a problem working with Camera on Ionic and i need some advice. I have installed both ionic camera and media capture plugins. I am using two scripts one to capture Video (Start Reocording) and one to capture a Photo (Take Photo) I am getting the errors displayed …

Member Avatar for SimonIoa
0
2K
Member Avatar for davy_yg

Hello, This is Laravel. After inputting the profile_info I wonder why after checking the dd($here) the result remains the same. I expect it to change the same just like the value that I input. setting.blade.php <div class="setting-box profile-open"> <form role="form" id="form_update_profile_info" method="post" action="{{action('AjaxController@postUpdateprofileInfo')}}"> <div class="form-group"> <div class="col-group"> <textarea style="height: 150px;" …

Member Avatar for pty
0
267
Member Avatar for SimonIoa

Hello, i am trying to do an Ionic app and i am getting an error. Any suggestion? Runtime error this.file.documentsDirectory is null [194]/HomePage.prototype.startRecord@http://localhost:8100/build/main.js:80:13 View_HomePage_2/<@ng:///AppModule/HomePage.ngfactory.js:36:19 handleEvent@http://localhost:8100/build/vendor.js:13608:132 callWithDebugContext@http://localhost:8100/build/vendor.js:15093:39 debugHandleEvent@http://localhost:8100/build/vendor.js:14680:12 dispatchEvent@http://localhost:8100/build/vendor.js:10057:16 renderEventHandlerClosure/<@http://localhost:8100/build/vendor.js:10671:38 decoratePreventDefault/<@http://localhost:8100/build/vendor.js:36353:53 F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15649 onInvokeTask@http://localhost:8100/build/vendor.js:4973:24 F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15562 F</c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:10815 F</h</e.invokeTask@http://localhost:8100/build/polyfills.js:3:16787 p@http://localhost:8100/build/polyfills.js:2:27646 v@http://localhost:8100/build/polyfills.js:2:27893 home.html <ion-header> <ion-navbar> <ion-title> Sound Recorder & Player </ion-title> </ion-navbar> </ion-header> <ion-content padding> …

Member Avatar for SimonIoa
0
2K
Member Avatar for patk570

Hey everyone, I have a script that does an API call, the results are displayed in a json array, but i am trying to break them down into HTML tables here is my code var deviceId = ""; api.call("Get", { typeName : "DutyStatusLog", search : { deviceSearch : { driver …

Member Avatar for rproffitt
0
5K
Member Avatar for Sammy_1

I am literary about to bleed...I have a single controller that will accept POST request from an external domain. Once the post data arrives (usually a number or a date), it returns json data. The problem is CORS error in firefoz and chrome. Only that controller is going to be …

Member Avatar for Rupsena
0
11K
Member Avatar for erum

i write certain piece of code using mvc 4 and jquery and jtable ,but data is not visible in grid ,only blank grid is present , (No data available!) although i have updated all references of jquery in vs 2012 , action method is showing 3 records at quick watch …

0
168
Member Avatar for erum

can any one help me how to pass model object from view to controller using ajax .i have below code but not working.i am getting null in EmpAddType .even i selected any thing from drop downlist <script> function GetFilter() { var employeeAddress = { "EmpAddType": $("#drop1 option:selected").text() } alert($("#drop1 option:selected").text()); …

0
197
Member Avatar for Mohammed_44

//The php section of the code <?php function getJSONFromDB($sql){ $conn = mysqli_connect("localhost", "root", "","rent"); //echo $sql; $result = mysqli_query($conn, $sql)or die(mysqli_error()); $arr=array(); while($row = mysqli_fetch_assoc($result)) { $arr[]=$row; } return json_encode($arr); } $jsonData= getJSONFromDB("select Pic from Display"); $jsn=json_decode($jsonData); //for loop to retrieve rows from database for($i=0;$i<sizeof($jsn);$i++){ $a=$jsn[$i]->Pic; //here is the main …

Member Avatar for network18
0
380
Member Avatar for annya

Hi, I have an app that worked very fine before Iam enabling the SSL to my domian name, I used an web url Ex: api.domian.com for getting detils to the app like login, result etc. some days before I have added an SSL (lets encrypt) the subdomian name suddenly the …

Member Avatar for annya
0
325
Member Avatar for Link_1

Error: The Remote Server Returned An Error 400 Bad Request I am using asp vb.net and instagram api also I am using Newtonsoft.Json -Version 10.0.3 I following below link as a tutorial but issue is I am converting code from c# to VB and I am getting an error: https://code.msdn.microsoft.com/Haroon-Said-e1d8d388 …

0
177
Member Avatar for davy_yg

Hello, I am receiving this error message while trying to process the following javascript - "Error, the configuration is failed to save". What might be wrong? How to troubleshoot the javascript? partial/setting.blade.php function onSave(el) { var parent = $(el).closest("li"); var form = $(parent).find("form"); var editel = $(parent).find(".edit_form"); var beforeText = …

Member Avatar for pixelsoul
0
289
Member Avatar for abdu_4

Hey guys, i need your help. I want to embed this JavaScript code in Html, but i don't know how. Can someone please help me? The Code is Below: var JavaScriptHighlightRules = function(options) { var keywordMapper = this.createKeywordMapper({ "variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors "Namespace|QName|XML|XMLList|" + // E4X "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" + "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" …

Member Avatar for pty
0
80
Member Avatar for SimonIoa

Hello, the functions are called in the XHR (status 200) but dont return anything as it should,. Even when i put an echo it doesnt return the echo. The path is correct example javascript function userDetails(uid,apiBaseUrl,baseUrl,public_username,msgID,groupID) { var encodedata=JSON.stringify({"uid": uid,"public_username":public_username,"msgID":msgID}); var url; url=apiBaseUrl+'api/publicUserDetailsTest'; ajaxPost(url,encodedata, function(data) { if(data) { some code.... …

Member Avatar for pty
0
282
Member Avatar for Var_1

Hi all, I had created a function updateprintingqc() that work like this 1. user will click on a clickable button to update the data 2.when user click on OK,the dummy data will be create based on the main data shown in below image's link https://drive.google.com/file/d/0B46VQHVMeBTNMzVodDRxZEw3dGs/view?usp=sharing When the user click the …

Member Avatar for arunmagar
0
2K
Member Avatar for michael.dewitt.716

I know this title is rather confusing, but here it goes. I have a PHP cURL request and the return is in a string. Normally i can easily echo specific objects from the JSON response, but i have never dealt with string returns. Here is my php <?php $url = …

Member Avatar for michael.dewitt.716
0
22K
Member Avatar for can-mohan

I am parsing below sample file in below code snippet. {"requestType":"INVOCATION", "hostName":"localhost", "serviceName":"bucky", "serviceType":"DISCRETE", "serviceParameters":"sampleData", "servicesList" :[ { "serviceName" : "ABC", "serviceParameters" : {"para1" : "value1", "para2" : "value2", "para3" : "value3"} }, {"serviceName" : "CBA", "serviceParameters" : { "para1" : "value90", "para2" : "value", "para3" : "value"} } ], …

Member Avatar for can-mohan
0
5K
Member Avatar for KaleBeatroot

hello everyone [{ "uid": "BR-M12068", "registeredDate": "Thursday May 11th 2017 03:56:37 PM", "file_path": "BR-M12068.pdf", "file_thumbnail_path": "BR-M12068thumb.png", "test_type": "Free", "title": "Medical Bills", "createdAt": "Thursday June 29th 2017 05:02:19", "chkTime": "Thursday June 29th 2017 05:01:53 PM", "chkoutTime": "Thursday June 29th 2017 05:02:29 PM" }, { "uid": "BR-M12068", /// first data "registeredDate": "Thursday …

Member Avatar for KaleBeatroot
0
225
Member Avatar for davy_yg

The result is ckeditor with browse server link next to image button but unable to see the file being browse: Object not found! www.roxyfileman.com/ index.php <html> <head> <meta charset="utf-8"> <title>A Simple Page with CKEditor</title> <!-- Make sure the path to CKEditor is correct. --> <script src="ckeditor/ckeditor.js"></script> <script> var roxyFileman = …

Member Avatar for davy_yg
0
2K
Member Avatar for samertaha

Hi, I have created a function that searches for a category in a category tree object and returns all the paths for it as an array of strings, please advice how I can improve it ? the result im getting now is : ["vehicles",["cars","mercedes"],["trucks","mercedes"],["motorcycles","BMW"]] i need it in one dimesional …

Member Avatar for samertaha
0
400
Member Avatar for Thomas_32

I have a JSON file, and I need to convert some of the entries into anchor tags. I think a regular expression is the way to go, but I'm terrible with them. I need to convert: "id":"1","template_name", into: "<a href='getTemplate?1'>template_name</a>", The text "id" is hard-coded, present in every instance where …

Member Avatar for rproffitt
0
429
Member Avatar for KaleBeatroot

Hello every One i have been trying this for a day but can't able to find out what i am doing wrong? Here Class proxy function which gives me access token and refresh token after user enter it's username and password by ajax request i send request to controller where …

Member Avatar for KaleBeatroot
0
3K
Member Avatar for Jon_7

I don't even know if I worded my question correctly, but here's what I have and here's what I'd like: I use an [attendance app](https://itunes.apple.com/us/app/attendance2/id536206472?mt=8) to track my basketball workout classes, and then I show the results on my site [here](http://www.50allstars.com/p/players.html). To achieve this, I send the csv provided by …

Member Avatar for Ella_3
1
859
Member Avatar for Kirielson

Hello, I'm having trouble posting JSON to a url using Flask, AJAX and Javascript. Essentially, I would code using a library [Jquery Sortable](https://johnny.github.io/jquery-sortable/) to create a sorted list. From that sorted list I want to post to the server. The problem is that the server does not recieve the JSON …

0
231
Member Avatar for t_thakar

Hi not sure if this is possible so wanted some guidance.. I have a database with 3 columns.. id, data,timestamp id is auto increment and data is json array and timestamp is unix timestamp.. the field I wanted to update was data but I wanted to replace just a part …

Member Avatar for cereal
0
280
Member Avatar for michael.dewitt.716

Hi everyone, i have a page that uses jquery ajax to get json from another page. However, instead of the ajax using sucess, it goes directly to error. I have a debug on the error to see what is the issue and i get "Parsing JSON Request failed." page 1.php …

Member Avatar for diafol
0
496
Member Avatar for Violet_82

Hi guys, I have a rather interesting problem. Basically my application has a javascript object literal in this format: var myObject = '{text:"my text 1", anotherProperty1:"This is another property1", anotherProperty2:"This is another property2", anotherProperty3:"This is another property3"},' + '{text:"my text 2", anotherProperty1:"This is another property1", anotherProperty2:"This is another property2", anotherProperty3:"This …

Member Avatar for diafol
0
571
Member Avatar for Amr_3

Greetings, I want to read on several topics related to the Web development and I hope that you can give me an advice on the best book in the range of books available for me in every topic. For sure no one read all these books to give a final …

Member Avatar for Cod_1
0
492
Member Avatar for Violet_82

Hi guys, I'm looking into the possibility of writing some javascript (or using an API of course) to be able to search a collection of PDFs and return the results in a Json format for processing (mainly displaying them back to the user). I've played around a little bit with …

Member Avatar for Mohamed_84
0
2K
Member Avatar for Krunal_3

Hello, I have implemented pagination in MVC application. when first time page loads, it works properly, when I click on paging then it makes AJAX call and bind the data in my HTML table from json response. but after AJAX call, pagination is working. once AJAX call fires, then pagination …

Member Avatar for The Diamonds
0
811
Member Avatar for Violet_82

HI guys, I seem to be having an issue declaring a json string. The original string I have is this: var jsonString = '{ "details" : [' + '{"text":"Lorem ipsum dolor sit amet, consectetur 0", "firstName":"Jack0", "surname":"Dee0", "moreInfo":"This is extra information"},' + '{"text":"Lorem ipsum dolor sit amet, consectetur 1", "firstName":"Jack1", …

Member Avatar for Violet_82
0
605
Member Avatar for double_cola

I have a form that creats a json array from user input data. Array ( [full_name] => First Name + Last Name [company_name] => Company Name [email] => Email [free_trial] => trial (Yes/No) [quota] => quota [contract] => 0 (0/1) [per_gb] => cost per gb [per_month] => contract length in …

Member Avatar for cereal
0
1K
Member Avatar for double_cola

Im trying to send an array using curl. I am brand new to curl. **How do I populate my array depending on form data?** I need full_name to pull data from the form. So email goes into email and company goes into company. Here is where I am right now. …

Member Avatar for double_cola
0
436
Member Avatar for SimonIoa

Hello i am getting an error TypeError: data is null i can't find the error. js <script> $(document).ready(function() { username='<?php echo $_GET['public_username']; ?>'; apiBaseUrl='<?php echo $base_url; ?>'; singleArtist(apiBaseUrl,username); }); function singleArtist(apiBaseUrl,username) { var html =''; var encodedata=JSON.stringify({"username":username}); var url=apiBaseUrl+'api/singleArtist'; ajaxPost(url,encodedata, function(data) { if(data.length) { $.each(data, function(i,data) { html += 'dddddd'; …

Member Avatar for SimonIoa
0
364
Member Avatar for Andera

I am trying to install Zend via a composer command in Linux. I am following the official Zend tutorial. And I am able to make a simple application, which is working perfectly. However, when I follow this tutorial's advice to use composer development-enabl e. But an CommandNotFound Exception is appearing …

Member Avatar for Daniel_69
0
395
Member Avatar for ravindra_5

how to user select spinner json through submit report for date to date and select user name how in androis studio

0
163
Member Avatar for davy_yg

Hello, I download free filemanager to integrate with TinyMCE. I am trying to customize another extension to upload to Roxyfilemanager. Can anyone help me with the customization? Please read this quickly: http://www.roxyfileman.com/custom-integration and Here is my custom.js: function FileSelected(file){ /** * file is an object containing following properties: * * …

0
140
Member Avatar for phphp

Sir I have these codes <html> <head> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery-ui.js"></script> <link rel="stylesheet" href="css/jquery-ui.css"> <script type="text/javascript"> $(function() { $( "#coding_language" ).autocomplete({ source: 'autocomplete.php' }); }); </script> </head> <body> <div id="wrapper"> <div class="ui-widget"> <p>Code <input type="text" id="PT"></p> <p>Party <input type="text" size="40" id="coding_language"></p> </div> </div> </body> </html> and autocomplete.php has …

Member Avatar for phphp
0
1K
Member Avatar for Geethu_2

import urlparse import urllib import urllib2 from bs4 import BeautifulSoup from collections import Counter import re import Tkinter from Tkinter import * import ttk from tkFileDialog import askopenfilename import logging import tkMessageBox import tkFileDialog import csv import json import os import time import collections import shutil import thread from PIL …

0
210
Member Avatar for Dani

I'm working on building a Swagger JSON file for my API and I'm looking for a free tool online to test and validate it. Perhaps even an online tool that lets me upload my swagger JSON and builds out documentation from it where I can test it out ... as …

Member Avatar for Dani
0
298

The End.