PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
AJAX Table forces AWP page to double initialize, how to disable this?
AJAX Table forces AWP page to double initialize, how to disable this?
Started by Aybars Morali, Mar., 21 2008 10:48 AM - 1 reply
Connect yourself…
Aybars Morali
#1
Posted on March, 21 2008 - 10:48 AM
Hi all,
I am using AWP pages and AJAX tables. I have noticed the problem before while debugging the code with info() and error() functions. For example, I put my fill_table() function to the page initialization, then I noticed that it runs twice. Now I decided to describe and solve this problem, because it is very crucial, I am fetching lots of data from DB and it will make the performance to its half.
Now, I put info("initialization of X") where X is the name of the control to each controls server initialization code.
if page is AWP and table is AJAX the output is:
global declaration of page
initialization of page
initialization of table
initialization of combobox1
initialization of edt1
initialization of edt2
initialization of combobox2
global declaration of page
initialization of page
initialization of table
initialization of combobox1
initialization of edt1
initialization of edt2
initialization of combobox2
if page is NOT AWP and table is AJAX the output is:
global declaration of page
initialization of page
initialization of table
initialization of combobox1
initialization of edt1
initialization of edt2
initialization of combobox2
if page is AWP and table is NOT AJAX the output is:
global declaration of page
initialization of page
initialization of table
initialization of combobox1
initialization of edt1
initialization of edt2
initialization of combobox2
So, obviously there is a problem I think. I also put an info() to my data fetching function, it says twice that it got 54 records. When project will be used in the future really, tenth of users will fetch thousands of records and I don't want my db to work twice as hard as before.
During first tour of initialization the default AJAX progress bar (in fact not progress bar, the cute clock image at the center of the table) runs. When the second initialization tour begins (with the global decleration of page) it stops. I have nothing in the table's initialization code.
Does anyone have any idea?
Report
0
0
andrianne
#2
Posted on April, 24 2008 - 12:56 PM
Yes the same here WB12 last version !!!!
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text