Forum Four51° Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

First upper once in spec form field
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Forum Four51° Forum Index -> Pageflex (L3 - L4)
View previous topic :: View next topic  
Author Message
jfkansas



Joined: 21 Jul 2008
Posts: 63

PostPosted: Thu Sep 17, 2009 1:08 pm    Post subject: Reply with quote

Hmm, now that one didn't work.
Back to top
View user's profile Send private message
Steve



Joined: 17 Jan 2008
Posts: 337

PostPosted: Thu Sep 17, 2009 1:18 pm    Post subject: Reply with quote

In what way did it not work? I tried it out and it worked fine. It's actually doing what I already set it to do in that script. That script was just ensuring it only did it once, but I found that the css style doesn't need to have that tracking.
_________________
Steve

You can read about other advanced tech topics on the http://www.insightsfour51.com/?cat=3
Back to top
View user's profile Send private message
jfkansas



Joined: 21 Jul 2008
Posts: 63

PostPosted: Thu Sep 17, 2009 1:32 pm    Post subject: Reply with quote

It didn't change the case.

$(spec['V01Name']).css('text-transform', 'capitalize');

This is how I have it entered.
Back to top
View user's profile Send private message
Steve



Joined: 17 Jan 2008
Posts: 337

PostPosted: Thu Sep 17, 2009 1:46 pm    Post subject: Reply with quote

Certainly strange. I even set a default value without caps and it renders with caps immediately. Even changes the characters as you type.
_________________
Steve

You can read about other advanced tech topics on the http://www.insightsfour51.com/?cat=3
Back to top
View user's profile Send private message
jfkansas



Joined: 21 Jul 2008
Posts: 63

PostPosted: Thu Sep 17, 2009 2:06 pm    Post subject: Reply with quote

I tested it with FF 3.5 and IE8. Same result, but I am on the admin spec form, would it work different on a buyer site?
Back to top
View user's profile Send private message
Steve



Joined: 17 Jan 2008
Posts: 337

PostPosted: Thu Sep 17, 2009 2:11 pm    Post subject: Reply with quote

I see what you're saying. Stick with the first solution.
_________________
Steve

You can read about other advanced tech topics on the http://www.insightsfour51.com/?cat=3
Back to top
View user's profile Send private message
jfkansas



Joined: 21 Jul 2008
Posts: 63

PostPosted: Wed Jan 06, 2010 2:28 pm    Post subject: Reply with quote

Hello,

We have tried to implement this on a couple of occasions. For me it works, but for the end user strange things happen.

If the name is entered as title case then submitted without tabbing to the next field the preview goes to all lowercase. I can replicate this part but I know to tab to the next field so a "blur" happens.

Are there any small fixes that would prevent this from happening? I tried changing the blur to submit and it didn't work.
Back to top
View user's profile Send private message
Steve



Joined: 17 Jan 2008
Posts: 337

PostPosted: Wed Jan 06, 2010 2:59 pm    Post subject: Reply with quote

jfkansas wrote:
Hello,

We have tried to implement this on a couple of occasions. For me it works, but for the end user strange things happen.

If the name is entered as title case then submitted without tabbing to the next field the preview goes to all lowercase. I can replicate this part but I know to tab to the next field so a "blur" happens.

Are there any small fixes that would prevent this from happening? I tried changing the blur to submit and it didn't work.


You can add some code to the onsubmit function of the spec form:

Code:
specForm.onsubmit = function() {
   spec['specname'].trigger('blur');
};

_________________
Steve

You can read about other advanced tech topics on the http://www.insightsfour51.com/?cat=3
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Forum Four51° Forum Index -> Pageflex (L3 - L4) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group