Eugene Abarquez

Ranch Hand
+ Follow
since May 18, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Eugene Abarquez

I think Twitter has a lot to do with it's popularity.
9 years ago

Originally posted by Chandra Bhatt:
What if this treats your <HEAD> as coconut? Beware balds!!!



Which goes without saying that the fears of some people are well-founded. Lol.
9 years ago
Quite common here in the Philippines actually. I think it's a delicacy somewhere in the north, much like lobsters. I haven't eaten one though.

Now you know which country to avoid. Haha.
9 years ago

Originally posted by Eric Pascarello:
I think setTimeout would be your friend. When the response comes back, you use setTimeout and make it do another call to the server.

I do not recommend using setInterval in this case.


Eric




Hi Eric,

Thanks for the reply.

As I understand it, window.setInterval() will make a call every x number of seconds, while window.setTimeout() will make a call only once, after x seconds. Basing from what I need, window.setInterval() seems to be the more obvious choice. I am interested to know why you are recommending the use of window.setTimeout() instead of window.setInterval(), and just call it every time the response comes back.

Thanks in advance,

Eugene
Hi,

I just want to know if this is possible in JQuery. I have a graph (statistical) in my page, and this graph gets updated automatically by ajax depending if there are changes in the data model. Now to do this, I have to read some data from the server continuously, say every minute, and change my display accordingly. The data read from the server is basically a flag; if changes have been made to the data model, this means that I have to update my display.

Is this possible in JQuery? Is there a way to continuously read data from the server, and I can assign the number of seconds or minutes that will be executed? Some examples will be greatly appreciated.

Thanks in advance,

Eugene
[ November 28, 2008: Message edited by: Eugene Abarquez ]
Or 7.777777777
9 years ago
Only 0-9?
9 years ago
Thanks Ulf for taking the time to answer this. I will seriously consider all of your inputs. Thanks again.
9 years ago
Hi Ulf,

Thanks for the reply.

Originally posted by Ulf Dittmer:
What exactly do you mean by "report display in the front-end"?



It's just a graph (generated by jasper report) on a web page.

Originally posted by Ulf Dittmer:
The app/web server wouldn't have to poll the DB every time one of the clients asked for updates - it could itself check in with the DB periodically, and prefetch the required data if there was a change. Thus the DB load wouldn't rise if there were more and more clients.



What do you mean by the app/web server checking in with the DB periodically? Does this mean that I would have to create an object that continually queries the database for changes, say every minute? Wouldn't this affect performance, as a database query is done every minute?

Also, I am not sure how to go about the checking for updates in the database. Should I have a counter for the number of rows in the table and prefetch the data if the value of the counter changes? What if the user only updated a row? Does this mean that I would have to check every record against the old ones?

Originally posted by Ulf Dittmer:
Most Databases have a concept of triggers that can be fired automatically if certain events (like a table change) occurs, but I would shy away from using that to reach outside of the DB. That would be a twisted design.



Yes I am considering the use of triggers. I am interested to know though why you think this would be a twisted design.

Thanks,

Eugene
9 years ago
Hi,

Just needs some technical advice or suggestion here. I am building an application with a functionality that automatically pushes data from the database to a report display in the front-end. That is, every time a certain database table has been changed, the data should be automatically pushed to the front-end display, which is basically some statistical graphs.

I don't know how to go about this, particularly with the part that automatically pushes the data. Should there be a listener of some sort that checks for a database update? The technologies to use are Spring MVC and Ibatis for the front-end and controller, Jasper Reports for the graphs and report displays, and Oracle 10g for the database.

Feel free to offer up some advice.

Thanks,

Eugene
9 years ago