Page 2 of 2

Execute http get from javascript?

Posted: Tue Mar 31, 2015 11:01 am
by Egor Kotov6832188

Hello,

Apperyio('SELECT_MENU_LIST_NAME').selectmenu()[0].selectedOptions

where SELECT_MENU_LIST_NAME - name of your select menu component
In my case it was:
Apperyio('mobileselectmenu_9').selectmenu()[0].selectedOptions


Execute http get from javascript?

Posted: Fri Apr 03, 2015 2:39 pm
by jmd2004

This worked for me....

var my_phone = localStorage.getItem("phone");
var my_agent_id = localStorage.getItem("agent_id");
var my_wait_to_callback = Appery("callback_input_time").val();

$.get( "https://localhost.com", { var1: "foo", id: "7113", seq:"03", group: "18", p1: "bar", qphone: my_phone , p3: my_agent_id, p4: "not_now", p5: my_wait_to_callback} );


Execute http get from javascript?

Posted: Fri Apr 03, 2015 2:43 pm
by jmd2004

One more question related to this topic.

How would i code a dynamic email link using the same method.

var my_agent_id = localStorage.getItem("agent_id");

"mailto:a href="mailto:your@email.address" rel="nofollow"your@email.address/a?subject=Comments about the color blue"


Execute http get from javascript?

Posted: Sat Apr 04, 2015 1:34 pm
by jmd2004

Thanks again for your help! Any help on the above would be greatly appreciated!


Execute http get from javascript?

Posted: Mon Apr 06, 2015 2:12 am
by Yurii Orishchuk

Hello,

Could you please clarify what you want to implement?

Regards.


Execute http get from javascript?

Posted: Tue Apr 07, 2015 6:11 pm
by jmd2004

Hi Yurii,

I would like to have the following:

  1. user clicks on a button to send an email

  2. users local email client opens up

  3. the subject of the email is a local storage variable

    Thanks!
    James


Execute http get from javascript?

Posted: Tue Apr 07, 2015 7:14 pm
by jmd2004

I figured it out...

var my_id = localStorage.getItem("agent_id");
var email = "a href="mailto:bob@example.com" rel="nofollow"bob@example.com/a";

window.location.href = "mailto:" + email + "?subject=" + my_id;