Highchart/Highstock AMD support - highcharts

Could anyone confirm if current versions of Highchart/Highstock support AMD - i.e. can I simply point the locations of the scripts using require.js or what should I use instead (shims or paths or..)?
I'm getting random loading errors mainly during "cold" start. There're two different errors:
Uncaught TypeError: undefined is not a function (line 288, col 506)
no errors in the console but the actual chart doesn't get displayed only its bottom part "navigator".
I'm using google chrome with caching disabled. If I press F5 5-10 times likely one of reloads will produce the error.
I've tried the following three options (I'm using highstock herein HC):
HS configured via "script"
HS configured via "shim"
HS configured as a generic AMD
still getting the error.

Related

Google's Link Checker script returning URL errors that are not broken

I have implemented Google's Link Checker Script into my account and, although it runs without errors, it frequently flag URLs having issues but when manually checked, those URLs are working fine.
When we receive an email saying that there is an error found, we go and check the Google sheets where the scripts would log the errors and it is usually "Address not Available" . It then logs the actual URLs and the related ad groups, keywords etc.
I don't really understand why the script keeps flagging the url as not available when it is working fine.
Link to the script -> https://developers.google.com/google-ads/scripts/docs/solutions/link-checker
thanks.
The main issue here is that we wrote a custom script that will check if any url erros has occurred as a result of the link checker and, if so, we would pause the related ad groups and we do not want to be pausing adgroups without a genuine reason.

Passing multiple parameters to SSRS with URL

I'm using Visual Studio 16.4.5 with SSRS 15.0.1659.0
Currently, I'm trying to pass a URL in native mode with three parameters:
="https://reporting/ReportServer?/Production/Equipment/Prime%20On%20Rent%20No%20Shipper&AttachmentOption=N&Store=" & Fields!StoreNumber.Value & "&Division=" & Parameters!Division.Value
Every time I click the resulting box on the server side, I get:
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'DataSet1'. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
I've tried wrapping it in javascript, even though I don't want to use javascript for this. I just want to be able to open the target report with the parameters in it. What am I doing wrong?
So, a couple of things:
I had the wrong alias for one of the tables in my query, so it couldn't be found.
I had to make the two initial variables accept multiple values so that I could join them in the final URL.
Once I fixed those issues, it worked!

Local paths active and causing error to web app. after publish

We're trying to publish our little web app here.
I've done it several times in the past and it worked pretty well.
As the tags states, its a MVC ASP.Net project coded with VS2008.
Other interns worked on that project and we tried to re-publish again and we have this error:
[IndexOutOfRangeException: Index was outside the bounds of the array.]
XXXXXXX.XXXXXXXRepository..ctor() in
E:\XXXXXX\YYYYYYY\ZZZZZZ\XXXXXXXRepository.vb:11
XXXXXXX.HomeController..ctor() in
E:\XXXXXXX\YYYYYY\ZZZZZZ\Controllers\HomeController.vb:10
Problem is, the path pointed here E:\XXXXXXX....*Controller or *Rep is located on the LOCAL machine where the dev. is made. It's as if something was hardcoded directly in our local machines in the Rep.VB and HomeController.VB. It should point in the path where we published the whole project wich is not E:\XXX\YYY\ZZZ
Anyone ever encountered this ?
Thanks alot guys
Have a nice day.
-Tom
That is just information about where to search error in source files, so those paths have nothing to do with error appearance, they just for debugging purposes - if you will compile from your machine, they will change, but error will not dissapear.
Error message indicates, that problem is, that code tries to access array element, which is not there (let's say array has 1 element and program tries to access second one).

JQuery Mobile. Was working, but now has a bug

I have an app that uses jquery.mobile-1.0a4.1.js. The script has worked every time, but now when I try it there is a 1 in 3 chance that I will get this error:
$.mobile.pageContainer is undefined
[Break On This Error] $.mobile.pageContainer.addClass(className);
I have added the origional version and tried again, but I still get the error (line 2425)
Is there any JQuery Mobile version I get that will be error free? Again this error is in the mobile file, and not my code (jquery.mobile-1.0a4.1.js)
Edit I get the same issue when I use the min version as well jquery.mobile-1.0a4.1.min.js
"1 in 3 chance" to me sounds like you have a race condition based on the download times of your scripts. You may want to look at firing custom events when everything is downloaded and ready to go instead of having a downloaded script immediately executing.
Again this error is in the mobile file, and not my code
The error is being reported in the JQuery mobile code, but it could be caused by an error in your script. Try creating a simple test script that uses JQuery mobile to see if you still get the error.
Make sure you still link to the correct JQuery.js file and that's still up.
It's always best to download a working JQuery script and host it on your own server though. So no changes will ever be made to it.
As for your question if there are other JQuery Mobile versions, I'm sure there are.. But that's what Google will help you with.

Why would an swf break when changing its export version from Flash 6 to 7?

I need to make a small modification to an existing Flash library (Fusion Charts Free) written in AS1 with Flash 6 as its publish version. My change uses ExternalInterface, which requires Flash 8, so I opened Publish Settings and changed the version to 8. No other changes were made.
Now the swf loads, but encounters some error part-way through its operation. If I change the publish version back to 6, it works again. Changing it to 7 breaks it. My questions:
Is there a complete list of changes between Flash 6 and 7 that affect existing AS1 code?
Is there any way to get real debugging output from an swf, to determine what has happened? It's frustrating that there doesn't seem to be any sort of log or console whatsoever. I've seen a few solutions that involve using ExternalInterface to log to Firebug or such, but obviously that isn't useful to me, given that my whole problem centers around exporting to Flash 8.
the externalInterface is probably not the reason for errors.. i tested myself to ensure.. (with flash8 + AS1).
1) maybe you accidentally selected AS2 instead..
2) the error is while compiling? or during it's running?
3) the error happens when you run it from the application? or as standalone? (when it's standalone the ExternalInterface might raise an exception because there's no "external interface".
4) what's the error?
5) try to put "try" block on the ExternalInterface part if the error is not while compiling..
6) if the error is while its running, then you have a debugger.. just press Ctrl+Shift+Enter
Having completed this project, I'll share my experience. Virtually all incompatibilities fell into three categories, described in this very useful article:
Flash 7 variables names are case-sensitive, so xPos and xpos are now separate variables and can't be used interchangeably. You would never do this anyway, if you were writing good code, but if you're trying to port some third-party code, as I was, this is the #1 problem to look out for.
Undefined variable values have changed. In Flash 6, numbers were initialized to zero and strings were empty. In Flash 7, a number is NaN and a string is undefined.
String boolean equivalents are different. In Flash 6, empty strings, or strings other than "1" evaluate to false. In Flash 7, a string with any contents evaluates to true; only empty strings evaluate to false.

Resources