|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Forum reply save input (keep it after refresh) |
Forum reply save input |
So in the forum adding entry and reply form i have custom field username where guest input the username which will be used for displaying their entry...i would like to preserve that input so even if user refresh the username filled stay filled in...
Post edited by Bluecube - Monday, 2014-12-08, 5:27 PM
|
lanh, But it dosen't
Instead of... Code <?if($_USER$)?>$_USER$<?endif?> I have this... Code <?if($_USER$)?> <tr id="frM3"><td class="gTableLeft" id="frM4">Username:</td><td class="gTableRight" id="frM5"><input type="text" id="frF1" name="user" placeholder="Choose any Username" class="postUserFl" style="width:100%" size="50" maxlength="30"></td></tr> <?endif?> in New message form design customization I want to store and keep whatever is in input so user can reply or add another post without retyping the username Note* In Guest mode |
Bluecube, from what I can see your best bet is going to be the use of browser cookies. So create a client-side JS script which whenever that field is edited updates a session bound variable which can be recalled on the page load/refresh.
Hope this helps, 'Moved to Custom Solutions Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
| |||
| |||