Refresh page button

Can I use a reset button as a Page refresh button - I assume that I need to use extended attributes but I don’t know what they are - or do I just create a new button and use it (again with extended…).

David


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry - I meant this to go in Freeway Talk


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well I found the answer to this one myself so I thought I would share.

<input type="button" value="Refresh" onClick="window.location.reload()">

In Freeway select your Reset button and in the item output settings of the inspector change the value to “Refresh” no quotes and change the Type from Reset to Button

Then in the Item menu>Extended Create a new name/value pair with the name as “onClick” and the value as “window.location.reload()” again no quotes.

OK the dialogues and you are done.

The reason I wanted to do this was so that when I am using Mike B’s excellent easiform/captcha the viewer has the option to refresh the page if the Captcha is difficult to read.

Thanks Mike

David


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dave,

if you need it for this purpose then there is a simpler way, just
place a button on your page, use Refresh as the Value and name * not
submit * and the page will be sent without loading the easiForm or
easiCaptcha processing scripts, the captcha will then be changed.

Hope this helps
Mike


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for that Mike.

I tried what you suggested but it didn’t work for me?

The other method worked fine so I have just reverted back.

David


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Should do, it worked fine for me like this and I have just done
another check and using the method I suggest the image reloads. Did
you leave the button as a submit button? you need to… that’s all I
do on my forms that used the image version.

The nice thing about doing it like this is the selected values or
those entered by the user then remain intact as the form then picks
them up again after the refresh is pushed.

Mike

On Mar 20, 2008, at 8:01 PM, DeltaDave wrote:

Thanks for that Mike.

I tried what you suggested but it didn’t work for me?

The other method worked fine so I have just reverted back.


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry, just to clarify:

1# Give the button a name of say ‘refresh’ (Anything except submit)

2# Give the button a value of ‘Refresh’

3# Select ‘Submit’ as the type.


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Aha - it was the ‘type as submit’ that I didn’t do.

I will try it again - and yes it is valuable to keep already entered text.

Tried it and yes it works great.

Thanks again Mike


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options