facing a weird bootstrap behavior in chrome - django

I have a django-bootstrap project in which an html page has a dynamically generated table with data-toggle popovers on td elements. in firefox, opera and edge everything works perfectly fine and the popover show up, but in chrome they just don't. however when I copy paste the same code in a new blank html test page unrelated to the project it works (minus a few css issues for the rest of the page).
am really out of my wits end trying to understand the behavior I tried:
emptying cache and hard reload multiple time no success
forcing the state to trigger popover no success
no errors/warnings showing up in console
restart server and dev machine no success
clear a week's worth of cache and browser history
check if there is a chrome extension blocking it. (none am aware of since the test page is working fine)
made sure my jquery bootstrap 4 cdn's are up to date
I really have no clue what to turn to to find the source of the behavior. what steps do you do you guys go through if an element is randomly not showing on your page or you going through unexpected behaviors

Related

Turbolinks + Django: Page is requested multiple times when the "prevoius" button is pressed in the browser

I have finally got Turbolinks to work fine and dandy and handle all of the requests going through my application (PJAX). However, the main issue that arises is the fact that the "back/previous" button is broken.
The normal page request when normally navigating through a turbolink should be as follows:
Normal Network activity
However, when pressing on the "previous" button all hell gets loose as follows:
When clicking the previous button in the browser
The page named "11" should load one time only. However, it loads multiple times for some reason.
I know turbolinks is famous with the Rails framework so any answers are welcome. Also, I'm inexperienced with how caching works with Turbolinks, so if this is a cache issue please refer me on how to mitigate it.
To be more specific, my issue is with the Restoration Visits only. And I tried to put the following element in my base.html template but with no success.
<meta name="turbolinks-cache-control" content="no-cache">

Django website toggling between latest and previous state on reload

today, I have recognized a strange behaviour of my Apache served Django 2.0.2 (Webfaction) website. After I have made a change and restarted the Apache server, the reloaded website shows the latest change. But when I hit F5 (reload) again, the view of the previous state is displayed again. Another reload and the latest state is displayed. That continues back and forth. For example, see the smallcaps and line-break changes:
Before, the same happened to the background opacity, too, so it's not limited to the font.
It happens on Firefax (PC) as well as on Opera and Chrome browsers (on mobile dev). So, I assume the issue lies in Apache - or Django. I've never seen such a behaviour, before. Does anyone have an idea what causes this effect?
Not sure whether it is of help (because the site will soon change), but for reproduction of the error, this is the site: http://campfire.skylet.de/
Thank you
Michael

Coded UI Test and Firefox 35.0.1 Issue

I'm trying to use microsoft coded ui tests with firefox. This was NOT an issue until Firefox 35.0.1 came out.
Skip to the bottom if you want to know the issue more than the why am I doing it this way:
Why I'm not using Selenium:
With Selenium, when Firefox launches a web driver, it loses it's previous states/cookie settings. I could of course import a cookie. The problem is that if I have multiple users running the test, they'd either have to set up individual lines of code to import their own specific cookie from their own path. This could become a dangerous game if a user decides to use someone elses cookie.
Why I'm using Coded UI Tests:
Certain applications I am running work exclusively with IE and others work exclusively with Firefox. Since I can't record the instances in IE with selenium, I have to should utilize a coded ui test anyway. I could of course also use watin. But at some point, why run Selenium, and watin when I can instead JUST use a coded ui test. Additionally, when going to the url for login with a coded ui test, FF is setup to save my password and cookie. therefore, the user can save their own password/cookie on each machine and just change the input for username which comes via excel spreadsheet. Everyone gets their own test, and no security issues.
The issue:
Since Coded UI tests don't recognize Firefox as a browser, it recognizes Firefox as a windows application. Therefore, edits and buttons in firefox are considered WinEdit and WinButton for firefox while internet explorer uses HtmlEdit and HtmlButton.
When Firefox put out an update, the coded ui test stopped recognizing certain objects in the firefox window. When trying to manually highlight objects/words with the test builder, it puts the blue box at the head of the web page instead of over what I'm clicking selecting. When hardcoding things to select, it doesn't recognize them. Is anyone aware of a workaround for this issue?
Recording on Firefox/Chrome is not supported by Coded UI. You can record your test in IE and Play it across Firefox/Chrome using Selenium components for Coded UI Cross Browser Testing which can be found here https://visualstudiogallery.msdn.microsoft.com/11cfc881-f8c9-4f96-b303-a2780156628d

Sitecore menu items not working - javascript errors

So I'm just starting to work in sitecore and for some reason none of menu options are working in Page Editor mode for the site that I'm working on. We pretty much have the sitecore website and add some extra page content (MVC app files) to it. I'm getting a variety of javascript errors.
In content Editor, if I click the Sitecore logo and click on Properties I get
TypeError: contentIframe.dialog is not a function
In page editor if I click on the blue components button I get:
TypeError: i.widget is not a function
I'm guessing maybe it's a conflict between jquery that we're using for this website and whatever Sitecore is using. I think it's 7 - but I can't see it via the menu option :)
That guess could be wrong - it could in fact be a browser issue, but I've ensured Firefox is not blocking popups. It doesn't work in Firefox, IE or Chrome though.
The weird thing is that no one else on the project is having this issue it's only on my computer.
Edit - I've also just tried re-installing (7.2) without any local code changes I still can't click on a page and go to Presentation, Details (Layout) - I get a TypeError: contentIframe.dialog is not a function
Edit 2 - I've noticed that I can use sitecore in the QA environment and the dialogs work fine there. So it's something specific to my local build of the site we have (sitting on top of sitecore). But the dialogs just throw jquery errors when I do stuff locally. I was hoping it would be a browser setting but doesn't look like it.
Edit 3 - What I've tried this morning.
Same thing happens in all browsers (FF, IE, Chrome) and I’ve cleared
my browser cache I can access the QA site and the dialog appears as
expected
Copied across the QA site files, pointed my local Digital
site in IIS to the new folder – dialogs don’t work
Team member tried accessing the site from his machine (pointing to my IP address) and
dialogs work for him
I tried seeing if another local sitecore site dialogs were working – but the menu items for that are opening as new windows (so I’m guessing it’s a sitecore 7.2 feature that they appear as jquery dialogs??)
So after googling for rejected-by-urlscan it turns out there's a program called UrlScan from microsoft that was blocking my dialogs. Uninstalled that and I now have dialogs appearing for sitecore. Very exciting :)
I guess it is a problem with some browsers plugin. Sitecore is sensitive to scripts that are used(different versions of jquery or prototype.js). Plugins can inject scripts to HTML source of pages and it can cause errors.
Try to switch off all plugins at least at one browser and check the results.

rails 4, turbolinks and cached views - strange behaviour

I have a strange problem on the production env. I'm using rails 4, ruby 1.9.3, nginx, and unicorn, there are no suitable caching, except that which in in standard rails.
I suspect that the problem is related with turbolinks, but not necessarily, the point is that as I pass between the sites, and return back to them, I still see the old versions of those sites, for example, appears new order, I'm going to orders page and I see the old data, then after refreshing page I get new data, another example when I'm logging in, flash message appears, than after clicking to another pages and returning to old one I still have this flash message (pls note, Im not using back button in browser).
Do you have any idea what is going on?
In dev mode, everything is ok (and Im using turbolinks as well)
thanks in advance