Click to See Complete Forum and Search --> : copy file to navigate (help!)


elrick
06-10-2003, 10:42 AM
I am using popup menus to navigate my site, though because i am not using frames i can't specify the target.

So I thought rather than use a window.open i would copy the relevent file over a generic filename used as an include, like:

mm_menu_0609135830_0.addMenuItem("Starters","copy('starters.php', 'include.php');");

but it says 'object required', does any1 know what I'm doing wrong?

Khalid Ali
06-10-2003, 11:15 AM
:confused: :confused: :confused: :confused: :confused: :confused:

elrick
06-10-2003, 11:19 AM
i don't want to reload the whole page everytime a link is clicked because this is rubbish and slow.

When a link is clicked, i want the contents of 1 table cell to change.

elrick
06-10-2003, 11:21 AM
and i want that cell to contain code from a separate file.

Khalid Ali
06-10-2003, 12:13 PM
Frist part (changging cell content is no problem.the second part where you want to load a separate file,is impossible in the table elements.
The only html element other then a window/frame that can load a file is and IFrame,.
you may have to reload the iframe...

the other optionis that data that you want to load is in xml file then you can load it,or put it in the js file..but loading a separate file ..thats a no no in table elements