Twitter feed causing problems

2015-02-27 Thread jgill
I've just been asked to add a Twitter Feed widget to a web page but it is 
causing great problems with BBEdit. I have the page open in BBEdit Preview 
and every tiny change I make to the markup causes a page to open in Firefox 
(my default browser) with a single pixel gif in the middle. The page has 
the URL "https://syndication.twitter.com/i/jot";. It becomes very annoying 
to make any changes. Is there any way to stop this happening?

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Twitter feed causing problems

2015-02-27 Thread Oliver Taylor
>   On 27 Feb 2015, at 2:46 AM, jgill  
> wrote:
> 
> I've just been asked to add a Twitter Feed widget to a web page but it is 
> causing great problems with BBEdit. I have the page open in BBEdit Preview 
> and every tiny change I make to the markup causes a page to open in Firefox 
> (my default browser) with a single pixel gif in the middle. The page has the 
> URL "https://syndication.twitter.com/i/jot";. It becomes very annoying to make 
> any changes. Is there any way to stop this happening?

Sounds like there’s something in that widget that’s triggering firefox to open. 
Does the same thing happen when you remove that widget from the page?

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Twitter feed causing problems

2015-02-28 Thread jgill
No Oliver, it's fine when there is no widget. It's part of the Twitter 
process and acts as if I clicked a link opening a new page in my browser 
for every character I type or delete. I'm just wondering if there is a way 
to disable BBEdit Preview from opening links?

On Friday, February 27, 2015 at 10:46:56 AM UTC, jgill wrote:
>
> I've just been asked to add a Twitter Feed widget to a web page but it is 
> causing great problems with BBEdit. I have the page open in BBEdit Preview 
> and every tiny change I make to the markup causes a page to open in Firefox 
> (my default browser) with a single pixel gif in the middle. The page has 
> the URL "https://syndication.twitter.com/i/jot";. It becomes very annoying 
> to make any changes. Is there any way to stop this happening?
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Twitter feed causing problems

2015-02-28 Thread Bruce Van Allen

On 2/28/15 at 1:22 AM, joegillespie2...@gmail.com (jgill) wrote:

No Oliver, it's fine when there is no widget. It's part of the 
Twitter process and acts as if I clicked a link opening a new 
page in my browser for every character I type or delete. I'm 
just wondering if there is a way to disable BBEdit Preview from 
opening links?


From a quick look at the Twitter API, I think this is caused by 
Twitter's scripts, some of which are automatically executed when 
the script is downloaded to the browser (i.e., when the page is 
rendered by the browser). So it's not a matter of BBEdit opening links.


Some ideas:

Have you fiddled with the widget's ARIA settings? I haven't 
tried this, but setting "aria-polite="polite" *might* help.


If you poke through the scripts, look for "load" and "insert".

You might also need to add some javascript of your own that 
disables the widget's script during testing.


Another possibility - not ideal - would be to close the preview 
window and only open it when you what to check what you've just typed.


HTH

--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Twitter feed causing problems

2015-02-28 Thread jgill
I have found a solution. Commenting out the JavaScript in the Twitter 
widget does the trick so I've written an AppleScript to toggle the // on 
and off.

On Friday, February 27, 2015 at 10:46:56 AM UTC, jgill wrote:
>
> I've just been asked to add a Twitter Feed widget to a web page but it is 
> causing great problems with BBEdit. I have the page open in BBEdit Preview 
> and every tiny change I make to the markup causes a page to open in Firefox 
> (my default browser) with a single pixel gif in the middle. The page has 
> the URL "https://syndication.twitter.com/i/jot";. It becomes very annoying 
> to make any changes. Is there any way to stop this happening?
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.