jQWidgets Forums
Forum Replies Created
-
Author
-
January 30, 2013 at 9:50 am in reply to: javascript change global variable value within a function javascript change global variable value within a function #14345
the problem is that i want to use the updated value outside the function
January 30, 2013 at 9:39 am in reply to: javascript change global variable value within a function javascript change global variable value within a function #14341hello Mr Dimitar
according to the provided code alert(“Initial value: ” + window.source123); will output 20 i want it to output the updated value
may you tell me how to fix iti am sorry for disturbance
okashaJanuary 30, 2013 at 9:05 am in reply to: javascript change global variable value within a function javascript change global variable value within a function #14336i have the following code but it still not working
$(document).ready(function () {
window.source123=20;$(‘#page_code_level’).bind(‘change’, function (event)
{
window.source123 = 30;}
alert(window.source123);
});
it still output 20 not 30
may you tell me where is the problem
this is a good idea but how to get the index of last inserted row in the grid
$(“#jqxgrid”).jqxGrid(‘setcellvalue’, 0, “firstname”, “New Value”);thank you
thank you Mr peter
this solved the problem but i think it is not a good solution for the problem due to performance
suppose i have users table with user_code(primary and auto increment),first_name,last_name and i display the three fields in the grid so when i add a new row i open a popup window with two fields first_name and last_name then i add the row to the database and at the same time it is added to the grid the problem is the user_code is not displayed in the grid and a random number is displayed instead
is there a better solution than call updatebounddata to refresh all the grid
i am sorry for disturbance
thank you
okashaahello mr peter
is it possible to display the page_code column in the grid after inserting row in the database because it doesnt show the code from the table and instead it displays random number for example 7854 and not the inserted page code
hello mr dimitar
thank you very much for your help
it works for me nowthanks
okasha -
AuthorPosts