Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

[b]php and frames[/b]

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

[b]php and frames[/b]

Postby lacroix13 » Thu Aug 22, 2002 1:12 am

I have a problem with opening some pages in different frames.

I have a page with 5 frames and when i click a button in one of them i need to open 2 different filess in 2 frames.I dont know how.how can i do this? :evil:
User avatar
lacroix13
New php-forum User
New php-forum User
 
Posts: 64
Joined: Thu Aug 22, 2002 1:07 am

Postby Jay » Thu Aug 22, 2002 2:14 am

That's got nothing to do with PHP, you'll need to use a bit of javascript there.

I'm not sure of the complete code off the top of my head, but it would be something like this

function yourFunction() {
windowname.location1 = newlocation.php
windowname.location2 = newlocation2.php
}

<a href=# onclick=yourFunction()>The link</a>
Jay
 

Postby DoppyNL » Thu Aug 22, 2002 2:37 am

is indeed an html problem.
can be solved with javascript as Jay says, but remember that it won't work when the client has his javascript disabled. In that case there will simply happen nothing.

Greetz Daan
DoppyNL
 


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.