Need tip how to make easiest .CSHTML autocomplete - html

I tried many methodes of making autocomplete in cshtml but no luck. In my project which I need to do names of diagnosis from (MS database), I got a task to do autocomplete but it always displays this error when I try my method of using jquery and ajax: error 404 for /Autocompletecontroller/GetSearch with this as an error also: When I open the jquery-1.8.0.js:8214 it shows me this xhr.send( ( s.hasContent && s.data ) || null ); So I think I'm kinda starting to give up this point, so if anyone can help me somehow it would mean the world to me. FYI I cant do .aspx files with web forums because other people are in this project as well so I can't just simply change that.

Related

Woocommerce Checkout page error SyntaxError: Unexpected token '<', "

Hi I've been facing an issue on my website avcpetstore.com
-theme used in this is (Porto ecommerce theme)
I've tried the following steps already.
disabling all plugins (doesn't workout)
disabling current theme and activation other 2 themes (doesn't workout)
Php memory limit increased already- permalinks setup multiple times (did't workout)
all other things in terms of debug did't workout.console showing
Browser's console showing this error
Unable to fix malformed JSON
checkout.min.js?ver=7.0.0:1 ---------- Unable to fix malformed JSON
Probably in your checkout page file while copy-paste code you miss clicked and remover or added symbol like '<' so you should review code from end to start looking for unintended content. Also you could try disabling (commenting) all the hooks to that file one by one, maybe there is mistake in them.
Also you can try using the default woocommerce template file to see if it start working again and trying adding your custom code on top of your fresh default file.

Firefox Addon : parse/save loaded jsons as HAR or text file

I'm trying out to build my first firefox addon, to solve a problem that I have at work :
I'm trying to automate a part of my daily work on a website I'm using (not developping). I have to crawl several lists on the website, dig an item in the list, to check some values, and do it again and again ...
Im used to developping in Powershell and python, not with a web browser. I have limited rights on the machine I'm working on. The only solution I can easily deploy is a firefox addon on a firefox portable. I'd like to use this to catch the json answers of the website (all of them), parse the answers for some values, and automate some kind of popup "Hey, This item in the list is between 90 and 100 !"
The network console allows me to see the jsons, and I know how to parse it well (I'm actually using a powershell script for this, but I can't connect it to the network console AFAIK)
I found a way to trigger the work at the right time :
function logJson(requestDetails) {
console.log("Chargement : " + requestDetails.url);
}
browser.webRequest.onCompleted.addListener(
logRequests,
{urls: ["*://*.crappywebsi.te/*"],
types: ["xmlhttprequest"]
}
);
This code logs the url at the right moment (every time a json is loaded)
Is it possible to catch the json on the fly, to parse it, look for specific values in a path, calculate something, and popup the result ?
Or just save the json somewhere ?
How ?
I dont want to add a button on the webpage. I want a signal that some values are right. a popup or console log is an good solution for me.
Thanks for your help !

Gmlib 1.5.3 Google Maps Script Error

GMLib 1.5.3 stopped working today :( , maybe 3-4 hours ago . When I try to zoom out , or move something I receive an error .
Is there a solutions for this ? Or any hope that it will be fixed soon ? ( if one may ask :) )
Thank you very much.
I had errors since last week on GMLib 1.5.3.
I resolved thanks to these 3 actions :
1 : Download the last 1.5.3 version like Cadetill says to inject an Google Api Gmap key
2 : I received a 404 error on page https://google-maps-utility-library-v3.googlecode.com/svn/trunk/styledmarker/src/StyledMarker.js => In fact Google migrate it to https://cdn.rawgit.com/jacopotarantino/google-maps-utility-library-v3/master/styledmarker/src/StyledMarker.js . Ok but where I could change this URL? It's on gmmapres.res files inside component directory. It's a ressource file, so you must edit with a resource editor. ANd change URL. ANd it work. On my solution, I integrated all content of this StyledMarked.js inside the file gmmapres.res. (Inside node). This secure my solution on futur url modification.
3 : After corrected these 2 previous steps, My gmap component still not working. In fact it was caused by an endless loop. I corrected exactly like Telecetera explain on this post : Endless Loop
And it's now working perfectly.
Hope this experience help some others persons.

how to add another environment in advanced template

I m using yii2 2.0-dev AdvancedTemplate and need to add another environment (API),
similar to the currently working Frontend, Backend.
I tried to copy the files and search trough the settings but there are still some errors
and I feel this is the wrong way to do it...
There should be automated/console way to do this... but I find nothing in the docs.
Any ideas ?
Just create folder API in /environments/[prod|dev|other] and call ./init command

Method or Data Member Not found for every control or event

Got a weird problem. I was debugging some code for a form and everything was working as intended for the most part when suddenly I began to get a "Method or Data Member Not Found" for every event of my form. It's like my form suddenly does not recognize any of my controls or events. I have all of my methods properly closed and did not rename any controls.
Any ideas on what would be the root of "Method or Data Member Not Found" for every single control with an event?
Thanks
Importing into a fresh database as talbright suggested gave me more descriptive error messages.
A fresh import, compact&repair, and renaming of appropriate control fixed the problem from occuring. As Remou suggested, regular maintenance can help prevent these sorts of problems.
edit for future readers: This problem occurred while using a shared front end file. So don't do that if possible.
I've found that any MISSING: reference can make the simplest of code fail.
Check in the visual basic window
Menu Tools -> References
look down the checked refences to see if any are MISSING
I just fixed the same error by renaming text and combo boxes something not so close to a concatenated Table & Field string. Actually just prepended those names with "tbx" and "cbx".