Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Any help would be greatly appreciated!
Hello,
Please follow this tutorial: https://devcenter.appery.io/documenta...
You can use the same service for sending emails (sendgrid)
that looks like a jquery tutorial. Any info for bootstrap/angular?
I asked about email, but i'm specifically interested in how to run javascript functions
for example in jquery the following works
var my_phone = localStorage.getItem("phone");
var my_agent_id = localStorage.getItem("agent_id");
var my_wait_to_callback = Appery("callback_input_promise_time").val();
$.get( "[url=https://acme_test.com/do/Spawn.aspx]https://acme_test.com/do/Spawn.aspx[/url]", { scriptName: "test_script", bus_no: "1101", scriptID:"12345", skill_no: "4567", p1: "click_to_dial", p2: my_phone , p3: my_agent_id, p4: "not_now", p5: my_wait_to_callback, Guid: "xxxx"} );
How would i run this javascript in angular/bootstrap?
any advise would be greatly appreciated!
Hello,
In common way to run JS function in angular you need:
1 specify function in scope.
Details: http://prntscr.com/85f240/direct
2 invoke this function on some event.. For example for button click you can activate this component then add "ng-click" attribute with value "yourFunction()"
Details: http://prntscr.com/85f2z9/direct
Regards.
Hi Yurri,
It worked! Thanks for your advise on how to execute the java script function.
My Function to send an email opened my email client as expected.
// Function code
var my_agent_id = "12345678";
var email = "a href="mailto:test2@test_email.com" rel="nofollow"test2@test_email.com/a";
window.location.href = "mailto:" + email + "?subject=" + my_agent_id;
I tried a 2nd function but i think it uses jquey. Do I need to use just javascript in the functions or can I use a 3rd party lib like jquery?
how would i do an http get request
$.get("https://home-server.com/form/submit.aspx", {
script: "dial_phone",
bus_no: "123456",
scriptID: "111",
skill_no: "18",
p1: "dial",
p2: "xxxxxxxxxx",
p3: "id",
p4: "not_now",
p5: "my_wait_to_callback",
Guid: "guid"
});
The above code works in the query mobile app that i built using appery.io. How can i use the same code with an angular/bootstrap app? can i import a jquery library?
Can i use a jquery for the above or do i need to use pure javascript?