We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › link() on mousePressed not working in Firefox
Page Index Toggle Pages: 1
link() on mousePressed not working in Firefox (Read 1120 times)
link() on mousePressed not working in Firefox
May 23rd, 2010, 5:40pm
 
It works in Safari, although the target="_new" doesn't seem to. But of course the larger issue is with Firefox, where it doesn't work at all.

Any ideas link() is pretty important to my app. Could I possibly get around it by passing a command into the HTML from Processing and using Javascript to open the link in a new window

http://oracloud.net
http://oracloud.net/sketch12.pde

PS. The link is supposed to happen after clicking on a question in the second state/screen of the program. ie. click on a question, then click on another one. It's supposed to Google the term.
Re: link() on mousePressed not working in Firefox
Reply #1 - May 23rd, 2010, 10:35pm
 
Works for me in Firefox 3.6.3 on Windows XP. I click on a question like "why", then I change screen to lot of questions and if I click on one, it opens a new tab with a Google page.
Check if you don't have an extension or setting preventing this secondary window/tab opening.

Note: nice application! The loading time is a bit long, perhaps you should display something like a title upfront, because we see only a full black page for several seconds, wondering if something went wrong...

I see also you solved your issue of "full screen" (well, full page) applet in Firefox, in a rather elegant way.
Re: link() on mousePressed not working in Firefox
Reply #2 - May 24th, 2010, 4:15pm
 
That's really strange. I'm on Firefox 3.6 Mac but I can't for the life of me get it to work. I disabled all my add-ons, cleared the cache several times...

And thank you! I agree, the beginning needs work. Haven't taken the time to figure out how to customize the loading screen. There will also be some more information about where the questions are coming from (Google suggest).
Page Index Toggle Pages: 1