Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Call a php function after the page loads.
Old 06-28-2010, 11:36 AM Call a php function after the page loads.
Novice Talker

Posts: 6
Name: Levi Dhuyvetter
Trades: 0
I'm making a website wher i have a table where quotes (finance) are loaded from a csv file. When i visit the page it takes i while to load the page becauese of the csv files. Is there a way to load that part of the page after everything else has loaded ?
levidhuyvetter is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-28-2010, 11:52 AM Re: Call a php function after the page loads.
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
You could use javascript to call a file once the page has fully loaded.
__________________

Please login or register to view this content. Registration is FREE

Learn professional skills from professional people, from $6.50 a month.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Old 06-29-2010, 12:37 AM Re: Call a php function after the page loads.
Skilled Talker

Posts: 64
Name: Ralph Freshour
Trades: 0
I don't think you can use JS to do that because you can't get to the file system - but this is a perfect job for Ajax. Call your ajax routine in the page JS OnLoad() event.
__________________
RalphF
Business Text Messaging Services

Please login or register to view this content. Registration is FREE
rfresh is offline
Reply With Quote
View Public Profile
 
Old 06-29-2010, 04:03 AM Re: Call a php function after the page loads.
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
hehe JS and AJAX its all the same thing

@OP have alook at some of the "in place editing system" tutorials floating about, it gives you a great insight as to using JS/AJAX with PHP to call files and databases.
__________________

Please login or register to view this content. Registration is FREE

Learn professional skills from professional people, from $6.50 a month.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Reply     « Reply to Call a php function after the page loads.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21771 seconds with 12 queries