The JSON script below is working fine on my development machine.
Now, I have hosted this MVC ASP.NET site on IIS 7.5 on Windows Server 2008 R2.
It shows many 'CSS not working' (specifically for JQGRID). Also it shows the ERROR below.
I also faced one error on line - console.log('executed');. I removed this line and it stopped at the JSON below.
var f = JSON.stringify({
's': values, 'da': $('input[name=Days]').val(), 'date': $('#date').val(),
'tv': $('#tv').html(), 'classCode': $('#ClassCodeValue').html(), 'section': $('#Sec').html(),
'we': $('#We').html(), 'attendType': $('#AttendTypeValue').html(),
'adClass': $('#adClass').val(),
'variousLen': variousLen,
'varDHour': varDHour,
'varDMin': varDMin
});
It is all working fine on development machine Windows 7 Professional.
I have given access to script folder and it looks like, jquery is working as it reach to this page on the website. but some of script or css not working properly as above issues.
Please suggest me what is wrong here.
I have been usin: IE 8 and IE 11.
It was weired issue. Actually, when i open hosted site on IE then site's mode is automatically set to compatibiity mode instead of standard mode. when i set its mode manually to standard mode then no such issue.
i have added expliciltiy : as firlst line of HEAD element.
Now, it works fine.. but it sets compaibitly view mode though most of the all issues are resolved.
but some issue arise for jqgrid header CSS. if set standard mode then it works fine.
If there is any way/suggestion to set on standard mode then it is best...exa- if browse has - IE9, IE9 comaptbility mode then above meta tag sets its mode to highest mode of that browser that goes to compabitlity mode.
I am using itranet application.
Thanks
Related
I have some issue with selenium-webdrivers on Ubuntu. Everything is working fine instead firefox has no javascript activated. When I open a website that requires javascript it pop the noscipt error. So the website is displaying <noscript>Javascript is required ....
Is there a function to enable JS on Firefox on Ubuntu or das this is a selenium failure and I need to set a driver.
Code:
require 'rubygems'
require 'headless'
require 'selenium-webdriver'
#headless = Headless.new
#headless.start
#driver = Selenium::WebDriver.for :firefox
#driver.navigate.to 'URL'
... actions
#headless.destroy
The Website navigate over HTTP:Headers and Ajax I think.
If someone have an idea I would be thankful.
On dev machine (win 10) all working fine.
Regards
Mat
EDIT
With recent modules you need firefox 65+, because firefox 65+ has his own headless module. Now everything is working fine and fast. Also need recent Geckodriver. Poorly not working with old firefox versions.
Refer comment here...
An alternative is to install a Firefox addon that disables JavaScript. This worked for me with Firefox 45 ESR, selenium-webdriver (2.53.4), and capybara (2.8.1):
profile.add_extension(File.expand_path('../quickjava-2.1.0-fx.xpi', FILE))
Configure the extension to disable JavaScript by default.
profile['extensions.thatoneguydotnet.QuickJava.startupStatus.JavaScript'] = 2
Disable loading the extension's first-run tab.
profile['extensions.thatoneguydotnet.QuickJava.curVersion'] = '2.1.0'
Reference : Disabling JavaScript when using Capybara + Selenium
We have some functionality for exporting data to an excel file.
When the 'export' button is clicked, some client-side javascript is called, firstly checking the client browser version, and based on this, deciding which way to render the excel document.
It is working in Chrome & Firefox & IE11 when tested locally.
However, when I remotely test using a windows 10 machine running Edge browser, the excel is not rendered.
I might add that my local machine is a Win7 machine and Im running VS2012 and IE11. The remote machine is Win10 with Edge, hence the need to test remotely.
I've tried the emulation in IE11 F12 dev tools but cant replicate the Edge error there.
An error of 'undefined or null reference' is thrown for 'open' when using the following code:
excelIFrame.document.open("txt/html", "replace");
excelIFrame.document.write(sHTML);
excelIFrame.document.close();
excelIFrame.focus();
excelIFrame.document.execCommand("SaveAs", true, "Spreadsheet.xls");
The iframe exists in the html and is not added dynamically.
<iframe id="excelIFrame" style="display:none"></iframe>
I have tried the following possible solutions to get this working, to no avail -
Possible Solution 1: Same 'undefined or null reference error when assigning the document to a temp var
var doc = excelIFrame.document;
doc.open("txt/html", "replace");
doc.write(sHTML);
doc.close();
doc.focus();
doc.execCommand("SaveAs", true, "Spreadsheet.xls");
Possible Solution 2: Using the contentWindow property of the iFrame. No error thrown, it just opens 'about:blank' containing no content.
excelIFrame.contentWindow.contents = sHTML;
excelIFrame.src = 'javascript:window["contents"]';
Totally at a loss with this at this stage.
The page is an angularJS web page.
From reading up on it, I'm aware the document.open is problematic in edge when using iframes. But the following link document.open fails in an iframe I felt would solve the problem.
Any thoughts or suggestions greatly appreciated.
This may be helpful to others who are searching for it.
//For Edge browser ….. U have to write separate logic for each browser
if (ua.match(/Edge/)){
var blob = new Blob([sHTML], {type: 'data:application/vnd.ms-excel'});
window.navigator.msSaveBlob(blob, "P2P_Report_"+new Date().getTime()+".xls");
}
I have been developing a Joomla website locally on MAMP 3.2x and just yesterday I migrated it to the clients server. It is running CentOS 6.5 with Apache 2.2.xx (standard CentOS Package). I have installed php5.5 & php5.5-fpm, along with MySQL etc.
The site is working absolutely fine, except for 1 little issue, which I have narrowed down to the word "Onclick"
If any article or module or content, somewhere includes the word "onclick", as soon as I click Save, Save Close, Cancel, etc, I get a Server Dropped Connection Error.
The weird thing is if its "Onclic" or "Onclik" or anyother variation, then its fine. But somehow "onclick" causes it to fail.
Its not a POST Size issue, just a simple line will do it.
I have tried
Chrome, Safari and Firefox.
I have checked my server logs, Apache,
FPM & MySql. No errors pertaining to this
Also tried disabling fpm and switching to default php
switched to php 5.6 but still the same issue
The only clue I have is this
POST http://example.com/administrator/index.php?option=com_content&layout=edit&id=224 net::ERR_CONNECTION_RESET core.js:1
Joomla.submitform -> core.js:1
Joomla.submitbutton-> index.php?option=com_content&view=article&layout=edit&id=224:534
onclick-> index.php?option=com_content&view=article&layout=edit&id=224:502
--Update--
The issue only happens if onclick is part of a html tag. It seems the HTML filtering portion of Joomla is the culprit, even though its set to No Filtering for SuperAdmins
the bare minimujm text required for this issue to show up is
< onclick= >
The following variations are fine
< onclick
< onclick=
< onclick >
Help please!!
Turned out to be a restrictive firewall blocking the POST. Gonna have to move my listeners to the JS files and remove the onclick tags.
I have developed application in mvc 5 from where I need to open next web application from link which runs only in IE < 9 ;but my application runs in firefox and is NOT supported in IE < 9. So I managed to open the application from Process.Start("IExplore.exe", http); which works fine in debug but while application is hosted it doesn't work. So I need a solution to open application from firefox in IE using backend c# code or javascript.
You can use the below
Process p = new Process();
p.StartInfo.FileName = "iexplore.exe";
p.StartInfo.Arguments = "http:\\\\www.google.com";
p.Start();
This will open Internet Explorer, and immediately load the website passed in as an argument.
Also, the Process class is part of the System.Diagnostics namespace. Be sure to reference it at the top of your code file.
if you are using windows 8 or higher then you can use
System.Diagnostics.Process.Start("IEXPLORE.EXE", MyURLHere)
MS CRM 2011 on premise.
No problems if accessed via internal address: crm:5555
Go to crm.ourcompany.co.uk:5555 in IE and load account page and the ribbon is totally grey. (Not disabled - every pixel is the colour grey.)
In Chrome and Firefox the ribbon is loaded fine.
Browser console in IE, Chrome and FF all say access errors.
I can see they are trying to access crm:5555.
IE says:
SCRIPT5: Access is denied.
PageLoader.js, line 1 character 1226
The second line above is presented as a link. Clicking it shows me this: http://pastebin.com/bBadk9HS
The full path is http://crm.ourcompany.co.uk:5555/_static/_common/scripts/PageLoader.js?ver=-1056260279
P.S. IE is "Browser Mode: IE10 Document Mode: IE9 standards".
After Long investigation I have found out the reason for same issue like this.
We had previous rollup activity feed solution.
After importing the new version of Activity feeds this hectic issue was sorted out.
Activity feed new solution is available with rollup up package.it can be found by exacting the rollup package. Previously this was available in Microsoft Dynamic market place.
It turns out that the problem is an address lookup plugin on the Account form.
This is trying to access http://crm:1999, which is a 404, and http://crm:5555, which isn't allowed.
Solutions are to fix the server on http://crm:1999 and set up proper managed internal and external URLs so it'll know whether http://crm:5555 or http://crm.ourcompany.co.uk:5555 or remove the plugin.