Feedback button JS for Top Nav yields slow results

This forum is for all Flare issues not related to any of the other categories.
Post Reply
jackdeland
Propeller Head
Posts: 71
Joined: Tue May 07, 2013 9:13 am
Location: Ann Arbor, Michigan
Contact:

Feedback button JS for Top Nav yields slow results

Post by jackdeland »

OK, here's what I have cobbled together for a click event for my new TopNav toolbar "Email" button.

Code: Select all

window.location='mailto:jackdeland@adamcharlesconsulting.com?subject=CGI Help system <' + escape(window.location.href) + '>';
This produces:

Code: Select all

CGI Help system <file:///H:/CGI%20Prototype/Output/Jack/HTML5%20Top%20Nav/content/docs/html5_home_page.htm>
in the email Subject line in my test project. It's functional, but the emailer program (Outlook or whatever) opens the new email window slowly; it takes one full second, by which time the user probably will have clicked the button twice - not ideal.
I'm sure there's a way to do this that makes for a faster load, and in fact I had some .js before that did just that, but can't find it now. I'm betting that someone out there will have a simple correction for this. Anyone?
TIA
Jack DeLand
MadSkills Consultant and Trainer
Adam Charles Consulting, LLC
Ann Arbor, Michigan
http://www.adamcharlesconsulting.com
jackdeland
Propeller Head
Posts: 71
Joined: Tue May 07, 2013 9:13 am
Location: Ann Arbor, Michigan
Contact:

Re: Feedback button JS for Top Nav yields slow results

Post by jackdeland »

Hmm, found Dave Lee's code at viewtopic.php?f=13&t=20563, which is def cleaner, but there's still a lag. Must not be the code, then.
Jack DeLand
MadSkills Consultant and Trainer
Adam Charles Consulting, LLC
Ann Arbor, Michigan
http://www.adamcharlesconsulting.com
Post Reply