Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
MarkItVision #1
Span and Div names
Hi, I've been getting used to Dreamweaver - I'm not much of a coder any more,
so I am using the basics.
I downloaded the CourseBuilder extension and have been getting some templates
set up whilst I get familiar with it.
I started with a multi-choice radio-button, single answer. All looks fine -
and previews fine in IE. But I notice that the results window shows "The name
attribute of the DIV tag is not supported. [Netscape Navigator 6.0, Netscape
Navigator 7.0]" and a similar line for SPAN tag. There are also errors for
"The cbi-select tag is not supported. [Microsoft Internet Explorer 5.0,
Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0, Netscape
Navigator 6.0, Netscape Navigator 7.0]" and "The interaction tag is not
supported. [Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5,
Microsoft Internet Explorer 6.0, Netscape Navigator 6.0, Netscape Navigator
7.0]"
This kind of worries me! Sould I be worried??
To add to this, instead of a nasty pop-up telling me correct/incorrect I've
created a div which has the "answer" text in it. I then get it to change layer
text. This works fine in IE, but in Firefox it doesn't work - it comes up with
a new page and I have to use the "back" button to get back to my question.
Any ideas?
Thanks.
Mark
MarkItVision Guest
-
Row Span in a grid?
How can I have a column that would span 2 rows. For instance, I have 2 rows of data, the user may fill out one or both rows, then do a calculation... -
DataGrid (body only) contained in <span>...</span> tags
Hi, I have a DataGrid control that displays many records. As such, I have been given a requirement to contain only the body of my DataGrid... -
<span>'s
Hi, I have a link on an asp page. When the user clicks on this link I make a <span> visible. Within my span I have a series of textboxes. ... -
<SPAN> Tag
I know this is not FW related, it's just a quicky anyway: I noticed that Dreamweaver sometimes applies the <SPAN> tag to my text. But at other... -
DIV vs SPAN
In my quest to get my page working I'm noticing I have a choice of either <DIV> or <SPAN> tags. I'd like to use nested layers and am wondering will... -
MarkItVision #2
Re: Span and Div names
Further update on this one... looking around it seems that the "interaction
tag" and the "cbi-select" tags are only used by Dreamweaver to know it is a
coursebuilder interaction. I see elsewhere on the web that I should ignore
them.
That still leaves the div and span "name attribute" errors for me to worry
about...
But the more important bit is the firefox problem. So I'll detail it more now.
If I have a simple page with a button on it and a layer (nothing else) and set
the button behaviour for onClick to do a SetTextOfLayer to "button clicked" it
works fine in both IE and Firefox.
If I have a simple page with a CB radio button with no changes to it (i.e.
just click OK to insert it as it comes), in both IE and Firefox it will popup a
message for correct/incorrect.
If I modify this one, insert a layer (leaving it as "Layer1") and change the
behaviour in the interaction to SetTextOfLayer Dreamweaver creates code that
looks like this for the "correct" answer (the incorrect answer looks similar).
G01.am('cond','Correct_01','G01.correct == true',0);
G01.am('actn','Set Text of
Layer','MM_setTextOfLayer(\'Layer1\',\'\',\'%3Cp%3 EWell done - that%27s
correct%3C/p%3E\')','');
When I test this out in IE it works and my Layer1 changes to say "Well done -
that's correct".
When I test this in Firefox (1.5 - I just upgraded from 0.93 in case that was
the problem) as I click on the radio-button the browser blanks the question out
and goes to a screen with the text "Well done - that's correct". I have to use
the 'back' button on the browser to reach the question again.
Why is it behaving differently? How can I fix it? I need to be able to run
my course on both IE and Firefox :(
Thanks.
Mark
MarkItVision Guest
-
MarkItVision #3
Re: CourseBuilder and Set Text Of Layer problem
I found the answer. [url]http://www.rapidintake.com/forums/topic.asp?TOPIC_ID=30[/url] it
seems there is an older bit of one of the supporting script files. When
updated to the new one it all works.
***** snip from above site *****
The problem comes with this function in the behActions.js:
function MM_setTextOfLayer(objName,x,newText) { //v3.0
if ((obj=MM_findObj(objName))!=null) with (obj)
if (navigator.appName=='Netscape') {document.write(unescape(newText));
document.close();}
else innerHTML = unescape(newText);
must be replaced by this one (used by dreamweaver mx)
function MM_setTextOfLayer(objName,x,newText) { //v4.01
if ((obj=MM_findObj(objName))!=null) with (obj)
if (document.layers) {document.write(unescape(newText));
document.close();}
else innerHTML = unescape(newText);
***** end snip from above site *****
MarkItVision Guest



Reply With Quote

