Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7929515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:06:18+00:00 2026-06-03T20:06:18+00:00

Looking to place a button that triggers a simple SMS script on my Tropo

  • 0

Looking to place a button that triggers a simple SMS script on my Tropo account using jQuery and an Ajax get request. The button does not need to open anything, but simply trigger the Tropo script (JS) to send an SMS.

The URL with token given on Tropo is: http://api.tropo.com/1.0/sessions?action=create&token=foo

The about URL when triggered send an SMS saying: “Dinner’s ready”.

I have a button in html: Dinner

In my HTML I’m linked to an external js:

$("#myButton").click( function(e) { 
  e.preventDefault(); 
  $.get("http://api.tropo.com/1.0/sessions?action=create&token=foo", function( data ) { 
    console.log( data ); 
  }); 
}); 

This does not succeed, and does not fire any console errors. Would love some insight.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:06:20+00:00Added an answer on June 3, 2026 at 8:06 pm

    I think you are trying to get data from a cross-domain service, according to same origin policy you can’t do so. You can try like this:

    $("#myButton").click( function(e) { 
      e.preventDefault(); 
      $.ajax({
        url: 'http://api.tropo.com/1.0/sessions?action=create&token=foo',
        dataType: 'jsonp',
        success: function(data) {
            console.log( data ); 
        }
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a sound algorithm that would randomly place a given number
I'm looking for a JQuery-style javascript/CSS control that will allow the user to drill
I'm looking for a place to hook some code to programmatically create, size and
I am looking for a place where I can download a bunch of CSS
I'm looking for some advice on the best way to provide a single place
MSSQL 2008 Maybe i'm just looking in the wrong place. Here's the scenario: We
I'm looking for a good tutorial/article that explains the exact sequence of events that
My Basic Goal A Rails app that can load new content via Ajax while
I have seen many css switchers which place a button allowing the user to
I am using CoreDateBooks and the Recipe samples as style guides, but also looking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.