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
Old 11-17-2007, 10:16 AM need help with php
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
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
 
 
Register now for full access!
Old 11-17-2007, 02:16 PM Re: need help with php
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 11-17-2007, 02:36 PM Re: need help with php
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
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: 179
Name: Andy
Trades: 0
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
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 11-17-2007, 09:25 PM Re: need help with php
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
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: 179
Name: Andy
Trades: 0
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: 179
Name: Andy
Trades: 0
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 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.26798 seconds with 12 queries