manually Installing mdb5 pro (multiselect) - asp.net-core-mvc

I have manually installed the mdb5 pro package into my asp.net core mvc application as follows:
similar mentioned: here
unzip the folder and add it to my application under wwwroot folder
add script tag in my cshtml
Problem 1: the intellisense does not detect newly added folder
Problem 2: after giving full path to following scripts and adding the the code...nothing is working
<select class="mdb-select colorful-select dropdown-primary md-form" multiple searchable="Search here..">
<option value="" disabled selected>Choose your country</option>
<option value="1">USA</option>
<option value="2">Germany</option>
<option value="3">France</option>
<option value="4">Poland</option>
<option value="5">Japan</option>
</select>
<script src="~/mdbootstrap-pro/src/mdb/js/mdb.pro.js"></script>
<script src="~/mdbootstrap-pro/js/modules/select.js"></script>
<script src="~/mdbootstrap-pro/src/mdb/js/pro/select/select-option.js"></script>

Related

Unable to switch language in Firefox only in input-password

Have a very strange issue that I haven't encountered before,
Take for example: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_form_submit and replace the input type=text to password like this:
<form action="/action_page.php">
First name: <input type="text" name="FirstName" value="Mickey"><br>
Last name: <input type="password" name="LastName" value="Mouse"><br>
<input type="submit" value="Submit">
</form>
For some reason, in Firefox only I'm unable to switch the languages for the input[type=password], therefor, my passwords don't work in the app, in every other browser the password input works fine with switching the language ...
Also, in FF, if I change the input back to text - then I'm able to switch languages ...
I'm using MacOSX & Firefox Quantum 65.0.1 (64-bit)
Any ideas ?
A similar bug in Mozilla under Mac Can't switch keyboard layout on input type="password" is closed as invalid, but it seems under Ubuntu it's a bug indeed.

Telerik Hybrid Mobile App Issue showing Japanese chars in View

I am building the HTML5 Hybrid mobile app with the help of Telerik AppBuild platform and in one of the view (components/loginview/view.html) I am trying to show language selection dropdown as follows:
<select data-bind="value: addFormData.languagelist" data-role="dropdownlist">
<option value="en">English</option>
<option value="ja">日本語</option>
</select>
But for my surprise whenever I run the simulator I get the question marks instead of 日本語 characters.
I checked the main index.html file and found that there is proper meta tag like <meta charset="utf-8" /> present needed to set the charset. I am very much new to this dev platform. So appreciate your help.
Try using a different font in your CSS (reference). Whichever font you are using doesn't have support for those characters and just leaves the question marks as placeholders.

How to embed URL into HTML

I’m trying to link web-pages via HTML dropdown menu on wix platform. Since Wix doesn’t support external coding, I’ve to find a way how to embed URL into HTML. Unfortunately, I’m unable to figure this out. I would greatly appreciate it if anyone can help me out. This is the code I’m using.
Search by Continent:
<select name="none"id="s">
<option selected="selected"value="one"></option>
<option value="two">Africa</option>
<option value="three">America</option>
<option value="four">Asia</option>
<option value="five">Australia</option>
<option value="six">Europe</option>
<input type=button value="Go" onclick="goToNewPage()"/>
</select>
You can use this HTML embed code
<p>Visit google</p>
Visit google

Phonegap file selection with only images and camera

I'm using an input type="file" field in my phonegap mobile app with accept="image/*" set, however the Android file selector keeps showing "Voice Recorder" and "Camcorder" as shown in the screenshot below. Is there a way to fix this without the use of a filepicker plugin? If no, which plugins should I use/are up to date (iOS and android)?
<input type="file" name="photo" onchange="myfunc();" accept="image/*;" >
Screenshot:
"Choose an action" file selector on Android
There is a small error in your code. accept="image/*;". There is a semicolon ; in your code. The correct way should be like
<input type="file" name="photo" onchange="myfunc();" accept="image/*" >

Struts2 Select UI tag: problem with rendering in Firefox with selected item

I have problem with Struts2 select UI tag. Firefox doesn't show selected item. I have code in JSP:
<s:select list="allCategories" value="2" listKey="id" listValue="categoryName" name="selectedCategory" key="shortcut.add.category" required="true" />
It renders into:
<select gtbfieldid="49" name="selectedCategory" id="inputShortcuts_selectedCategory">
<option value="1">23456</option>
<option value="2" selected="selected">Catg1</option>
<option value="3">updated</option>
<option value="6">Category</option>
</select>
When I open this action in IE, it renders fine (option Catg1 is selected by default). But Firefox (3.6) shows first option as selected. How can I resolve it? I use xhtml theme of Struts2.
Your generated HTML displays correctly for me in Firefox 3.6.11. Have you confirmed that you are not viewing a cached version of the page? I see that gtbfieldid is being added to the rendered output. Isn't that from Google Toolbar? Perhaps that is interfering with something?
I can't see anything visibly wrong with your select element that would prohibit it from working properly in any browser.

Resources