Oprano Front Page


Go Back   Oprano Adult Industry Forums > The Business Of Porn - Closed For Posting > Legacy Archived Main Board

Notices

Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here.





Check Out YnotMail

The Original Oprano Flat Board (Thanks To Sarettah!)---
Oprano Swag Shop
"History Of Porn Timeline
Reply
 
Thread Tools Display Modes
Old 07-25-2005   #1
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default A stupid little php/java trick

That can produce some cool results.

I was recently working on a very large scale database project. The database involved contains several tables wtih a million to 2 million records in it. The problem I was trying to address was the page loading when it was trying to return counts that went across the entire database. I didn't want the usual solution of putting up a message and doing a redirect to the results page because I didn't want to have to tell folks not to press the button again or any of that stuff.


So, I invented. After thinking about it for a while I came up with what is a simple method that produces a very cool look.

As I am writing the page (this is a dynamic write from the server) I produce a division and name it something and place a message in the division. This is all inside a table structure and I have server buffering turned off so that I am sending to the browser as I go. ie:


Please wait while I compute the counts



Once the browser gets the close table tag, it shows the message. After I write the message I actually go and compute the counts, once the counts are computed I write a line of script to the browser, ie:



When the browser receives this line, it replaces the innerhtml value of the division with the new message.

This achieves a very cool look to the page without having to reload the entire page.

This method also is an easy way to create a rotating banner script or a dynamic section for a web page in a quick and easy manner......

A proof of concept on it is at http://www.bntnews.com/countit.php

and the source code for that is at http://www.bntnews.com/countit.phps
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 07-26-2005   #2
Newton
It's always business, never personal!
The POWER of radio Oprano Radio
 
Newton's Avatar
 
Join Date: Aug 2004
Location: On a golf course
Posts: 4,916
Default Re: A stupid little php/java trick

Sabby's been looking for that pic
Newton is offline   Reply With Quote
Old 07-26-2005   #3
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default Re: A stupid little php/java trick

Quote:
Originally Posted by Newton
Sabby's been looking for that pic
And my poor server only had to look at 10,000 assholes to find it
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -4. The time now is 07:45 PM..


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright Evil Empire Inc. 2006-2022