- This topic has 6 replies, 2 voices, and was last updated 13 years, 2 months ago by
boater.
-
AuthorPosts
-
hammetMemberHi,
When I update a field using this code:
document.getElementById(‘m1-Main-PuntosUsuario’).value = XX
the .value is correct but it is not refreshed in the screen until I “touch” some button.
Is there any way to refresh the display of the content of the field?
Regards
hammetMemberHi,
It also changes the value of the field but it doesn’t refresh it.
Any additional idea?
Thanks!
hammetMemberI’m testing this and it seems to work:
function Redraw(element){
element = $(element);
var n = document.createTextNode(‘ ‘);
element.appendChild(n);
(function(){n.parentNode.removeChild(n)}).defer();
return element;
}
hammetMemberWell…
Finally this is the code that works:document.getElementById(‘#m1-Concursos-susPuntos’).style.fontSize=”smaller”;
document.getElementById(‘#m1-Concursos-susPuntos’).style.fontSize=”larger”;It forces the browser to repaint it.
boaterMemberHello Octavio,
This post is in response for your request for feedback in the post above.
I have been wrestling with this issue for some time with no success on the combo box display update.The solution you give for the text widget is what I use and it works well for me.
The solution for the other input widgets does not work for me.In my case I have a simple registration form consisting of 1 text input field and 4 combo boxes. The user fills in the form and submits the info which is stored in the local database. I would like the 5 input fields to display the user info stored in the DB. As I said the text input displays what is in the DB but the combo boxes just display the default values. I know the data is stored in the DB as I can see it in the test center and I have put a button on the page to display the stored data in an alert. The button works in the test center and on an iPod.
On another note would you be able to address the issue I asked in the post below on Feb 12?
http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=2451Regards,
Ted
boaterMemberThank you Octavio for your reply, 10:30pm on a Saturday! That’s dedication.
I have attached a zip file containing only the m1 pages and custom JS that are required to display
my problems. From the files I have attached you should be able to create an export, and insert the custom.js file with the code that runs the DB input and resultant (currently not working) display of that info. In the custom.js file I have commented out only a few of the attempts at getting the combi box to display, I have tried dozens over the last 3 months. I also have a full version of the app on a test server which you can access if needed, email me directly if you need the URL to open in test center.My problems…
1) I can not get the combi boxes (Community, BirthDay, BirthMonth, Gender) on the registration
page to display the data that is stored in the DB.In this example, get to the registration page by tapping on the coffee cup icon -> (Red text) CBN app admin (Help) -> Registration Info.
You can use the green button on the registration page to display what data is currently in the DB, and you can see it in the Test Center. The register button also works in this example so you can change the data as you wish.2) The size specified in m1 for the scroll panels under the movie posters does not seem to stay as set in m1 and squishes the text (as much as it can) into the viewable area. The scroll feature does not
work correctly. It scrolls but centers as soon as you release it.The scroll panels are set to 780 while the viewable area is 420.
I have a text file in the zip file explaining the settings for each poster. (no need to post them here)Regards,
Ted
Attachments:
You must be logged in to view attached files. -
AuthorPosts