dojo textbox value is not visible in chrome after using disable attribute - dojo

I'm using DOJO 1.7 for UI and i have problem with dojo textbox if i disabled a textbox value in that text box is not visible fully gray color is appears in chrome please help me how to solve it. thanks in advance. and code snippet is:
<td><input dojoType="dijit.form.TextBox" trim="true" id="testId" name="test" maxlength="10" value="value is there" disable="disable" />

You should be using the disabled attribute, not disable, so for example:
<input dojoType="dijit.form.TextBox" trim="true" id="testId" name="test" maxlength="10" value="value is there" disabled="disabled" />
This should work fine, also in Google Chrome as you can see in the following fiddle.

Related

ionic range, disable on android

I am using in my application ionic range slider. But I need it just for showing progress, that meens that I have to disable changing its value by user (it must be readonly).
html looks like this:
<input type="range" name="time" min="0" max="60" value="0" ng-model="rangeValue" readonly disabled="disabled" >
on emulator in browser that works as a charm, but on android device I am able to change the value :(.
Any suggestion how to do it?
May be this will help you...
<input type="range" min="0" max="10" value="5" step="1" readonly disabled>
You can put whatever value in value=""

Products default sort not working on search.tpl - Prestashop 1.6.0.6

I set up in backoffice the default sort type to : in stock. this works for all pages except SearchController template file : search.tpl.
What can be the causes behind such dysfunctionning? I really don't know what part of code to deal with. Thanks everyone who already met such issue for advices.
Edit:
I discovered that the link in the adress bar after click on search button is:
website/index.phpcontroller=search&orderby=position&orderway=desc&search_query=design+40&submit_search=Rechercher
When I remove orderby=position&orderway=desc, the default behaviour works. I just need to remove this action from controller but still don't know how.
In template file, I found:
<form method="get" action="{$link->getPageLink('search')|escape:'html'}" id="searchbox">
<p>
<label for="search_query_top"><!-- image on background --></label>
<input type="hidden" name="controller" value="search" />
<input type="hidden" name="orderby" value="quantity" />
<input type="hidden" name="orderway" value="desc" />
<input class="search_query" type="text" id="search_query_top" name="search_query" value="{$search_query|escape:'html':'UTF-8'|stripslashes}" />
<input type="submit" name="submit_search" value="{l s='Search' mod='blocksearch'}" class="button" />
</p>
</form>
As you see, I have already changed the value of the hidden input to quantity. Hope it helps.

text fade on input field, where is this being configured

i have this website im building, my client is using a template and the template has contact forms, now i cant seem to understand how to get the text fade on click for input fields to work on any additional fields i make on top of what was there on the template.
http://daniloportal.com/NPC2/contact.html
on that page take a look at the form, the values with *'s disappear but the clone EMAIL input i made doesnt cause i took the * off the value.
Ive been going crazy trying to figure out where this is being configured on the page, If any inspect elementors can take a look and let me know i would greatly appreciate it!
this is the code snip
<form id="ajax-contact-form" action="">
<input type="text" name="name" value="Name *" title="Name *" />
<input type="text" name="email" value="Email *" title="Email *" />
<input type="text" name="email" value="Email " title="Email *" />
<textarea name="message" id="message" title="Message *">Message *</textarea>
<div class="clear"></div>
<input type="reset" class="btn btn_clear" value="Clear form" />
<input type="submit" class="btn btn_blue btn_send" value="Send message!" />
<div class="clear"></div>
</form>
Search your code to find what makes the input's value disappear. E.g., look for behavior that clears the value of form fields (either element.value = '' if using plain javascript, or element.val('') if using jquery).
Then you can see what is the condition to clearing it. In your case, seems that the condition is that the input's value is equal to it's "title" attribute (you can edit both using "Inspect Element" in Chrome).

Dojo autocomplete=on for textfields

I had changed my app from using normal html textfields to dijit textfields. After adding the dojo the textfields are not showing the previously entered values in the textfields as soon as i type the first character so that i need not type the text again.. is this the default behaviour of dijit textfield widget. how can i make the textfield autocomplete. please help me. i tried using the below statement in addOnLoad method but no luck
dojo.attr(dijit.byId('username').textbox, "autocomplete", "on");
How did you declare your textfield ? The following works for me :
<div id="form1" data-dojo-type="dijit.form.Form" method="post">
<input data-dojo-type="dijit.form.TextBox" name="text" id="text" autocomplete="on"/>
<input type="hidden" name="delay" value="2"/>
<button data-dojo-type="dijit.form.Button" type="submit">Send</button>
</div>
See http://jsfiddle.net/psoares/YZeTB/

webbrowser submit from vb.net doesnt work

I tried to ask this question once before but I didnt supply enough info. I have a form on a web site that I do not control so I can't change the web. From my vb.net app I need to be able to click the submit button after I fill out the needed text.
The text fills in ok, but the submit just refreshes the screen. I am wondering if I have to call Java or something?
The VBNet part looks this this:
Browser1.Document.Forms("Search").submit
I also tried this:
Browser1.Document.GetElementById("Search").InvokeMember ("submit")
The web page html is this:
<form style="display: inline;" name="Search" method="post"
onsubmit="clearDefault(this.freetext); this.action=addCategory(escape(this.freetext.value) + this.category_id.value + '.html'); return true;">
<table class="innerTable" border="0" cellpadding="0" cellspacing="0"><tbody><tr>
<td><input style="width: 131px;" value=" enter name" name="freetext" size="9" onfocus="clearDefault(this);" type="text"></td>
<td><input class="search" src="/images/search.gif" value="Search" title="Search" type="image"></td>
</tr></tbody></table>
</form>
Have you tried InvokeMember("click") ?
Browser1.Document.GetElementById("Search").InvokeMember("click")
You must set .AllowNavigation property to "TRUE"
Browser1.AllowNavigation = True
And call submit method like this
Browser1.Document.Forms(0).InvokeMember("submit")
Or
Browser1.Document.Forms.GetElementsByName("Search").Item(0).InvokeMember("submit")