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 8087607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:49:53+00:00 2026-06-05T18:49:53+00:00

Basically the above, I need my mobile application (which is built with Trigger) to

  • 0

Basically the above, I need my mobile application (which is built with Trigger) to send a Post request to a remote server. Specifically, the application generates GPS coordinates and a timestamp and sends the data to a server (which is built with Ruby on Rails), which takes the data and stores it. I’m using the Zepto library to send it. How do I go about achieving this?

<head> <script type="text/javascript" src="/js/lib/zepto.js"></script></head>

$.post(
    url: "http://www.example.com",
    data: {
    latitude: position.coords.latitude;
    longitude: position.coords.longitude;
    timestamp: new Date().getTime();},
    success: alert("Report Successful");
);

This is the code that actually sends the request. I don’t believe that the problem lies elsewhere.

  • 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-05T18:49:55+00:00Added an answer on June 5, 2026 at 6:49 pm

    Use forge.request.ajax.

    Additionally, there are a couple of problems with your JavaScript code. This snippet should work to do the post (assuming that ‘position’ is defined earlier in your code):

    forge.request.ajax({
        type: "POST"
        url: "http://yourserver",
        data: {},
        success: function() { alert("Report Successful"); }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to setup vanity urls for some models in my application, basically it's
Everything's explained in the above image. Basically, I need a sidebar div whose width
I need to create a service which is basically responsible for the following: Watch
Basically the question above, you don't need to read the lot below, just additional
I need a regex which can basically check for space, line break etc after
Basically, my problem is that i need to send data from my service (started
Basically what I need to do is write a function that takes in a
Hey all. Basically, I need (this) in my function to correspond to this selection:
I need to print a string that says exactly: std::string(-I\/path/to/dir\ ); Basically, I need
Ok, so basically I need to select multiple IDs from one column, then use

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.