| View previous topic :: View next topic |
| Author |
Message |
jfkansas
Joined: 21 Jul 2008 Posts: 63
|
Posted: Thu Sep 17, 2009 1:08 pm Post subject: |
|
|
| Hmm, now that one didn't work. |
|
| Back to top |
|
 |
Steve
Joined: 17 Jan 2008 Posts: 337
|
Posted: Thu Sep 17, 2009 1:18 pm Post subject: |
|
|
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 |
|
 |
jfkansas
Joined: 21 Jul 2008 Posts: 63
|
Posted: Thu Sep 17, 2009 1:32 pm Post subject: |
|
|
It didn't change the case.
$(spec['V01Name']).css('text-transform', 'capitalize');
This is how I have it entered. |
|
| Back to top |
|
 |
Steve
Joined: 17 Jan 2008 Posts: 337
|
Posted: Thu Sep 17, 2009 1:46 pm Post subject: |
|
|
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 |
|
 |
jfkansas
Joined: 21 Jul 2008 Posts: 63
|
Posted: Thu Sep 17, 2009 2:06 pm Post subject: |
|
|
| 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 |
|
 |
Steve
Joined: 17 Jan 2008 Posts: 337
|
Posted: Thu Sep 17, 2009 2:11 pm Post subject: |
|
|
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 |
|
 |
jfkansas
Joined: 21 Jul 2008 Posts: 63
|
Posted: Wed Jan 06, 2010 2:28 pm Post subject: |
|
|
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 |
|
 |
Steve
Joined: 17 Jan 2008 Posts: 337
|
Posted: Wed Jan 06, 2010 2:59 pm Post subject: |
|
|
| 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 |
|
 |
|