PDA

View Full Version : better then Iframe ?



Vectar
March 14th, 2007, 04:41 PM
Hi i am trying to make a website that i build with a table of 2 rows.
in row 1 is going to be a menu and in row 2 is going to be the content.
Lets say i have a button 1 and button 2.
I want the content of these buttons to be loaded in row 2 when clicking 1 of these buttons.
I tryed using a iframe but a iframe cannot resize itselve to a bigger height for the content of button 2 and then change to smaller height when clicking button 1.

Is there a better solution for building a site like this and does someone have a simple script that shows me how its done or maybe a tutorial.
So i dont want it to be scrollable i want the table to resize to the loaded content.

Please help me out

Thanks in advance

foodpk
March 14th, 2007, 06:08 PM
Why not just dropping the frame mentality altogether and just load the pages normally under the menu, you can then scroll down.

Vectar
March 14th, 2007, 06:46 PM
yeah i normally do it that way but now i want to make a animation loop in the buttons menu with flash and i dont want every page to load as a new page because then the flash part will start from the beginning again.
THis is kind of what i need http://www.quatrebras.nl/ only then make the table where the content is loaded into scale to the height of the content and as you can see in this site that is not done.

borrob
March 15th, 2007, 05:59 AM
use ajax...

foodpk
March 15th, 2007, 11:03 AM
I think you should rethink whether you would rather have a flash animation loop in the menu or a site that is accessible and able to be indexed by search engines.

s1ntax
March 15th, 2007, 12:42 PM
use ajax...

i concur

Vectar
March 15th, 2007, 03:56 PM
What is the best way to search for this AJAX solution in google.
If i search for AJAX it shows the soccerteam =)
What would be a better search key to get the right information

borrob
March 15th, 2007, 06:50 PM
Ajax is indeed a dutch soccerteam but also a way to refresh parts of your page and not the whole page. It requires the use of php or asp and javascript so some knowledge about these scripting languages will be required.

foodpk
March 15th, 2007, 07:20 PM
My advice is to drop the animated menu, using AJAX for displaying all your site's content makes it unreadable to search engines. You might as well make the whole site in flash then.
Or better yet, just don't use frames or AJAX.

Esherido
March 15th, 2007, 09:20 PM
Ajax is indeed a dutch soccerteam but also a way to refresh parts of your page and not the whole page. It requires the use of php or asp and javascript so some knowledge about these scripting languages will be required.

PHP and ASP is not necessary for AJAX. If you look at the acronym, it's JavaScript and XML. You can have the JavaScript load directly from an XML file. PHP is associated with AJAX mainly because both of them are commonly used in Web 2.0 interfaces. PHP/ASP is often used to create a dynamic XML file the JS reads.

borrob
March 16th, 2007, 04:45 AM
ok asp or php would not be required but if you would want to build a reasonable site with the functionality that is on the example site you will....
XML is very nice but in my book isn't enough for my requirements. I rather use db's

Vectar
March 16th, 2007, 06:40 AM
i am studing PHP at the moment.
So i could do it with PHP.
Normally i make pages in flash but sometimes i do projects for dj's and i want them to be able to change there sites in html i never use frames so thats why i was wondering how to load page's into a table on the index page. Then i found the iframe but that didn't stretch the table on the index to the height of the page that will be loaded, only if i would use scrollbars but i dont want that.
So what would be the best way ? PHP ASP ? or AJAX ? or with XML please let me know where i can find some examples to study from.

broneah
March 16th, 2007, 04:02 PM
ajax + div + .net + java = better then iframe.

Esherido
March 16th, 2007, 04:52 PM
ok asp or php would not be required but if you would want to build a reasonable site with the functionality that is on the example site you will....
XML is very nice but in my book isn't enough for my requirements. I rather use db's

Once again, XML is not for storing the data, of course you would use a database. XML is one of the best ways for passing data between PHP and AJAX.