Submit GCP POST form without changing page

0 votes
I have a C# MVC website and I'm trying out Google Cloud Print(GCP) to print.

s there any way to skip this last part, e.g let the user submit the form without moving to the google website.

I've tried various jQuery AJAX and similar calls. I've also tried posting the form inside of an iframe but none of these work since Google does not allow Cross-Origin calls.

If there was a way to post this either in HTML, Javascript or C# without jumping to the google result page it would've been great.
Mar 4 in GCP by Rahul
• 2,080 points
36 views

1 answer to this question.

0 votes
<div id="contact_form">
<structure name="contact" action="">
  <fieldset>
    <div class="input-box">
    <mark for="name" id="name_label">Name</label>
    <input type="text" name="name" id="name" minlength="3" placeholder="Monty" class="text-input" required/>
    </div>

    <div class="input-box">
    <mark for="email" id="email_label">Email</label>
    <input type="email" name="email" id="email" placeholder="example@tutsplus.com" class="text-input"/>
    </div>

    <div class="input-box">
    <mark for="phone" id="phone_label">Phone</label>
    <input type="tel" name="phone" id="phone" class="text-input" placeholder="856-261-9988"/>
    </div>

    <input type="submit" name="submit" class="button" id="submit_btn" value="Send"/>
  </fieldset>
</form>
  <div class="greetings">
  <h1>Contact US</h1>
    <p>We are standing by to hear from you!</p>
  </div>
</div>

Make sure you add the id values for each input. The id values is what your JQuery will be looking for.

answered Mar 4 by Korak
• 5,820 points

Related Questions In GCP

0 votes
1 answer

Changing Machine Instance on GCP

There is no direct method to change ...READ MORE

answered Aug 1, 2018 in GCP by kurt_cobain
• 9,390 points
202 views
0 votes
1 answer
0 votes
2 answers

How to install gcp in Python?

If you're accessing BigQuery in python, you ...READ MORE

answered Aug 20, 2018 in GCP by Priyaj
• 58,080 points
945 views
0 votes
1 answer

Why should I choose GCP over any other cloud platforms?

There are various Cloud service providers in ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,170 points
516 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,170 points
594 views
0 votes
1 answer

What services does GCP offer?

Google offers a wide range of Services. ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,170 points
207 views
0 votes
1 answer

Does Google cloud platform (GCP) offer IaaS ? Or just PaaS?

GCP provides IaaS as well, although it ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,170 points
4,207 views
0 votes
1 answer

How do I create a Google Cloud Platform (GCP) account?

In order to access the services provided ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,170 points
2,005 views
0 votes
1 answer

How can I change the Service Account that my GCP GAE Flex Service is running as?

This isn't possible at the moment. The ...READ MORE

answered Mar 4 in GCP by Korak
• 5,820 points
41 views
0 votes
1 answer

How to send email to AWS SES from GCP vm instance

Use port 587. As per AWS SES ...READ MORE

answered Mar 4 in GCP by Korak
• 5,820 points
82 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP