Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 515 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

Javascript Effect

Thread title: Javascript Effect
Closed Thread    
    Thread tools Search this thread Display Modes  
01-22-2006, 06:38 PM
#1
schroder is offline schroder
schroder's Avatar
Status: Member
Join date: Nov 2004
Location:
Expertise:
Software:
 
Posts: 159
iTrader: 0 / 0%
 

schroder is on a distinguished road

  Old  Javascript Effect

I have a problem with a certain area of a site where there are some statistics that are taking a long time to populate. Unfortunetly they have to be live so they are pulling large amounts of information from the server and I cannot store it in the database.

I wanted to see if anyone knew of a way where I could have a 'please wait' img show up where the data would normally show up and once the data is done loading/processing the data would be loaded.

I think there is a way to do this in javascript, but maybe some other ways too.

01-22-2006, 07:54 PM
#2
bcd is offline bcd
bcd's Avatar
Status: Junior Member
Join date: Oct 2005
Location: Cali
Expertise:
Software:
 
Posts: 96
iTrader: 0 / 0%
 

bcd is on a distinguished road

Send a message via AIM to bcd Send a message via MSN to bcd Send a message via Yahoo to bcd

  Old

How will this data appear? Image, text, flash? The most generic method would be something like this:
Code:
<div style="background: url(pleasewait.gif) top left no-repeat;
display: block; height: 100px; width: 100px;"> ... </div>
And when the content appears just change the backgorund property of the div to #fff or something like that (with Javascript).

01-22-2006, 08:04 PM
#3
schroder is offline schroder
schroder's Avatar
Status: Member
Join date: Nov 2004
Location:
Expertise:
Software:
 
Posts: 159
iTrader: 0 / 0%
 

schroder is on a distinguished road

  Old

How would I have it know when the data is available though?
This would be plain text.

I was also thinking about using iframes. Basically I need to extract the data using an external script and once the script is done pull the data and update the main page.

I don't think that made any sense.. so my apologies if it doesn't. I can explain better a little later if needed.

01-23-2006, 12:29 AM
#4
bcd is offline bcd
bcd's Avatar
Status: Junior Member
Join date: Oct 2005
Location: Cali
Expertise:
Software:
 
Posts: 96
iTrader: 0 / 0%
 

bcd is on a distinguished road

Send a message via AIM to bcd Send a message via MSN to bcd Send a message via Yahoo to bcd

  Old

This page explains very well how to change styles (both inline and external) on the fly using Javascript. Basically, once the javascript to populate the field's loops are complete, add the javascript code from the link, and make it change the background from an image to a plain color (white, black, etc). Hope that made sense

03-28-2006, 05:57 AM
#5
m23 is offline m23
Status: Junior Member
Join date: Mar 2006
Location:
Expertise:
Software:
 
Posts: 28
iTrader: 0 / 0%
 

m23 is on a distinguished road

  Old

schroder,

Did you get a solution?

03-28-2006, 05:39 PM
#6
schroder is offline schroder
schroder's Avatar
Status: Member
Join date: Nov 2004
Location:
Expertise:
Software:
 
Posts: 159
iTrader: 0 / 0%
 

schroder is on a distinguished road

  Old

Hello,

I haven't actually tried those out yet, and I had to move on with the problem by doing something else, but I'm pretty sure what was mentioned in this thread should work.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed