Laravel send a request after a fixed time - ajax

im trying here to show a rating modal after 30min of the start of the appointement if the appointement duration is 30 , when the user clicks the button it sends him to an external page (google meet) after that i need to show a modal in the dashboard showing rate of the call is there any way i can do that from backend(laravel) or is there an api from google meet i can use ? i tried with javascript it works fine but i need it to be backend . Thanks for any help
i tried with Carbon::addminutes from start time but i dont know how to get the response from the front

The best way is to create a job, check out https://laravel.com/docs/9.x/queues#delayed-dispatching

Related

how to create simple bookmarker firefox addon

I don't know why creating firefox addons is difficult. Maybe it's not my duty to create a new addons for company.
After 2 week in searching how to create firefox addons, I should say I don't know.
We need a simple addons for sending url of visited site to our server with a little information.
It should have a form with some fields : title, description and a selection area with submit button.
When clicking submit it should send these information with url of this page to our server.
How can I do this?
You will want to use page-mod - https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/SDK/High-Level_APIs/page-mod
You should insert a content script, which will port message back to your main.js telling it the information of that web page. Docs on port - https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Content_Scripts/using_port#port.emit%28%29
When your main.js receives that message, then you would use the request module to send it to your server. https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/SDK/High-Level_APIs/request
Now to get started follow this very simple guide to make your first addon - https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Getting_Started_%28jpm%29

ClickFunnels integration with rails2 app

Is there a way to create a page in ClickFunnels(https://www.clickfunnels.com/) website and when I submit that page, I need to store the form details in my rails app(into a particular table). Which means I want to display my database in the clickfunnels integrations list. I googled hours but couldn't get much information on this.
can anyone suggest me if you have done this. A reference link also much appreciated.
We couldn't find any way to do this inside clickfunnels itself, if there is a easy way to add custom systems to their integrations I too look forward to seeing those answers. Until then, here's what we did: We just put our custom form on their page and used ajax to send it back out the end point in our system it needed to hand that data too.
Then, since we also needed to submit the same info to click funnels, we build a fake CF form(I think we actually put one on the page, but used CSS to hide it, then filled it out dynamically from our custom form), and call submit on that form, sending the user through the normal click funnels submission process and sending them to the next page in the funnel.

profile picture upload laravel & foundation framework

I have a registration form completed and would like to add a profile picture upload. Once the user clicks the browse, he can select the photo. Then he clicks ok/apply/ok and then the photo is reflected in the thumbnail area without page refreshing.
Once the user is happy with all fields input he can submit the form and with it the photo of course.
Anything that does this exists out there already? If not, please provide guidance on how to establish this feature.
Thanks,
I'm not aware of a ready made solution for this but there probably is something :-)
However, with Laravel this is beautifully simple. You've tagged your question ajax but I'll answer this assuming you're going to use an old fashioned server round trip (i.e a form submit).
1) In your template, add a file element to the form. http://laravel.com/docs/html#file-input
2) Add some javascript to the page that detects when a file is selected and shows the preview. Extensive tutorial here: http://www.html5rocks.com/en/tutorials/file/dndfiles/
3) In your controller, handle the file using the Input facade. http://laravel.com/docs/requests#files

how can we develop ajax application with GWT UI-Binder

As per my project requirement i want to develop an Ajax application with GWT Ui-Binder.. for achieving page refreshing automatically while getting content from database..
Remember: withOut click Refresh button (or) any mouse motion.If u aware about this task...can you please give me with any related exmaple..
if you want to refresh automatic, so you may have any condition where you get event of getting data from database like rpc came on success method etc.. then simply call Window.Location.refresh(); there.

Asynchronous updating / AJAX in Django 1.4

Hi I am still new to Django and have not worked with Ajax before.
I am building an app where two players are able to chat, so it's basically a chatbox and I want the page to update for one player when the other player enters text on their page. I was wondering if anyone had any good resources for this type of functionality?
Thanks so much!
You might want to try html5 websocket.
For JavaScript and ajax, refresh the page at a timed interval. Or better fetch new messages via an ajax call and append to the DOM.

Resources