Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-23-2012, 11:25 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 316
iphonegamedeveloper is on a distinguished road
Send a message via Yahoo to iphonegamedeveloper
Default customization in UIWebview

How can we turn of auto suggestion/auto complete feature in UIWebview. In my case i am loading a http page in web view which contains username/password fields.I need to turn auto caps feature.Please help
iphonegamedeveloper is offline   Reply With Quote
Old 01-24-2012, 12:35 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 316
iphonegamedeveloper is on a distinguished road
Send a message via Yahoo to iphonegamedeveloper
Default

Quote:
Originally Posted by iphonegamedeveloper View Post
How can we turn of auto suggestion/auto complete feature in UIWebview. In my case i am loading a http page in web view which contains username/password fields.I need to turn auto caps feature.Please help
Where i need to add this following line to disable auto-capitalization feature in web view's text field.

<input type="text" size="30" autocorrect="off" autocapitalization="on">.

Last edited by iphonegamedeveloper; 01-24-2012 at 12:37 AM.
iphonegamedeveloper is offline   Reply With Quote
Old 01-24-2012, 12:39 AM   #3 (permalink)
Registered Member
 
apatsufas's Avatar
 
Join Date: Jan 2011
Location: Thessaloniki, Greece
Posts: 121
apatsufas is on a distinguished road
Default

In the html page you are loading in your webView
__________________
SQLed - Your Database Manager on the go

iAZConverter - Converts everything from A to Z
apatsufas is offline   Reply With Quote
Old 01-24-2012, 12:40 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 316
iphonegamedeveloper is on a distinguished road
Send a message via Yahoo to iphonegamedeveloper
Default

Quote:
Originally Posted by apatsufas View Post
In the html page you are loading in your webView
I am not loading my html page.I am loading some 3rd party sites. How can i add this lines in their html page.Please help.
iphonegamedeveloper is offline   Reply With Quote
Old 01-24-2012, 12:47 AM   #5 (permalink)
Registered Member
 
apatsufas's Avatar
 
Join Date: Jan 2011
Location: Thessaloniki, Greece
Posts: 121
apatsufas is on a distinguished road
Default

Unless you have access to their webServers you can't.
__________________
SQLed - Your Database Manager on the go

iAZConverter - Converts everything from A to Z
apatsufas is offline   Reply With Quote
Old 01-24-2012, 12:54 AM   #6 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 316
iphonegamedeveloper is on a distinguished road
Send a message via Yahoo to iphonegamedeveloper
Default

Quote:
Originally Posted by apatsufas View Post
Unless you have access to their webServers you can't.
No, I don't have access to their sites. Just loading their webpage. When i tap the username tet field i am able to get the notification for keyboard(like uikeyboardwillshow).In the notification callback method, i ma getting the following info

UIKeyboardAnimationCurveUserInfoKey = 0;
UIKeyboardAnimationDurationUserInfoKey = "0.25";
UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {1024, 396}}";
UIKeyboardCenterBeginUserInfoKey = "NSPoint: {512, 966}";
UIKeyboardCenterEndUserInfoKey = "NSPoint: {512, 570}";
UIKeyboardFrameBeginUserInfoKey = "NSRect: {{768, 0}, {396, 1024}}";
UIKeyboardFrameChangedByUserInteraction = 0;
UIKeyboardFrameEndUserInfoKey = "NSRect: {{372, 0}, {396, 1024}}"


Is there any way to work on keyboard instead of textfields. My intention is to disable auto capitalization and auto suggesstion. Thanks
iphonegamedeveloper is offline   Reply With Quote
Old 01-24-2012, 01:11 AM   #7 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

You can't change the keyboard configuration unless you have access to their site.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 01-24-2012, 01:17 AM   #8 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 316
iphonegamedeveloper is on a distinguished road
Send a message via Yahoo to iphonegamedeveloper
Default

Quote:
Originally Posted by Domele View Post
You can't change the keyboard configuration unless you have access to their site.
When i tap on username field in web view, I am able to get keyboard notification.Can't we change iPhone keyboard property?
iphonegamedeveloper is offline   Reply With Quote
Old 01-24-2012, 01:22 AM   #9 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

No.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 01-24-2012, 03:21 AM   #10 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 316
iphonegamedeveloper is on a distinguished road
Send a message via Yahoo to iphonegamedeveloper
Default

Quote:
Originally Posted by Domele View Post
No.

This works fine....

[webView stringByEvaluatingJavaScriptFromString:@"document. getElementById(\"Username\").setAttribute('autocap italize', 'off')"];

[webView stringByEvaluatingJavaScriptFromString:@"document. getElementById(\"Username\").setAttribute('autocor rect', 'off')"];


document.getElementByType is not working. Any idea? Thanks

Last edited by iphonegamedeveloper; 01-24-2012 at 03:25 AM.
iphonegamedeveloper is offline   Reply With Quote
Old 01-24-2012, 06:01 AM   #11 (permalink)
Registered Member
 
apatsufas's Avatar
 
Join Date: Jan 2011
Location: Thessaloniki, Greece
Posts: 121
apatsufas is on a distinguished road
Default

Probably because it's not a DOM function
__________________
SQLed - Your Database Manager on the go

iAZConverter - Converts everything from A to Z
apatsufas is offline   Reply With Quote
Old 03-22-2012, 06:16 AM   #12 (permalink)
iPhone Developer
 
Narender Mudgal's Avatar
 
Join Date: Dec 2008
Location: India
Age: 28
Posts: 156
Narender Mudgal is on a distinguished road
Send a message via MSN to Narender Mudgal Send a message via Skype™ to Narender Mudgal
Default Disable Go button

Any idea how to disable the go button
or how to fire a javascript event on the Go button
seems like in the webpage i am using textfield type is text not submit
hence Go button is not working. i want to call the same javascript function which is getting called on the login button present in that webpage.
I am not able to get the event fired for Go button on the keyboard
or else tell me a way to disable that Go button
or if i press Go my keyboard should resign.
Need help on this
Narender Mudgal is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 382
11 members and 371 guests
7twenty7, Atatator, condor304, FrankWeller, glenn_sayers, iphonedevshani, MAMN84, mraalex, QuantumDoja, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,122
Posts: 402,907
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:49 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0