Dojo Textbox spellchecking not working in IE - javascript

I am using DOJO "dijit/form/TextBox" TextBox control. Seems to be working fine in chrome as well in IE. Except in IE the spell checking is not working in the textbox.
Is there something specific that I need to handle to work in IE?
Following image is for IE
Following image is for Chrome

Did you try to turn-on spell checker in IE?
Manage Add-ons->Spelling Correction->English(United states) and then check "Enable spelling correction" checkbox at the bottom.

Related

disable autosuggest/autocomplete on chrome/safari on my website

autosuggestion/ autocomplete on input box in safari
Hey guys I am trying to turn off the auto-complete/ auto-suggestion that comes on the input box on my website. (The issue is both with Google chrome and Safari).
I want to turn it off for any user who comes to my website i.e. from the code not the settings of the browsers.
I have already tried a variety of things like auto-complete = "off" , auto-complete = "false" , css styling of "display: none" and also jquery hacks like
var x = document.getElementsByClassName()
x.autocomplete = 'off';
But nothing seems to work here. Can anyone please tell me the solution to the above problem . Also the version of chrome is : 53.0.2785.143
and safari is : 9.1.1 (11601.6.17)
Thanks!
In some cases, the browser will keep suggesting autocompletion values even if the autocomplete attribute is set to off.
So try once assigning random string to atrribute.
autocomplete="nope"
Since this value is not valid one , the browser must give up.

jquery formatcurrency error on IE and Chrome

I'm having a problem on IE and Chrome when using the jQuery Format Currency and the jCaret plugins.
The problem is described here: http://code.google.com/p/jquery-formatcurrency/issues/detail?id=23&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Opened
When using the fix shown there, format as you type only works on Firefox. On other browsers the cursor stays "blocked" on the input control and you can't select other control. It seems the focus() event is looping.
I've created a jsFiddle to test this situation: http://jsfiddle.net/B3xA6/4/
Help is appreciated on getting this to work (especially on IE).
Thank you

Code won't work properly in Firefox or IE

Here is what is supposed to happen:
The moment the user chooses an option a certain combination of input fields should show up along with two tables.
When the user fills in the input fields and clicks the button, the results should appear in the tables.
Those tables aren't showing up. The input fields don't even show up in js fiddle.
It only works in the newest versions of Firefox, Chrome, Safari and IE.
Not in firefox 6.0 or IE 9.08.
I made the mistake of coding exclusively in Chrome at home to discover that my code doesn't work when I tried to continue working at school.
I used jsfiddle.net to validate my code and did so successfully. Although it still won't work. It doesn't even show up properly inside jsFiddle.
Here is the fiddle to demo the code:
http://jsfiddle.net/Q2nz5/5/
The outputTable method contains line Caption.align = "middle", which cannot be executed in IE and apparently in FF as well. replace it with Caption.style.textAlign = "middle"; and it will fix the problem.
The same with MCaption.
But the best you can do here is to define all styles like that in css.
In your js fiddle you were getting this error: inputOutputCreator is not defined. It is because you are loading your js in the mootools onLoad function. Change it from onLoad to no wrap in the jsfiddle settings to the left. With that changed it worked just fine for me.

Javascript autocomplete works in IE and Chrome, doesn't work in Firefox

I'm working on a client's site which utilizes a Javascript autocomplete feature in the search form. The website is in Hebrew, but please don't let that scare you away - my issue is in code, not English. :)
Link: -removed by author-
Most of the autocompletion options are in Hebrew but I added "test" so that it will be easy to test in English as well.
Basically this autocomplete script generates a text input box, and when the user types in a letter (onkeyup), a list of common values are offered (e.g. "test").
This works fine in both Chrome and IE, but for some reason Firefox is behaving differently.
When you enter a letter in Firefox, according to the error console:
Error: searchResult1 is not defined
Source File:
Line: 1
Same goes for searchResult0 in the second input field (line ~460 in the source code).
If you look at -removed- the autocomplete script does work in Firefox, so I don't really know what it is I could have changed that broke its functionality.
Thank you for any help with this :)
The problem is onkeyup="searchResult1.style.visibility='visible';...", it should be document.getElementById('searchResult1').style.visibility - you are referring to an element by its ID. It's an old MSIE feature that elements with an ID turn into "global variables" but that's really not something you should use. Other browsers implemented support for this misfeature ("global scope pollution") to stay compatible with MSIE but it is merely a compatibility layer and only kicks in under certain conditions.
Why don't you try using jquery autocomplete plugin rather than writing something on your own. The javascript written is not proper.
Its best to use the jquery autocomplete plugin. I see in you code you are jquery1.5.2
Autocomplete Demo:
http://view.jquery.com/trunk/plugins/autocomplete/demo/
Download and documentation
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

html placeholder attribute in Firefox and IE for both text and password input

I found that does not work in IE and FF. I found some Javascript work arounds but the place holder text on the password would be stared out. I know this works the way it should in Chrome and i think Safari since they are both Webkit. Anyone have any idea or know of a working fix for IE and FF?
Your only workaround would be placing a label on top of the text/password box and hiding it/showing the actual box when it's getting focus. For example, look at this jQuery plugin that will do exactly what you want.
You can create a fake password field.

Categories

Resources