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
63 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
233 views
0 votes
1 answer
0 votes
1 answer

How to login gcp console without ssh?

Please test one of the following strategies ...READ MORE

answered Nov 4 in GCP by Tejashwini
• 2,860 points
46 views
0 votes
1 answer

GCP App Engine Access to GCloud Storage without 'sharing publicly'

I believe that https://cloud.google.com/storage/docs/access-control/create-signed-urls-program will work for ...READ MORE

answered Nov 10 in GCP by Ashwini
• 2,760 points
43 views
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,100 points
1,014 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,190 points
724 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,190 points
683 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,190 points
253 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
82 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
288 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP