DLH001 Posted July 16, 2014 Report Posted July 16, 2014 Hi! I have a problem of my virtual airline. I can't remove bid in my page. I double click and I have a white page. It's very important.for me. But in the admin, I can delete the bid pilot. Thx ------------------------------------------------------ Sorry for my english, I'm French Quote
tweatherford Posted July 31, 2014 Report Posted July 31, 2014 Hello, Does adding a bid work properly? If so that narrows down the problem. -Tim Quote
ethnicfsx Posted December 6, 2015 Report Posted December 6, 2015 Hello Probably your problem is same that me, you forgot form and input field for send post value ? Quote
st852 Posted September 13, 2017 Report Posted September 13, 2017 On 2015/12/6 at 4:26 PM, ethnicfsx said: Hello Probably your problem is same that me, you forgot form and input field for send post value ? How to deal with Quote
Moderators ProSkyDesign Posted September 13, 2017 Moderators Report Posted September 13, 2017 On 16/7/2014 at 11:28 AM, DLH001 said: Hi! I have a problem of my virtual airline. I can't remove bid in my page. I double click and I have a white page. It's very important.for me. But in the admin, I can delete the bid pilot. Thx ------------------------------------------------------ Sorry for my english, I'm French that is problem with jquery (conflict). Can you check in your browser console? Quote
Karamellwuerfel Posted June 6, 2019 Report Posted June 6, 2019 Hey there, I've the same issue and implemented jquery on the page. @ProSkyDesign @DLH001 What was the solution? My browser (chrome) doesn't show anything in the console. Thanks! Quote
Moderators ProSkyDesign Posted June 9, 2019 Moderators Report Posted June 9, 2019 On 6/6/2019 at 6:30 PM, Karamellwuerfel said: Hey there, I've the same issue and implemented jquery on the page. @ProSkyDesign @DLH001 What was the solution? My browser (chrome) doesn't show anything in the console. Thanks! Hey!, I was out of vms projects because I was very bussy with Others projects, send me a PM with the url of your site and I’ll help you. Quote
Karamellwuerfel Posted June 11, 2019 Report Posted June 11, 2019 (edited) Hey, I found a solution: The problem is, the function "removebid" in the core/modules/Schedules/Schedules.php is waiting for a POST request but no post request is send by the page of my bids. I simply wrote a jquery script to send an ajax post request to the function and it works. I pasted script into the schedule_bids.php. Just adding a fadout to the removed bid and that's it The javascript/jquery script: <!-- REMOVE BIDS HELPER - START --> <script> $(document).ready(function() { $(".deleteitem").dblclick(function() { var bid_id = $(this).attr("id"); console.log(bid_id); $.ajax({ type: "POST", url: "<?= url('/schedules/removebid') ?>", data:{ id: bid_id }, success:function(response) { $('#bid'+bid_id).fadeOut( "slow" ); $('#message').html('<div class="alert alert-success" role="alert">Flugbuchung wurde gelöscht.</div>'); }, error:function(){ $('#message').html('<div class="alert alert-danger" role="alert">Flugbuchung konnte nicht gelöscht werden.</div>'); } }); }); }); </script> <!-- REMOVE BIDS HELPER - END --> Kind regards Edited June 11, 2019 by Karamellwuerfel Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.