Auto refresh after few seconds on submit button pressed - wordpress

How could I add a redirect to my front page after the submit button is pressed on woo commerce?
I allowed file attachement to my reviews, it takes a while to refresh the page altough the attachement is already uploaded.
I wish to add a refresh or return to homepage automaticly after 10 secondes or so.
I did found hook to do that after comment is send but i m looking to add this at the press of the submit button.
How could i do that?
thankkks a lot///

You can use an jquery script to make this work. Using jquery you can set the time interval and event for refreshing or redirecting to home after pressing submit button.
E.g. jquery and javascript refresh

Related

Why are redirects not working with a button

I am using constant contact inside of WordPress. I have an email capture form with a submit button. I am trying to use that button to go to another webpage that redirects to an affiliate page. For some reason when I click that button it just goes to the first page and doesn't get redirected. I have edited my cpanel for that page to redirect where I want it to go but it always fails to do so when the button is clicked. What am I missing?

How to add destination page URL in create user wizard button?

I am trying to customize the create user Wizard control in asp. What it does is redirecting me to a continue page after creating the user, but I want a custom page to be displayed after creating a page.... What can I do?
Handle CreatedUser event and then Response.Redirect()
or play with control's properties:
ContinueDestinationPageUrl Gets or sets the URL of the page that the user will see after clicking the Continue button on the success page.
FinishDestinationPageUrl Gets or sets the URL that the user is redirected to when they click the Finish button.

Button clicks are ignored based on URL

I've one strange issue.I have one asp.net button on webpage integrate with masterpage.when I call the page using the url something like that http://www.mywebsite.com from address bar and click on button nothing is happened,it stays on same url. means it ignore the button click event.
Now if I call the page using url http://www.mywebsite.com/default.aspx and click on button then it capture the button click even and execute the code inside that button click
how can I solve this issue ?

How to redirect iFrame after third part form submit?

I have a third party form that I can't control. I'm putting that form on my webpage via an iFrame. I am then trying to redirect that iFrame to a new page after the form has been submitted.
Example:
User visits my webpage. They enter their email in the web-form. They then hit submit. The iFrame is redirected to a page that displays "Thanks for confirming your email!" etc..
Essentially after they enter their email I want that iFrame to redirect to a different page. I don't know how to do it because I don't control the form. I was thinking maybe adding a button or function when they hit enter or click submit that it submits the form then after a set amount of time it r
This is considered cross site scripting http://en.wikipedia.org/wiki/Cross-site_scripting so I'm not sure if it will work. Maybe you could open the subscribe form in a modal(like this http://colorpowered.com/colorbox/) and then the user will close the modal when he wants.

How do I track the click on a button with an external PostBackUrl?

On one of my ASP.NET pages I have several asp:textbox fields. On this page there is a "confirm order" button with an external url set in its "PostBackUrl" property.
This works well, and the data is sent to the external site. Here comes the question; how do I know that the user clicked the "confirm order" button on "my side?" (I need this to update my order-status field). There is off course no postback happening on my page becasue the form is submitted to the external site.
Maybe it's possible to use some sort of jQuery to hook on the onclick-event that will call a page that will update my order-status?
You'll need to hook into the buttons onClick event, perform a client-side callback to either a web service or Page Method (depending on your preferred setup) on your server to track the click, before allowing the form submission to continue.
Better to set it up so that the button does perform a postback. Then in your click handler you can update your order-status, and then post the data to the third party.

Resources