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, 2022 in GCP by Rahul
• 2,120 points
412 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, 2022 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,350 points
643 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, 2022 in GCP by Tejashwini
• 3,820 points
628 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, 2022 in GCP by Ashwini
• 5,430 points
821 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,020 points
1,708 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,230 points
2,221 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,230 points
1,266 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,230 points
679 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, 2022 in GCP by Korak
• 5,820 points
538 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, 2022 in GCP by Korak
• 5,820 points
1,006 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