Skip to content
Advertisement

Tag: javascript

Unusual data grouping / transformation

I’m struggling with an algorithmic problem how go transform or group data to get specified output. My input is a bunch of messages in given order (from newest to oldest): Desired output after transformation: So as you can see, each occurrence of the is_author parameter creates a new group that collects messages from this author ? Is there any efficient

Return original value jquery / php

I am using this code to run my extra button. It changes original price value to custom value. Is it possible to click again on button named „afterclickbutton“ to get price with original value – meaning get regular price, and reset whole thing, so it could be possible to click again and get custom value, then click and get regular

How to save current state of html body php

I have a html website with Sortable.js. I want to save the current state of the body when a user rearranges the list and clicks a save button. I don’t want it to save to local storage but directly to the hosted file, replacing the body html with the new rearranged version. I believe what I’m trying to achieve is

Output PHP already encode to json, and send to javascript to be json, not working

I’m do output with json_encode to sending to javascript, with this code. so output show like this, [{“id”:”121353568″,”name”:”Baju Casual – Black”},{“id”:”556903232″,”name”:”Tas LV – Red”},{“id”:”795953280″,”name”:”Sword – Wood”},{“id”:”834032960″,”name”:”Scooter – Iron Plate”}] and code javascript like this so obj.id its not working, output show undifined. Answer I use ajax calls when I want to call a Php file and get a response from

publish connected webpages project [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 7 months ago. Improve this question I built a web-based GUI, and I used localhost/its_name to view and develop it. I need to publish it to someone

Advertisement