I have written a javascript click function to a class to display a popup when the relevant class be clicked. When i just put an alert it gives me the correct output. but the popup modal is doesn’t show up Model I am using following model function And i am calling that method in the following controller funtion Controller Here
Tag: php
Getting data out of a database with XMLHttpRequest, PDO, JSON, PHP and JavaScript
So following my last question I want to use the value that is submitted in the input tag to get the matching id in my database. I have created two files for it but I can’t figure out how to link them. Also note I made a database with a few values(id, firstname, etc.) and when the user fills in
Easiest way to get list of files in the server directory
I need to get array of all images (or simply of all files) in directory (e.g. www.example.com/images/). I prefer to use JavaScript but it’s hard to make. So should I use PHP, meybe? Could you please help me – I’m not good at this. Thank you very much! Answer Javascript cannot fetch all files on a server, as it is
How to autosubmit a form in JS when a field reaches a number of characters? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question What better way to make a form having a autosubmit when a field is completely filled? I need him to
Google charts from MySQL
I have tried for several hours to get MySQL data in a Google charts but I can’t wrap my head around how to make a working page from the examples I’ve come across on the internet. To start fresh I took a example from Google charts and manually filled it with data. This gives me the graph I want to
Best way to scrolldown onpageload
I have the following code: The previous code attempts to scroll down after page loading. Is there any problem, as it doesn’t work for me? Answer instead of window.onload use because window.onload is fired when entire page load and document.ready is fired when DOM loads and use srcollTo instead of scroll
Time and events in soundcloud embed
How can I get the duration of a track on SoundCloud in JavaScript or PHP? Can I use this duration with JavaScript events? Answer Working JSFiddle: https://jsfiddle.net/aj3Pw/1/ HTML: JS: Relevant documentation: https://developers.soundcloud.com/docs/widget#methods
plot lightning data in Google maps
I’ve got a weather website, which misses lightning data. I found a data source from Blitzortung.org wich contains the Lat, Lon and time info of a lightning strike. How do I get this on Google Maps? I want the data to be realtime, just like on blitzortung.org. It should be displayed on the map, preferably as a red or yellow
How to await the ajax request?
I am trying to write a JS code that will cancel the “btn_submit” buttons .onclick event if the given number already exists in the database. I use AJAX to query the DB for the given number and to determine if the should send the data to a .php site which will upload the question. To determine this I need the
Bootstrap3 toggle switch with ajax update to mysql
Hello and thank you for looking. I have the slick new toggle effect for the checkbox (boostrap3) in place. I would like to update my database each time the toggle is clicked. A simple On or OFF entry will be perfect. Ofcourse it needs to be without a page refresh. HTML: Javascript/Ajax: (I added a div to show my results)