To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Dreamweaver

Dreamweaver In need of help with Dreamweaver?

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-22-2003, 04:01 PM   #1
mcahill
Junior Member
 
Join Date: Oct 2003
Posts: 7
PHP and MX 04 Problem...

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
mcahill is offline   Reply With Quote
Old 10-23-2003, 08:58 PM   #2
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
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?
__________________
Scripting PHP, one line at a time | My web site
mzanimephp is offline   Reply With Quote
Old 10-24-2003, 12:18 PM   #3
mcahill
Junior Member
 
Join Date: Oct 2003
Posts: 7
A Couple of links and some code...

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... (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.

Code:

<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///////////////////////

Last edited by mcahill; 10-25-2003 at 12:25 PM.
mcahill is offline   Reply With Quote
Old 10-24-2003, 02:01 PM   #4
mcahill
Junior Member
 
Join Date: Oct 2003
Posts: 7
Problem Identified

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.
mcahill is offline   Reply With Quote
Old 10-24-2003, 07:55 PM   #5
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
Here is an explaination of expanded table view.

http://www.macromedia.com/support/dr...ables_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.
__________________
Scripting PHP, one line at a time | My web site
mzanimephp is offline   Reply With Quote
Old 10-24-2003, 08:05 PM   #6
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
Hey, I also noticed that you have your includes like this:

PHP Code:
<? 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 Code:
<?php include("/include-feature.php"); ?>
__________________
Scripting PHP, one line at a time | My web site
mzanimephp is offline   Reply With Quote
Old 10-24-2003, 09:36 PM   #7
TheIceman5
Senior Member
 
Join Date: Jun 2003
Posts: 392
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.
TheIceman5 is offline   Reply With Quote
Old 10-25-2003, 12:21 PM   #8
mcahill
Junior Member
 
Join Date: Oct 2003
Posts: 7
Rendering of Javascript is the Problem

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.
mcahill is offline   Reply With Quote
Old 10-29-2003, 08:05 AM   #9
helz
Senior Member
 
helz's Avatar
 
Join Date: Jul 2003
Location: Lancashire, England, UK
Posts: 572
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
__________________
At War with HTML since 2000.

"I see stupid people...
... they're everywhere"
helz is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:49 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.