473,322 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Displaying page contents without loading new page

64
Dear experts,

I need some one to tell me how to design a website in php or other scripting technology such that
when a user clicks on links or an image in the site, information is displayed without loading another page

The way this site (http://www.dotsavvysfrica.com) was designed although I know flas was used.
If anyone knows of a way how to do it, using php, html and javascript, please let me know
Apr 29 '08 #1
9 2071
rpnew
188 100+
Dear experts,

I need some one to tell me how to design a website in php or other scripting technology such that
when a user clicks on links or an image in the site, information is displayed without loading another page

The way this site (http://www.dotsavvysfrica.com) was designed although I know flas was used.
If anyone knows of a way how to do it, using php, html and javascript, please let me know
Hi,
First i coudnt open the URL you've provided... Anyways.. if you dont want to load a new page as what you are saying and if you want to make it in only php then what you can do is you can submit the page to itself and according to parameters you can change the page layout. Here you need to reload the page every time you are clicking anything on that page. Another way is if you dont want to reload your page then you can use PHP+Ajax. you'll lots of tutorials on net for PHP and Ajax. Try them and if you have any other questions post it here. Another thing is if you know Flash or something then you can easily do what you want,However i dont have much idea about that :( ..

Regards,
RP
Apr 29 '08 #2
coolsti
310 100+
The page that you are referring to is built up with Flash. I have not used this myself, but it is basically an interactive image that is doing all the work. Probably everything is already downloaded in the Flash and is just revealed or hidden according to the rules scripted in Flash.

To have a page updated in some manner without reloading the entire page, and without using Flash, you need to have some element on the page which can have its content only updated, leaving the rest of the page alone. You can do this, for example, with iframes and javascript, but not in such a fancy manner as the Flash example you refer to.
Apr 29 '08 #3
Markus
6,050 Expert 4TB
Have a look at some html frams tutorials.
Apr 29 '08 #4
gnawz
64
"can submit the page to itself and according to parameters you can change the page layout."

HOW DO I DO THE ABOVE...?!?
Apr 29 '08 #5
Ajax is the only way to display the content without loading page....
Apr 29 '08 #6
TheServant
1,168 Expert 1GB
Ajax is the only way to display the content without loading page....
Javascript can also do it, but it can be done with frames if you don't mind refreshing part of the page rather than all.
Apr 29 '08 #7
rpnew
188 100+
"can submit the page to itself and according to parameters you can change the page layout."

HOW DO I DO THE ABOVE...?!?
Hi,
This means what ever the variable you are getting for that page you can hide or show contents accordingly.
e.g. Like you have one link. On clicking that you want that your pic must be shown then send one variable to same page and just unhide the pic or load the pic on same page.
All the code would be on same page its just you are manupulating the layout accordingly.

But i would say Ajax will be easier approach to do what you want..

Regards,
RP
Apr 30 '08 #8
gnawz
64
Thanks alot

Iam nw going to learn some AJAX and try the PHp option as ell..
Apr 30 '08 #9
Dear experts,

I need some one to tell me how to design a website in php or other scripting technology such that
when a user clicks on links or an image in the site, information is displayed without loading another page

The way this site (http://www.dotsavvysfrica.com) was designed although I know flas was used.
If anyone knows of a way how to do it, using php, html and javascript, please let me know
You could use javascript to create a iframe with the irl you need to display. It would display the data within that page while keeping the page you have open where it is.

Either that or use Ajax as someone previously suggested.
Apr 30 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: yawnmoth | last post by:
i'm trying to display text while a page is loading using a method similar to the following: <? ob_end_flush(); echo 'AAA<br>'; flush(); sleep(10); echo 'BBB'; ?>
1
by: oneglenport-programming | last post by:
Is there a javascript code for loading the contents of a document first, before displaying it? Thank you.
5
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
6
by: snazzy | last post by:
I have a problem where using innerHTML to rewrite a DIV or removeChild to kill a DIV that either of them, if excuted before the page is done loading will stop the page in its tracks. ...
4
by: Garry Jones | last post by:
I have recently constructed a website using a lot of php script (self taught). I now wonder if I should have construted the site in a different way. The page contains a header (a.php) and left...
18
by: Mark | last post by:
Hello. I am looking for a way to download and cache a web page that the user has not yet requested, and write the web page to the browser cache without displaying it. My intention is to improve...
4
by: merlin_at | last post by:
Okay, I'm still really new to javascript, so I'm looking for a little help. I want to grab a name with I'm trying to display a hyperlink in my body, but one of my functions overwrites it. The...
38
by: ted | last post by:
I have an old link that was widely distributed. I would now like to put a link on that old page that will go to a new page without displaying anything.
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.