/    Sign up×
Community /Pin to ProfileBookmark

onsubmit play flash

I have a form and when the user submits it I would like to play a flash movie below it. A progress bar movie. The form takes a while to load and I don’t want users clicking it twice. I put a ‘Please click only once’ thing next to it but I think what would reall look good is when the user submits the form a small flash progress bar will appear to indicate to the user that it is working. I thought that I could just create a continous movie so it can just always loop progress. It could even be playing the whole time and onsubmit it just appears. Any ideas?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@abzOct 14.2006 — if you just want a bar with a coloured block zipping across it, you might want to consider using an animated gif, as it would probably load faster.

how about, on submit, a mini-window appears with the loading image/swf, then once the new page has loaded, the mini window is closed. you could do that with javascript functions on the submit button and the new page.

As a side note, users tend to dislike things that are not helpful. ie. your loading bar that doesnt actually tell you how far it has got. ~If it is just feedback you want, to tell the user that the submit has registered, then you can do that with an alert box. People will expect a loader bar to display progress, so showing a loader bar with no actual information may be considered useless by some.
Copy linkTweet thisAlerts:
@luiddogauthorOct 14.2006 — on submit, a mini-window appears with the loading image/swf, then once the new page has loaded, the mini window is closed. you could do that with javascript functions on the submit button and the new page.
[/QUOTE]


How would that be done?
Copy linkTweet thisAlerts:
@abzOct 14.2006 — errrr, Im no JavaScript pro but i guess you would call a predefined function on the submit button <input type="submit" value="Submit your details" onclick=(yourFunction) />

the function would be something like:

function yourFunction(){

var openLoader = window.open("http://yourloaderURL.gif.swf","myLoaderWindow","width:x , height=y, menubar=0 , status=0, toolbar=0, scrollbars=0");

}

then on the new page, have something like:

window.close("myLoaderWindow")


there are bound to be millions of errors in that....but i hope it was of some assistance ?
×

Success!

Help @luiddog spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...