Search found 133 matches

Go to advanced search

by TaterJuice
Wed Sep 20, 2017 4:28 pm
Forum: Technical Support
Topic: [SOLVED] Any\All jQuery causes Non-Translatable Function Exception: The function 'xxx' could not be translated.
Replies: 2
Views: 1514

Re: Any\All jQuery causes Non-Translatable Function Exception: The function 'xxx' could not be translated.

Hi, "$" is a reserved keyword for the "ExecuteJavaScript" method. It is used to pass arguments to the string literal (see the ExecuteJavaScript documentation ). If you want to use jQuery, you need to use "window.jQuery" instead of "$". For example, you can ca...
by TaterJuice
Mon Sep 18, 2017 9:37 pm
Forum: Technical Support
Topic: WebClient UploadString and Refused to set unsafe header "Content-Length"
Replies: 1
Views: 7590

Re: WebClient UploadString and Refused to set unsafe header "Content-Length"

I have been experiencing this issue lately. It causes my app to crash. I see you posted this December, 2016 (10 months ago). Did you ever find a solution? It is my understanding, this is a CORS issue, and we should be able to set the server's "Access-Control-Expose-Headers:" to expose the ...
by TaterJuice
Mon Sep 18, 2017 8:31 am
Forum: Technical Support
Topic: [SOLVED] Any\All jQuery causes Non-Translatable Function Exception: The function 'xxx' could not be translated.
Replies: 2
Views: 1514

[SOLVED] Any\All jQuery causes Non-Translatable Function Exception: The function 'xxx' could not be translated.

jQuery works in Simulator, does not work in .js output. Unable to use any jQuery in CSHTML5.Interop.ExecuteJavascript. await Interop.LoadJavascriptFile(urlToHostedjQueryDOTjs); Interop.ExecuteJavascript("$('#myElementID').show();"); Works in Simulator, NonTranslatable function Exception in...
by TaterJuice
Sat Sep 16, 2017 12:31 pm
Forum: Pre-Releases, Downloads and Announcements
Topic: Beta 11.19 of C#/XAML for HTML5 released (VS 2017 support! + Tuple<>)
Replies: 19
Views: 7153

Re: New Beta 11.19 released! [Download] (VS 2017 support! + Tuple<>)

Bahram wrote:Is it just for me or Storyboard completed does not work anymore for anyone!?!?!

Has never fired for me. I use DoubleAnimation.Completed, and I reported the StoryBoard.Completed bug here: http://forums.cshtml5.com/viewtopic.php?f=4&t=8134
by TaterJuice
Thu Sep 14, 2017 7:13 am
Forum: Technical Support
Topic: custom control or UserControl vs 3rd party javascript library as e.g. jQuery
Replies: 20
Views: 8144

Re: custom control or UserControl vs 3rd party javascript library as e.g. jQuery

Ah, I understand. Can you share a sample project where you have the KendoUI Button displaying, and give me an example of something you want to DO with the button (ie, what do you to do when the button is clicked?). I'm pretty sure I can help get you going.
by TaterJuice
Wed Sep 13, 2017 1:46 pm
Forum: Technical Support
Topic: custom control or UserControl vs 3rd party javascript library as e.g. jQuery
Replies: 20
Views: 8144

Re: custom control or UserControl vs 3rd party javascript library as e.g. jQuery

Can you share a sample project like what you just described? I think I might misunderstand your issue, but I'll give it a try anyway. A Sample project would be helpful in helping you troubleshoot. ------- So, I've never used KendoUI, and I'm not sure I understand your issue completely, but I do know...
by TaterJuice
Wed Sep 13, 2017 11:37 am
Forum: Technical Support
Topic: custom control or UserControl vs 3rd party javascript library as e.g. jQuery
Replies: 20
Views: 8144

Re: custom control or UserControl vs 3rd party javascript library as e.g. jQuery

So, if I understand you correctly, you're trying to create a clickable button which can have dynamic HTML content, including custom\external JS libraries and custom\external CSS?
by TaterJuice
Wed Sep 13, 2017 7:44 am
Forum: Technical Support
Topic: custom control or UserControl vs 3rd party javascript library as e.g. jQuery
Replies: 20
Views: 8144

Re: custom control or UserControl vs 3rd party javascript library as e.g. jQuery

FYI, when I inherit from HtmlPresenter: Exception thrown: 'System.InvalidCastException' in CSharpXamlForHtml5.dll Additional information: Unable to cast object of type 'GUI.KendoExtension.KendoUIButton' to type 'Windows.UI.Xaml.Controls.ContentControl'. What does your XAML look like? That error say...
by TaterJuice
Tue Sep 12, 2017 12:27 pm
Forum: Bug Reports
Topic: [SOLVED] Uncaught Error: No static method with signature 'System.Boolean Equals(System.String, System.StringComparison)
Replies: 1
Views: 1142

[SOLVED] Uncaught Error: No static method with signature 'System.Boolean Equals(System.String, System.StringComparison)

