Hi all,
I don’t know what to do anymore!
I’ve been trying to fix this by myself but I just don’t seem to get over this weird red dot waltz!
Here’s the site : merlinregis.wixsite.com/accueil
I don’t understand why the system is giving me such a hard time with the code!
The visitor can enter key words in the input box or search with the drop menus
Right now, the errors I get in the developper console are :
public/pages/i93j3.js: Unexpected token (5:1) 3 | $w(“#Inventaire_Dataset”).setFilter( wixData.filter()) 4 | export function searchInput_keyPress(event, $w) { > 5 | .contains(“veh_year”, $w(“#input1”)) | ^ 6 | .contains(“brand”, $w(“#input1”)) 7 | .contains(“model”, $w(“#input1”)) 8 | .contains(“partName”, $w(“#input1”))
Loading the code for the site. To debug this code, open masterPage.js in Developer Tools.
Loading the code for the Accueil page. To debug this code, open i93j3.js in Developer Tools.
There was an error in your scriptTypeError: n is not a function
Sometimes there are less errors, but basically that DA**** red dot just wanders around no matter what moving around I do.
Here’s the code :
// Input search
import wixData from ‘wix-data’;
$w(“#Inventaire_Dataset”).setFilter( wixData.filter())
export function searchInput_keyPress(event, $w) {
.contains(“veh_year”, $w(“#input1”))
.contains(“brand”, $w(“#input1”))
.contains(“model”, $w(“#input1”))
.contains(“partName”, $w(“#input1”))
.find()
.then(res => {
console.log(“Dataset is now filtered”);
} )
.catch( (err) => {
console.log(err)
} } );
$w(‘#table1’).rows = res.items;}
// ===========
//Dropbox search
import wixData from ‘wix-data’;
export function searchDropdown1_change(event, $w) {
$w(“#Inventaire_Dataset”).setFilter( wixData.filter()
.contains(“veh_year”, $w(“#dropdown1”))
.contains(“brand”, $w(“#dropdown2”))
.contains(“model”, $w(“#dropdown3”))
.contains(“partName”, $w(“#dropdown4”))
.find()
.then(res => {
$w(‘#table1’).rows = res.items;}
};
}
Thanks in advance for ALL ANSWERS