I am trying to implement autocomplete textbox using knockoutJS in MVC3 Razor.
Copied the HTML and Script from jsfiddle.net/rniemeyer/YNCTY/ and tried executing
it. This throws an error "Uncaught SyntaxError: Unexpected token ILLEGAL"(found this in firebug/chrome console) in the line ko.applyBindings(viewModel);
Note: I have added the required references and embedded the script in script tags.
Any help will be greatly appreciated as I am stuck.BTW I am pretty new to knockoutJS.
I could get autocomplete textbox working using
https://github.com/madcapnmckay/Knockout-UI/tree/master/examples
Related
im using the new EXT:form extension from Typo3 8. I put it in my own extension folder so i made a custom template for it. This works fine until the point i want to integrate Google recaptcha into it.
I want to use the EXT:recaptcha for this:
https://docs.typo3.org/typo3cms/extensions/recaptcha/Index.html
In the sample EXT:form layout the recaptcha works without problems. But when im switching back to my layout i get the following error message:
Oops, an error occurred! The validator preset identified by
"Recaptcha" could not be found, or the implementationClassName was not
specified.
What i have to do? Anyone has an idea?
I know this question is quite old, you probably found the solution already.
I'm quite sure you did not include the static template. After adding the recaptcha template to my root template the validator was available.
I have installed upload_example extension in TYPO3 7.6.11. It works very well from admin. However, when i try to submit form with images it throws the error: 1298012500: Required argument "newExample" is not set for Helhum\UploadExample\Controller\ExampleController->create.
I checked every configuration, everything is set. I stuck. I am new in typo3.
Can you help please?
Thank You
You can debug using debugutility inside initializeMethodAction(). I must be called in such case when model argument is not found.
Or as a reference for file uploading you can refer this link. hopefully, it will help you
http://blog.typo3servers.info/show/typo3-extbase-fal-image-upload/
I am using an external JS file to generate QR codes
The JS file is loading correctly, it just can't refer to that function. The specific error I am getting is:
Uncaught ReferenceError: qrcode is not defined
enter image description here
The error suggest the tag qrcode could not be found. Is it in your HTML page as id? Also as suggested in the comment you need to do new $wnd.QRCode(... in createQRCode. Also you could pass the element found as argument to the latter method and do the search getElementById in GWT code as Java and use: Document.getElementById
I am trying to get an area chart in my application however, I cannot get even the most basic one displayed (I literally checked to see if their implementation would work but it doesnt and throws this error)
Example I tried to run http://www.moxiegroup.com/moxieapps/gwt-highcharts/showcase/#area-range
com.google.gwt.core.client.JavaScriptException: (TypeError)
#org.moxieapps.gwt.highcharts.client.BaseChart::nativeRenderChart(Ljava/lang/String;Lcom/google/gwt/core/client/JavaScriptObject;ZZLcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)([string:
'Chart', JavaScript object(10), bool: false, bool: false, JavaScript
object(36), JavaScript object(37), JavaScript object(38), JavaScript
object(26), JavaScript object(32), JavaScript object(25), JavaScript
object(30), JavaScript object(31), JavaScript object(34), JavaScript
object(35)]): $wnd.Highcharts is undefined
Is it possible im using the incorrect JQuery? Any and all help is greatly appreciated since this feature is important to our application
The reason for this error was that while I was including highcharts.js, i was not including highcharts-more.js. Including this solved my problem!!
I'm using the JSTreeGrid in an ASP.NET application. The implementation of the JSTreeGrid works fine in the application in which it was designed in tested. However when I moved it over to another application I recieved the following error message below:
Microsoft JScript runtime error: Object doesn't support this property or method
When I initially moved the implementation over I discovered and corrected issues related to the new application forms utilizing Masterpages. The container names were concatenated to the div tags and the scripts were not finding the declared div tag IDs specified in the script. The application that I moved it from did not use Masterpages. I feel resonably certain that the error is related.
The error occurs in the _prepare_grid: function in the jstreegrid script when obj.each(function () section of script is run.
Any insight would be appreciated. Thanks
When you use master pages the Client ID of your DOM elements ia manupulated by the server.
This is due to the chace that you will use the same id both in the master page and in your derived page... when calling Jquery function i would guess that you use id selector i.e. $('#someID').doSomething() ...
When using master one of the solutions is to use the following selector as an exmaple:
$('[id$=myButton]').click(function(){ alert('button clicked'); });
This means that Jquery will select the element with an ID attribute that end with 'myButton'.
for more information follow this post.
How to use JQuery with Master Pages?