i noticed a strange behaviour of facebook page tab applications, using internet explorer (i tested this only on ie8... with other browser this problem is not present).
If i put javascript code, or background sound in my application, when i goes out from page tab, my application is still running (for example sounds, or javascript activity)...
To show you the issue, i created a page....
Log in into facebook and goes to this page.
http://www.facebook.com/apps/application.php?id=252545344807399&sk=app_252545344807399
Don't click like button or anything... you can see a javascript alert each 5 seconds...
next, click on the top facebook logo. You will be redirected to your facebook home, but the url has an hash symbol, because it loads content in ajax.
Wait 5 seconds and tell me if you are still receiving javascript alert from my application in background.
Tell me please if you experience this problem.
Thanks in advance.
Giuseppe
(sorry for bad english)
.
Related
This seems to be by design as far as I can tell. Selenium can see the initially loaded HTML, but not the HTML after it's been massaged. I've tried IE, Chrome and PhantomJS and they all show the same behavior. So does the built-in Chrome debugger, until you inspect an element on the page, you can't query any of the rendered HTML.
I'm looking for any suggestions about how to scrape the web page. The only option I see right now is finding the chrome process, triggering the inspector, clicking inside, then running the Javascript. Needless to say, this sounds fragile.
I also haven't been able to find anything on capturing the Ajax calls from selenium so I can make them and capture the JSON. When tried copy / paste from the chrome network tab into selenium I got a missing application block message.
Does anyone have any other advice?
Since I can replicate the issue in the chrome debugger, I don't see posting code as useful. It looks like a design decision.
Ralph
Sadly, I wasn't able to do things in a straightforward way. Instead, I used Selenium to do the login and navigate to the page, then use windows API calls to click inside the window send ^a^c to copy the data and an absolute location to click on the button to go to the next page.
The site is set up so that ^a^c copies the raw data for this site. I don't know if that's standard for Angular or not.
Fragile, but it works.
When ever I earn a reputation, firefox understand and refresh my thumbnail. I want to know how it works and when does firefox take website screenshot for its home page?
Is there any meta tag or something like this to force firefox to take screenshot?
When you earn reputation firefox has no idea. The javascript code (that stackoverflow loaded into firefox when you loaded the page) does. If you don't have the page loaded and the javascript code running nothing will ever see the change. Look up AJAX if you want to know more.
You can force the images to update but it involves loading the page.
From https://support.mozilla.org/en-US/kb/thumbnails-on-new-tab-page-are-missing?esab=a&s=new+tab+thumbnails&r=1&as=s
Make Firefox create new images for the new tab page
The images will get re-stored as you use the new tab page to go to
those websites again.
Open the new tab page by clicking the + button on the tab strip.
Click on one of the blank images to go to a website. Note, that it works only for left-click, opening in new tab doesn't do the trick.
This is important - let the website finish loading (wait for the spinning green loading icon in the tab to stop).
Open the new tab page again and you will see a new image for the website you just went to.
Repeat this process for the rest of the missing images.
I am running the latest version of Chrome on Mac Lion. I added a FB like button to my page which works fine on Firefox but does not work on Chrome for some reason. There seems to be a quick window pop-up which tries to load and then it disappears without the "Like" taking place.
Fiddle - http://jsfiddle.net/luisp128/X7SDR/3/
I thought it might be related to this prior question, but FB said this issue was already resolved: the the popup window ("flyout") of a like button doesn't show up in a chrome extension
One thing to note is that you must be logged into Facebook within each browser for the FB buttons to appear in that browser (otherwise the buttons have no context). If not, the buttons are not shown.
So, if you're seeing this problem, open a new tab, log into FB, and then refresh the original tab - the buttons will then appear (assuming there isn't a second problem)>
I have manually implemented the Flattr button to my site.
In Firefox (Windows) the "popout" covers the button so one can't press it.
Any other browser renders the popout in the correct place. Can someone confirm this? Or is it a conflict on my site?
Since you don't mention which site is yours I'm left to speculate on the reasons for this and if I do then I think it is that your body-element doesn't start at the top left of your browser and that therefor positioning of the popout fails due to browsers inability to correctly account for offset body elements.
We've had reports of people experiencing this problem in eg. WordPress where the admin-bar that's showed when a user is logged in pushes the entire site down 20 pixels or something and makes the position of the popout be of by 20 pixels. Could it be something similar for you - that you're logged in in Firefox and not in other browsers?
As far as I know there's no workaround for this limitation - eg. jQuery can't account for it either.
Good thing though: If your layout has a body with an offset or something else that makes the popout not work for you you can disable it by setting popout 0 in the settings of the button.
In a site I'm working on, songfountain.com, we have a bookmarklet.
songfountain is like delicious and twitter, except it's specifically for song links.
The songfountain bookmarklet functions similarly to the delicious and twitter bookmarklets. It grabs the URL and copies it in to a form field; the form has a button, and submits to songfountain.com -> simple social bookmarking.
Google Notebook (when it was still available) also had a bookmarlet. Google Notebook's and songfountain's bookmarklet open the form within an IFRAME within the current page.
Delicious and twitter open a new browser window.
Opening a new browser window looks more robust, but I myself don't like windows opened for "small stuff" like this. I don't know if I'm overlooking some technical problem that I haven't run into yet.
Question: Is it better to use an IFRAME? Or is it better to open a new browser window?
From a user/usability perspective, an IFrame is, generally, less disruptive and more user friendly. It also doesn't run into problems with pop-up and ad-blockers on the users' machine.
Look at the "Note in reader" bookmarklet that is provided to Google Reader users for inspiration. There may be other tricks you could consider, besides IFrame and pop-up.