Click to See Complete Forum and Search --> : PHP and MX 04 Problem...
mcahill
10-22-2003, 04:01 PM
Has anyone else seen wierd issues with table sizing in MX 04? I have several sites designed in MX and they are blowing apart in MX 04. Particular problem is table width.
I suspect it may be an issue of having some table parameters (but not width) specificed in CSS. Might also have to do with the way includes are handled.
<edit: it is definitely not a css issue, as I have not specified any table parameters in one of the sites with the problem>
So far, I'm not impressed. If I can't unbreak stuff quickly, I will be reverting.
Cheers,
Mark
mzanimephp
10-23-2003, 08:58 PM
All new software is bound to have some bugs, but that doesn't mean you should chuck the new program right away.
For all you know it might you whos coding improperly. :)
Can you post an example of one or two of your tables which MX2004 is displaying incorrectly?
mcahill
10-24-2003, 12:18 PM
My problem is that there are three high volume sites, which are in heavy maintenance mode. Hence I have to be able to work with them easily, and currently I can't do that in MX 04. I am looking forward to my next intranet project which will be developed ground up in 04.
The only site which is publically available... (http://www.reel-time.com) (the others are extranet/intranet sites, but they are all roughly the same, although they all have different general looks)
<edited to show code that was causing the problem>
This is the code for the table with the javascript scroller in it...that's the culprit.
<table width="150" border="0" bordercolor="#000000">
<tr>
<td bgcolor="#003366" class="navboxheader" width="150"> <div align="center">News
from the Web</div></td>
</tr>
</table>
<table width="150" border="0">
<tr>
<td>
<script language="JavaScript1.2">
//configure the below five variables to change the style of the scroller
var scrollerwidth=130
var scrollerheight=100
var scrollerbgcolor='#cccc99'
//set below to '' if you don't wish to use a background image
var scrollerbackground=''
//configure the below variable to change the contents of the scroller
var messages=new Array()
messages[0]="<p class='sectiontext'><a href='<?=$newslink1?>' target='_blank'><?=$newshead1?><i> - <?=$newssource1?></i></a>"
messages[1]="<p class='sectiontext'><a href='<?=$newslink2?>' target='_blank'><?=$newshead2?><i> - <?=$newssource2?></i></a>"
messages[2]="<p class='sectiontext'><a href='<?=$newslink3?>' target='_blank'><?=$newshead3?><i> - <?=$newssource3?></i></a>"
messages[3]="<p class='sectiontext'><a href='<?=$newslink4?>' target='_blank'><?=$newshead4?><i> - <?=$newssource4?></i></a>"
messages[4]="<p class='sectiontext'><a href='<?=$newslink5?>' target='_blank'><?=$newshead5?><i> - <?=$newssource5?></i></a>"
messages[5]="<p class='sectiontext'><a href='<?=$newslink6?>' target='_blank'><?=$newshead6?><i> - <?=$newssource6?></i></a>"
///////Do not edit pass this line///////////////////////
mcahill
10-24-2003, 02:01 PM
The php includes I use on the pages are not being rendered by MX 2004 as they were in MX 6. Hence, Dreamweaver does not have all the information it needs to do the math and properly render my tables. This may have to do with not configuring a test server. It may also be fixable in preferences.
I will post again when I am able to solve the problem.
Oh, I also do not understand "expanded table" view. That may be part of the problem as well.
mzanimephp
10-24-2003, 07:55 PM
Here is an explaination of expanded table view.
http://www.macromedia.com/support/dreamweaver/ts/documents/expanded_tables_mode.htm
I did not know about this until you mentioned it, but I doubt I will ever need to use it since I'm pretty adept with modifying tables in wysiwyg view, and have been using the program since version 3.
It seems to just be a way to help users highlight individual rows, or cells incase the borders are set to zero. So its only a visual thing, and only specific to DW2004.
mzanimephp
10-24-2003, 08:05 PM
Hey, I also noticed that you have your includes like this:
<? include ('http://www.reel-time.com/include-feature.php'); ?>
you don't need to make your includes a absolute URL like that. And in fact making them absolute might prevent it from displaying them in wysiwyg. Make sure DW20004 supports short opening <? ?> as well, because I don't know.
So, try this and see if it helps.
<?php include("/include-feature.php"); ?>
TheIceman5
10-24-2003, 09:36 PM
well mx2004 sucks in my opinion, it always gives me errors, half the time i spend using it im clicking the OK button on error messages that pop up, never happens on 2003 version.
mcahill
10-25-2003, 12:21 PM
Rendering of Javascript Derived Tables is the problem.
I figured it out. My problem is my news scroller script, which uses javascript to pull together a table 150p wide to display some news in. MX 6.1 just displayed a little script icon. 2004 actually tries to render it, but can't figure out the width, so it defaults to the maximum.
I consider this a bug in 2004. Afterall, many of us just might want to use a little javascript.
i've got to say though, Expanded Table View rules for doing table based layout. I can do what would normally take hours in minutes. It's a nice fix of a classic wysiwyg table editing problem.
PS I am editing the code above to show only the code that is blowing apart MX 04's table rendering.
when i first installed dw mx 04 it kept coming up with javascript errors when opening dialogue boxes for things like forms and that, all i did was re-install and it got rid of them
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.