I'm a newbie to Rally SDK and have followed all the instructions in the 2.0p4 SDK "starter kit", but for some reason the example application is not starting inside Rally Custom HTML app.
If you can guide me to how to debug this, I would appreciate it.
Let me know if you need any other information to help you help me ;-)
-------EDIT
More information about my debug. i was using Firefox 15.0.1 and i didn't get any script error. when i switched to IE 8 i got a script error with the following details:
"
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; MS-RTC LM 8; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Thu, 4 Oct 2012 11:44:42 UTC
Message: 'Rally' is undefined
Line: 9
Char: 9
Code: 0
URI: https://<my server URL>/slm/panel/html.sp?width=1639&panelOid=105518795&cpoid=104144067&projectScopeUp=true&projectScopeDown=false
"
Notice: I've altered the server name for confidentiality
Here is the App source file i was using (a very simple one showing only 1 button):
<!DOCTYPE html>
<html>
<head>
<title>MyCardBoard</title>
<script type="text/javascript" src="/apps/2.0p4/sdk.js"></script>
<script type="text/javascript">
Rally.onReady(function() {
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
launch: function() {
//Write app code here
this.iterationCombobox = this.add({
xtype: 'rallyiterationcombobox'
});
}
});
Rally.launchApp('CustomApp', {
name: 'MyCardBoard'
});
});
</script>
<style type="text/css">
.app {
/* Add app styles here */
}
</style>
</head>
<body></body>
</html>
root cause found - i was trying to use SDK 2.0p4 while it was not deployed yet. the latest SDK that is really working on my server is 1.32 (which is the latest deployed).
Related
I have an ASP.NET 5.0 MVC web application with client side validation enabled.
I want to set the culture to french for the client side validation messages (culture = "fr", because there is no "fr-FR" culture in cldr-json).
I took every piece of information I could from this tutorial to try to set the culture: jQuery culture validation in ASP.NET Core 2.0 (I did not took it "as is", because this is ASP.NET Core 2.0 and there is some differences with ASP.NET 5.0. Like: there is no bower any more, I used libman instead.).
My _ValidationScriptsPartial.cshtml is the following:
<script src="~/lib/jquery-validation/dist/jquery.validate.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
<!-- cldr scripts (needed for globalize) -->
<script src="~/lib/cldrjs/dist/cldr.js"></script>
<script src="~/lib/cldrjs/dist/cldr/event.js"></script>
<script src="~/lib/cldrjs/dist/cldr/supplemental.js"></script>
<!-- globalize scripts -->
<script src="~/lib/globalize/globalize.js"></script>
<script src="~/lib/globalize/globalize/number.js"></script>
<script src="~/lib/globalize/globalize/date.js"></script>
<script src="~/lib/jquery-validation-globalize/jquery.validate.globalize.js"></script>
<script type="text/javascript">
$.when(
$.get("/lib/cldr-json/cldr-core/supplemental/likelySubtags.json"),
$.get("/lib/cldr-json/cldr-numbers-full/main/fr/numbers.json"),
$.get("/lib/cldr-json/cldr-core/supplemental/numberingSystems.json"),
$.get("/lib/cldr-json/cldr-dates-full/main/fr/ca-gregorian.json"),
$.get("/lib/cldr-json/cldr-dates-full/main/fr/timeZoneNames.json"),
$.get("/lib/cldr-json/cldr-core/supplemental/timeData.json"),
$.get("/lib/cldr-json/cldr-core/supplemental/weekData.json")
).then(function () {
// Normalize $.get results, we only need the JSON, not the request statuses.
return [].slice.apply(arguments, [0]).map(function (result) {
return result[0];
});
}).then(Globalize.load).then(function () {
Globalize.locale("fr");
});
</script>
When I launch the web application, I have no javascript error in the Console, no Network error.
The client side application works, but it is still in english, not in french:
Does anyone have already managed to change the culture for the client side validation in an ASP.NET 5.0 MVC application ? Can you give me some pointers to check or share me some links to read ?
I am trying to get clickable links in my pdf using Phantomjs. The links that I have specified in my html page using anchor tags do not render into clickable links in the pdf. I am using version 1.9.0. Is there a way to accomplish this?
Simple html file:
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>HTML</title>
</head>
<body>
<div><span>Here</span></div>
</body>
You should upgrade your PhantomJS version if you can. Usually newer versions have fewer bugs, more capabilities and better performance.
Current PhantomjS version is 2.1.1 and using that version I made a PDF of your HTML with the perfectly clickable link.
The sample script:
var page = require('webpage').create();
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0';
page.viewportSize = { width: 1280, height: 1024 };
page.open('https://jsbin.com/buxuxanigo/edit?output', function() {
setTimeout(function(){
page.render('jsbin.pdf');
phantom.exit();
}, 2000);
});
The result PDF is tested in Foxit PDF Reader under Windows 7:
I am using the blueimp fileupload basic plugin in my project. It all works well in Safari, Firefox, Chrome but there is a problem with Internet Explorer 9 and below:
The start callback gets called and in the network tab of developer tools I see the ajax call being executed. However the file is never being upload (I checked on the server, too) and the call eventually ends up in a 408 request timeout.
Any hints on what could be the reason?
Here are my relevant code parts:
<input class="input-file" id="fileupload" name="files[]" data-url="/app_dev.php/backend/ajax/upload/wish/1850cf918a43d42" type="file">
<script type="text/javascript" src="js/jquery/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/uploader/vendor/jquery.ui.widget.js"></script>
<script type="text/javascript" src="js/uploader/jquery.fileupload.js"></script>
<script type="text/javascript" src="js/uploader/jquery.iframe-transport.js"></script>
<script>
$(document).ready(function() {
$('#fileupload').fileupload({
dataType: 'json',
dropZone: null,
start: function (e, data){
console.log('start'); //fires in all browsers = fine
},
progress: function (e, data){
console.log('progress'); //fires in Safari, FF, Chrome = fine
},
done: function (e, data) {
console.log('done'); //never getting here in IE cause file doesn't get uploaded.
}
});
</script>
Problem fixed!
There were two issues. One had to do with local network settings.
The other was to implement the correct handling of content type negotiation. See https://github.com/blueimp/jQuery-File-Upload/wiki/Setup for more details.
Just my 5 ยข:
I had a very hard time trying to make it work with pretty links! Following dumps were totally empty!
var_dump($_FILES);
var_dump($_POST);
var_dump($_GET);
So:
$('#fileupload').fileupload({
url: 'http://code.dev/products/postUpload' // <--- remove trailing slash!!!
});
I've seen examples such as this one showing how to login to facebook with casperJS:
How to login into a website with CasperJS?
but am unable to get this code to work for me. I'm not interested in the login portion, I just want to load any facebook page into casperjs or phantomjs but keep getting a fail on load.
Is this working for anyone else? or has facebook detected the browser and not allowing access anymore?
Here is a simplified version of what I am unable to do:
var casper = require('casper').create({
verbose: true,
logLevel: 'debug',
pageSettings:{
userAgent :'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4' ,
loadImages: false, // The WebPage instance used by Casper will
loadPlugins: false // use these settings
}
});
casper.start()
casper.thenOpen('https://www.facebook.com/pfchangs', function() {
this.echo(this.getHTML());
//this just prints out empty page: <html><head></head><body></body></html>
});
casper.run();
I'm running this on Windows 7
Looks like this is known bug with casperjs windows batch file:
https://github.com/n1k0/casperjs/commit/0d659f140f1e2120bed967d8301657b5fe79f19c
I am running the following from inside of Aptana:
<html>
<head>
<title>New Adobe AIR Project</title>
<script type="text/javascript" src="lib/air/AIRAliases.js"></script>
<script>
function init() {
if(air.NativeProcess.isSupported) {
alert("NativeProcess is supported.");
} else {
alert("NativeProcess not supported.");
}
};
</script>
</head>
<body onload="init()">
</body>
</html>
And it says that NativeProcess not supported.
Do I need to compile this in order for it to work?
I thought I would be able to test it from inside of Aptana.
i've never used Aptana, although i assume the solution will be the same, but in Flash CS5 you can test native processes with ADL by selecting only the Extended Desktop profile in the AIR settings.
native process only work for desktop applications packaged as native installers.
Update
you need to have this somewhere in your code or descriptor file
<supportedProfiles>extendedDesktop</supportedProfiles>
read this for more info about device profiles for AIR: Device Profiles