Virtual Keyboard API, setVisible problems

95 views
Skip to first unread message

mohammed

unread,
Oct 5, 2010, 4:49:49 AM10/5/10
to Google AJAX APIs
Hola, tengo problema de ocultar el teclado virtual en la carga.
code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" lang="ar">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script type="text/javascript" src="http://www.google.com/jsapi"></
script>
<script type="text/javascript">

// Load the Google Onscreen Keyboard API
google.load("elements", "1", {
packages: "keyboard"
});

var kbd; // A Keyboard object.

function onLoad() {
// Create an instance on Keyboard.
kbd = new google.elements.keyboard.Keyboard([
google.elements.keyboard.LayoutCode.ARABIC],
['t1']);


kbd.setVisible(false);

}

google.setOnLoadCallback(onLoad);
</script>

<style type="text/css">
#kbd{
right:auto !important;
}

</style>
</head>
<body>
<textarea type="text" id="t1" style="width: 600px; height: 200px;"></
textarea>

</body>
</html>
----------------
does not return any error
how can this error uncorrected?
thanks

Jeremy Geerdes

unread,
Oct 5, 2010, 6:50:43 AM10/5/10
to google-ajax...@googlegroups.com
Unfortunately, it's really difficult to debug something without a few more details than what you've provided. For instance, what is it doing (or not doing) that is wrong? The only thing that you've told us is that you have a problem on load and it doesn't throw any errors. The difficulties are only compounded by pasting code into Groups, which is notorious for messing up code formatting and such. So if the problem is simply that the script doesn't work, I would suggest either posting a link to the non-working page or a link to your code at pastebin.com

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

> --
> You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax...@googlegroups.com.
> To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
>

omr

unread,
Oct 5, 2010, 8:53:30 AM10/5/10
to Google AJAX APIs

Try the code given here:

http://codepad.org/DB39QuMY

Normally, setVisible(false) will merely 'minimize' the keyboard.
If you want to make it completely invisible, try this:

http://codepad.org/B5zMvV5Y

-- omr

mohammed

unread,
Oct 5, 2010, 11:21:38 AM10/5/10
to Google AJAX APIs
thank you very much.
Reply all
Reply to author
Forward
0 new messages