Hengki Widjaja

Ranch Hand
+ Follow
since Oct 31, 2011
Merit badge: grant badges
For More
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 Hengki Widjaja







Even for AJAX that's not sequential, if I set aysnc:true, it won't work. I'm filling two dropdowns. I call ajax to retrieve the datas from server to then be filled into the dropdowns. the ajax for both calls are exactly the same. In this case, the order of both calls doesn;t really matter since they don't need data from each other. So I must set aysync false; I've tried with true, doesn't work. the dropdowns don't get filled. And I've tried the method above, still not working.


This doesn't work. Am I missing something here?
I have sequential AJAX calls where the each call depends on the previous ones (except for the first call). without asych:false, everything breaks down. I'm thinking about something more like document.body.style.cursor, but it didn't work out. Currenly it's only a page with a background image and a simple button (that invokes series of ajax calls). That's why I don't use css (yet).
I'm not using CSS for this particular page. I turned off async because it produced unpredictable result. There's a sequence of code that sometimes works and sometimes produces error when async is true. Is there no other solution? I must use css? thanks
I've been struggling with how to change the cursor when AJAX is executing and change back to normal after it's completed. I'm using async:false in jquery. Thnks
Just when everything seems to work, I got several errors pop up.
java.io.IOException: Cannot flush a closed output stream

12 years ago
Thanks, I didn't see that before.
12 years ago
I think the example is not complete, the GZIPResponseWrapper class is not there.
12 years ago
I've tried this:







And the browser displayed some weird characters instead of a page. Help? THanks
12 years ago
I have this class:


I want to call errorThrower from various locations, but no try blocks please. What should I fill inside this aspect?

When I tried compiling my codes, I got a warning saying that string in switch is not supported in source 1.5, but I've already installed java 7 and change the variables accordingly. Help please? thanks
12 years ago
Is it possible to do the settings programmatically? It's not always possible for the client to remember this. Or even better, is there anyway that the container compare the requested js and see if the js file has been updated. if it's updated, then resend the js to browser, if not, let the browser load from cache. thanks
I have an external jsfile which only has 2 simple functions:


It all went well, until I edit the function go(). I simply omit that function, restart the apache, but the message "go" still appears. Is the js file cached and somehow not refreshed even after apache restarts? thanks