Skip to content
Advertisement

Tag: php

How to show a popup modal in codeIgniter?

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

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

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

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)

Advertisement