Since 11.18 (or maybe .17?), my output Javascript no longer works if I have, ANYWHERE in my code, defined a Linq Comparison with String.Equals(str, StringComparison enum) this throws an error: var results = values.FirstOrDefault((v) => v.Equals("SomeSearchString", StringComparison.CurrentC...
by TaterJuice
Tue Sep 12, 2017 9:04 am
Forum: Bug Reports
Topic: [SOLVED] Problem with deserialization in generated javascript
Replies: 7
Views: 3335

Re: Problem with deserialization in generated javascript

JS-Support wrote:...This will also allow to get rid of Sgen.exe and its generated code, as well as fix most of the current limitations of the XmlSerializer and also improve app size, compilation time and runtime speed.

Thanks
Regards
JS-Support


That sounds great! Thank you!
by TaterJuice
Fri Sep 08, 2017 9:49 am
Forum: Technical Support
Topic: How to override the default Loading animation for CSHTML5
Replies: 3
Views: 1993

How to override the default Loading animation for CSHTML5

How do I override the default loading animation for CSHTML5?

Image
by TaterJuice
Fri Sep 08, 2017 7:46 am
Forum: Bug Reports
Topic: [SOLVED] Path.Fill ignored in IE\Edge until after Resize
Replies: 7
Views: 2377

[SOLVED] Path.Fill ignored in IE\Edge until after Resize

OK, this is a really strange issue. In Microsoft Internet Explorer and Microsoft Edge the Path.Fill property is ignored on load. Only a resize causes the path to fill. I took a video of this behavior, in order to demostrate YOUTUBE VIDEO LINK: https://www.youtube.com/upload_thumbnail?v=RrS2cDluHHU&a...
by TaterJuice
Wed Sep 06, 2017 4:37 pm
Forum: Technical Support
Topic: How to call VelocityJS functions to implement missing Storyboard.Pause()/Resume() methods
Replies: 3
Views: 1837

Re: How to call VelocityJS functions to implement missing Storyboard.Pause()/Resume() methods

Excellent, Thank you! For anyone else with this question, this amounts to: Interop.ExecuteJavaScript("Velocity($0, 'stop', true);", Interop.GetDiv(_frameworkElement)); //velocity 1.2.3 Yay! Animations Pause , but..... Animations pause but the doubleAnimation.Completed event still fires, ev...
by TaterJuice
Tue Aug 29, 2017 12:03 pm
Forum: Technical Support
Topic: How to call VelocityJS functions to implement missing Storyboard.Pause()/Resume() methods
Replies: 3
Views: 1837

How to call VelocityJS functions to implement missing Storyboard.Pause()/Resume() methods

Are there plans to bring the functions Pause() and Resume() to the StoryBoard class? https://msdn.microsoft.com/en-us/library/ms605764(v=vs.110).aspx $element.velocity('pause');//velocity 1.4 $element.velocity('resume');//velocity 1.4 $element.velocity('stop', true); //velocity 1.2.3 VelocityJS 1.2....
by TaterJuice
Tue Aug 29, 2017 8:20 am
Forum: Technical Support
Topic: Callback type not supported: System.Func`1[TResult]: Interop.ExecuteJavaScript("value=$0()", (Func<TResult>)myMethod)
Replies: 3
Views: 1592

Re: Callback type not supported: System.Func`1[TResult]: Interop.ExecuteJavaScript("value=$0()", (Func<TResult>)myMethod

This seems to be very "finicky".... I think part of my problem is this line: Interop.LoadJavascriptFile(@"https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js""); This line works, but produces the "Non-Translatable Function" error when run in the browser.
by TaterJuice
Mon Aug 28, 2017 1:43 pm
Forum: Extensions and Plugins for CSHTML5
Topic: Particles & Weather for CSHTML5 - 0.1 ALPHA
Replies: 1
Views: 1968

Particles & Weather for CSHTML5 - 0.1 ALPHA

Vivrant.Particles Description: Particles and Weather for CSHTML5 (http://cshtml5.com/) Demo: http://vivrant-weathertests.bitballoon.com/ DLL Direct Download: https://www.dropbox.com/s/qojc5itv9f2mepe/Vivrant.ParticlesDLL.zip?dl=0 Source Download: https://github.com/taterjuice/Vivrant.Particles Mile...
by TaterJuice
Fri Aug 25, 2017 12:27 pm
Forum: Technical Support
Topic: Unable to get property 'GetHashCode' of undefined or null reference
Replies: 2
Views: 1175

Re: Unable to get property 'GetHashCode' of undefined or null reference

I am experiencing this issue as well.
My project works in simulator, but has this GetHashCode error in browser output.
by TaterJuice
Fri Aug 25, 2017 7:56 am
Forum: Technical Support
Topic: Callback type not supported: System.Func`1[TResult]: Interop.ExecuteJavaScript("value=$0()", (Func<TResult>)myMethod)
Replies: 3
Views: 1592

Re: Callback type not supported: System.Func`1[TResult]: Interop.ExecuteJavaScript("value=$0()", (Func<TResult>)myMethod

No, I can't get it to work in the browser, I'm not sure if that problem is related, but when I try to run my JS output, I receive the following CONSOLE errors: JSIL.Browser.js?20178250855:201 Error: The function 'System.Void Vivrant.CSHTML5.WeatherPanel.WeatherPanelControlTemplate/<>c__DisplayClass8...
by TaterJuice
Thu Aug 24, 2017 1:33 pm
Forum: Technical Support
Topic: Callback type not supported: System.Func`1[TResult]: Interop.ExecuteJavaScript("value=$0()", (Func<TResult>)myMethod)
Replies: 3
Views: 1592

Callback type not supported: System.Func`1[TResult]: Interop.ExecuteJavaScript("value=$0()", (Func<TResult>)myMethod)

I understand I can call a C# function from JS interop by calling Interop.ExecuteJavaScript("$0()", (Action)myCSMethod) However, I need to be able to return a string, or an array, from my CS Function, so I tried replacing "Action" with "Func<string>" as seen below, but I...

Go to advanced search

 

 

cron