What changed in 4.1.0 from 4.0.6 that caused my onblur to not work anymore?
onblur no longer works right
Collapse
X
-
onblur no longer works right
vBulletin - Sometimes, I'm just like, Wow, and then I'm like, Whoa, and then I'm like, Damn.
vBulletin.org's ol' Moderator
I have a lifetime terrorist hunting permit - #091101
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/ladenTags: None -
What is your onblur event and what is the error shown in your Javascript console?Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API -
It doesn't show an error, it just doesn't work in 4.1.0 PL2, but it did in 4.0.6. When you click outside the box/text area, it should put the original value back if the box is blank. It worked fine until I upgraded. Did some javascript change somewhere that would affect things like this?
Here is what I am using:
<input type="text" name="amount" size="6" value="{vb:raw vboptions.bppl_defaultamount}" onblur="if (this.value == '') { this.value='{vb:raw vboptions.bppl_defaultamount}'}" onfocus="if (this.value == '{vb:raw vboptions.bppl_defaultamount}') {this.value=''}" />vBulletin - Sometimes, I'm just like, Wow, and then I'm like, Whoa, and then I'm like, Damn.
vBulletin.org's ol' Moderator
I have a lifetime terrorist hunting permit - #091101
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/ladenComment
-
I don't know of anything that would cause this to stop working specifically. There is nothing wrong with your code either. For the mobile API, the scope of some variables were changed but $vboptions should still be available to the templates. What is the code after it is rendered and shown in the browser?Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
-
I don't know of anything that would cause this to stop working specifically. There is nothing wrong with your code either. For the mobile API, the scope of some variables were changed but $vboptions should still be available to the templates. What is the code after it is rendered and shown in the browser?
Code:<input type="text" name="amount" size="6" value="25.00" onblur="if (this.value == '') this.value='25.00';" onfocus="if (this.value == '25.00') this.value='';" />
vBulletin - Sometimes, I'm just like, Wow, and then I'm like, Whoa, and then I'm like, Damn.
vBulletin.org's ol' Moderator
I have a lifetime terrorist hunting permit - #091101
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/ladenComment
Related Topics
Collapse
-
by GuestOn a desktop device CKEditor is working well, but when CKEditor detects a mobile device, things are going wrong.
What are my findings:- Users are unable to select smilies. The smilie button
-
Channel: Support Issues & Questions
Thu 6 Mar '14, 2:49am -
by tombo82685I am getting an issue on my forum where the reply bar for posting is missing. Anyone know what to do? I cleared my cache, but it sometimes works, other times it doesn't. This is what it looks like. I...1 Photo
-
Channel: Support Issues & Questions
Thu 5 Dec '13, 3:55pm -
Comment