Reply
need help with php
Old 11-17-2007, 10:16 AM need help with php
bigfreak's Avatar
Extreme Talker

Posts: 174
Name: Andy
I posted this in another section, but will post here as it was suggested that somebody here might be able to help!


I am trying to have a link open up in a div tag further down the page.

Instead of having it open in a new page.

Here's the link, www.customrockcreations.ca/sample/products.php

I would like the links to open in the prodbody section.

any help is appreciated.


The nice "lady" suggested i need some sort of php or javascript to make this work. Seeing as the site is using php already she suggested here.

Does what i'm asking to do make any sense?

thanks!!!!
bigfreak is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-17-2007, 02:16 PM Re: need help with php
tripy's Avatar
Fetchez la vache!

Posts: 2,057
Name: Thierry
Location: In the void
What you need, is to use an javascript asynchronous call (AJAX) to get the content of the page, and to use javascript to put that html into the div.
But, you will need to work your destination page to not have another <head> nor <body> element, but just plain HTML, or it could confuse the browser when rendering the current page.

Or you could go simplier, and use an iframe rather than a div.
It's designed to be used in cases like this.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 11-17-2007, 02:36 PM Re: need help with php
bigfreak's Avatar
Extreme Talker

Posts: 174
Name: Andy
i was thinking that an iframe might actually work.

i'll play with it and see what i can do. THANK YOU tripy!

i'll post when i get it. (being optamistic!)
bigfreak is offline
Reply With Quote
View Public Profile
 
Old 11-17-2007, 02:58 PM Re: need help with php
bigfreak's Avatar
Extreme Talker

Posts: 174
Name: Andy
ok i have gotten the page to go into the space, but it has no css formatting.

http://www.customrockcreations.ca/sample/bussign1.php

very odd i think.

bigfreak is offline
Reply With Quote
View Public Profile
 
Old 11-17-2007, 04:45 PM Re: need help with php
tripy's Avatar
Fetchez la vache!

Posts: 2,057
Name: Thierry
Location: In the void
That's because you didn't included any.
An iframe is like a frame, but inline in the document flow.
So, you must have a <head>, <body>, and declare the <link> to your css.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 11-17-2007, 09:25 PM Re: need help with php
bigfreak's Avatar
Extreme Talker

Posts: 174
Name: Andy
i actually thought about that over dinner! so i need to set it up just like a normal html page right? then create a seperate css sheet?

thanks!
bigfreak is offline
Reply With Quote
View Public Profile
 
Old 11-17-2007, 09:35 PM Re: need help with php
bigfreak's Avatar
Extreme Talker

Posts: 174
Name: Andy
i did it!!!! i think!

you're the man tripy! thank you!

i added some talkupation to you.
bigfreak is offline
Reply With Quote
View Public Profile
 
Old 11-17-2007, 09:48 PM Re: need help with php
bigfreak's Avatar
Extreme Talker

Posts: 174
Name: Andy
IT WORKS!!!

http://www.customrockcreations.ca/sample/bussign1.php

woohoo!

thanks again!

Last edited by bigfreak : 11-17-2007 at 10:36 PM.
bigfreak is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need help with php
 

Thread Tools

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

vB 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.13517 seconds with 12 queries