I do not use this but a quick search and this is one of many suggestions
https://www.youtube.com/watch?v=f_3wc4UgqTI
NOTE: I did not play the video so I do not know if it is PHP related or if based on PHP integration but, I have learned if even if it is based on any other language one can...
I have found that when direct call to the script works and not when called via AJAX the root cause normally is a fatal error in PHP due to missing parameters or http returns error 500
Your code checks for 200 to show image - What if it is not 200? Use F12 to look under the hood and see what is...
Given the code
$.ajax({
url: "_apiListCarriers.php",
type: "POST",
data: "a=getList",
success: function(response) {
$('#processProgressBar').css('display','block');
var objs = JSON.parse(response);
var n=getObjectCount(objs);
var count = 0;
while...
Sorry man but this is one funny question ...
It sounds like you are in over your head. You have, for some odd reason, gotten a job as an MIS guy and yet, you have no clue. This is what happens when companies hire one to supervise others where one knows nothing about what others are doing and...
I am sure you can figure that what you are asking for is already available via jQuery, BootStrap and other frameworks ... For PHP itself there are numerous options as well.
I used to write JavaScript just to learn it and refused to use jQuery or anything out there till I figured that fighting...
Solved it!
I found the answer here:
https://www.digitalocean.com/community/tutorials/how-to-rewrite-urls-with-mod_rewrite-for-apache-on-ubuntu-16-04
In my case, I did the following (I run Ubuntu 16.x.x)
1. edited /etc/apache2/apache2.conf - I added
<Directory /var/www/html/api>
Options...
carlvic,
This is nothing complicated. The key here "where does the data reside" and is this accessible to your portal!?!
If you are hosting both within the same server (or even if remote), all you have to do is set your application query the database and the database to be accessible remotely...
After so many years of writing mostly procedural PHP code, I am at a point where I must step out of my comfort zone and write a RESFUL API.
Not a big deal, really, except that for the life of me, the endpoints are kicking my rear-end.
My problem:
if I define my URI to be api.sitename.com...
As usual, I post the question and shortly after, I come up with the answer ...
I also have
$( "document" ).ready(function() {});
listener and the originally posted snippets triggers it after the automation; goes to show that you learn something new every day.
I solved it by setting a...
Can you please tell me why this causes my page to get caught in an infinite loop?
$( "#menu-team" ).click(function() {
$( "#main-container" ).animate({
opacity: 0.25,
left: "+=50",
height: "toggle"
}, 3000, function() {
//...
Every time I post a question here - I continue searching, digging and testing. Often, I find a solution and, when that is the case, I come back to my post and reveal the answer.
So, here is what I did and solved my problem - Changed
// Loop through $_POST and transfer fields::values to a...
So, after much reading and suggestions, I am trying to make a move from "procedural" style coding to OOP and instead of using mysqli I am giving PDO a shot.
Thing is, after hours of looking at my code, reading and comparing .... I cannot see what is wrong with it nor why I get no error and yet...
feherke,
I opted to use .colorbox() instead. Get the same outcome a lot simpler.
Once I opted for .colorbox(), done in 20 minutes!
Thanks,
--
SouthBeach
http://www.fp2php.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
OK, I have this
// Dialog Link
$('#dialog_link2').click(function(){
// Dialog
$('#dialog').dialog({
autoOpen: false,
width: 678,
height: 450,
classes...
Solved!
Found the answer here:
https://www.sitepoint.com/easy-responsive-css-grid-layouts/
--
SouthBeach
http://www.fp2php.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
@ChrisHirst,
I tried that but still same problem. What I am looking for is to get two images side by side as the view port reaches 720 or less.
I am doing OK with a single image a 500 or under and three image at 800 or better.
--
SouthBeach
http://www.fp2php.com
The good thing about not...
Not sure what you mean "use of some library".
IFAIK, this is part of CSS3 standard ...
http://www.w3schools.com/cssref/css3_pr_flex.asp
--
SouthBeach
http://www.fp2php.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
I am messing around with responsive design - lol - I am not a designer at all, but I like to learn and I often find myself in a pickle!
Any ways, look at CSS "flex". This is extremely friendly and as the name hences, flexible in turns of centering and expanding containers on the view port.
I...
I have been playing with this - and for the life of me I cannot get the <div> to ling up two across.
Here is the complete code. Can you spot why am I having this problem?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.