Unable to execute javascript links from FastDial or when FastDial is open
rob —Sun, 06/16/2013 - 07:02
Firefox 21.0
Fast Dial 4.3.3
Hi,
My Bank's mobile site provides a much nicer browsing experience for the things I most often look at when browsing it (ie. making sure I've been paid, moving money between my accounts, etc.), and as such I have bookmarked their mobile site in my browser set to open up in a new iPhone-size browser window when clicked using the following code (changed site and window name to Google):
javascript:window.open('https://www.google.com/','Google','location=1,status=1,scrollbars=no,resizable=no,width=320,height=480');void(0);
However, when I try to use this bookmark in Fast Dial, nothing happens. I have also found that I am unable to open this bookmark when Fast Dial is the active tab in my browser. If I try to open the bookmark from another tab (which is not Fast Dial) it works perfectly.
Has anyone else encountered and overcome this issue, or have any suggestions as to the cause of this issue?
I had looked around the forums for similar issues, and found a few JavaScript-related issues, but they didn’t look obviously related.
Search logos
Search site
Navigation
User login
Online users
Active - 15 mins:
Recent comments
-
by: peter6544 min 16 sec ago
-
by: andreysoroka4 min 39 sec ago
-
by: zabtodina5 min 18 sec ago
-
by: hammadamir9010 min 6 sec ago
-
by: peter65410 min 19 sec ago
-
by: hammadamir9017 min 28 sec ago
-
by: hammadamir9027 min 35 sec ago
-
by: hammadamir9041 min 32 sec ago
Re: Unable to execute javascript links from FastDial or when Fas
Submitted by chiaroscuro on Sun, 06/16/2013 - 11:07The nature of your question is not clear
If you wish to access your bank's webpage why do you not do so by entering the bank's URL.
Right click on empty cell, choose Properties menu, URL / enter URL of Bank.
Re: Unable to execute javascript links from FastDial or when Fas
Submitted by rob on Sun, 06/16/2013 - 11:54Sorry for not explaining the Why behind using the JavaScript instead of just using a standard link in my OP:
Originally I did put the bank's mobile site into Fast Dial as you noted in your reply, however when loading the mobile site in my browser like this, everything was stretched (the bank's mobile site is set to 100% width, which makes sense for viewing on a mobile platform).
What I decided to do to 'fix' this was create a JavaScript 'bookmarklet' to launch the site in a new window sized appropriately for the mobile site.
I added the JavaScript in the OP into the URL field of the Fast Dial "Properties" menu, but it would not work. As noted in my original post, I could not 'manually' run the bookmark Fast Dial created (via the bookmarks menu) either while Fast Dial was the active tab, but that the bookmark ran properly when any other (not Fast Dial) tab was the active tab.
I suppose I have a few questions:
1. Why isn't Fast Dial executing the bookmarklet?
2. Why isn't Firefox able to execute the bookmarklet (via the bookmarks menu) while Fast Dial is the active tab, but is able to when Fast Dial is NOT the active tab?
3. Has anyone experienced this problem / a similarly related problem, and if so, what work was done in finding the cause?
Re: Unable to execute javascript links from FastDial or when Fas
Submitted by chiaroscuro on Sun, 06/16/2013 - 13:14Mmmmmm....
Not to sure about all this
First of course as a start you can use a logo for your cell.
I am not sure if you are concerned about the Fast Dial screenshot of the site, or of the size of the page once the site has opened.
A possible option if is the latter is to use the extension Stylish and prepare a custom style to work just on that site. that could possibly help modify your viewing experience
Re: Unable to execute javascript links from FastDial or when Fas
Submitted by rob on Sun, 06/16/2013 - 21:54The issue is the size of the page once the site has opened - This is the reason I open the mobile site in a new window, to force its maximum width to that of a mobile browser.
I am aware that I can set a custom logo for the cell in Fast Dial, and i do use a custom logo for this cell, and many others.
I will definitely look into Stylish, however this does not address the issue of being unable to parse the javascript in the Fast Dial cell or bookmarks whilst Fast Dial is the active tab. Stylish would be more of an intermediary band-aid solution to this problem.
Re: Unable to execute javascript links from FastDial or when Fas
Submitted by chiaroscuro on Mon, 06/17/2013 - 07:20I will definitely look into Stylish
Good
Should do the job
This is not a Fast Dial issue
Re: JavaScript links in Fast Dial do not work
Submitted by rob on Mon, 06/17/2013 - 10:34This is not a Fast Dial issue
How is this not a Fast Dial issue if the bookmark only fails to work when Fast Dial is active?
If you create a new Fast Dial cell using the code in the original post as the URL, it will not work in Fast Dial, nor will it work when Fast Dial is the active tab and you run it from the Bookmarks menu. If you browse to any other webiste in that tab or another tab (ie. yahoo.com, about:blank, wikipedia.org) and then run the bookmark from the bookmarks menu (where Fast Dial stores its cells), it works perfectly.
Re: Unable to execute javascript links from FastDial or when Fas
Submitted by chiaroscuro on Mon, 06/17/2013 - 16:31I remain unclear why you are resisting writing a short style to work with Stylish to sort out your Bank's web page display issue.
When you write the Style be certain to write it just for that URL
Please let us know how you get on
Re: Unable to execute javascript links from FastDial
Submitted by Sanjay on Tue, 06/18/2013 - 14:12Hi rob
Click this link to install Scriptish Addon, then create a "New User Script..." while your on the bank url by left clicking on scriptish toolbarbutton and adding your javascipt code to run when you access bank url.
If you need examples of javascripts running in Scriptish Addon visit http://userscripts.org/ and click on the install button top right.
Fast dial is not programed to fetch javascripts when accessing any website but your can try going through the source code to implement that feature.
Good luck!
Sanjay
Re: Unable to execute javascript links from FastDial or when Fas
Submitted by chiaroscuro on Tue, 06/18/2013 - 15:01Many thanks Sanjay
Was not aware of Scriptish for running javascripts
Only knew Stylish
I had presumed that a Style here would have sufficed
Re: Unable to execute javascript links from FastDial or when Fas
Submitted by chiaroscuro on Tue, 06/18/2013 - 20:15Scriptish is a fork of Greasemonkey Addon, but I prefer Scriptish as it fixed a lot of problems that Greasemonkey had
Ah OK
I am familiar with Greasemonkey, but used others scripts.
Either way yur suggestion is a most helpful one
A solution to this question should hopefully be forthcoming in the near future