I know this might be stupid but I’ve wasted the last half hour trying to figure this out. Soooo frustrating…
I have an HTML item. Inside is some styled text. What I want to do is be able to click on the HTML item and load in the browser another page I’ve created. For aesthetic purposes, I don’t want to make a link out of the text in the html item. So, basically, I want to use the HTML item field as the ‘button’ to trigger the event. Oh, and I don’t want to spawn a new window; I want to load the new page in the same window.
Is this possible? It’s pretty easy in Dreamweaver and the old GoLive. Is there some action I’m missing?
There is one wrinkle to this that I never new, discovered recently in a screencast (it was just part of an example), and was astounded to find it was valid:
<div><a …><div>something in here</div></a></div>
I had to run it through the validator twice, I couldn’t believe you could wrap a div in an A. But here’s the rub – you cannot have a div inside a P.
<div><p><a …><div>something in here</div></a></p></div>
That is indeed invalid. And Freeway won’t let you make it.
Walter, I’ve been playing around with your idea, (best part of my day
today:-) Haven’t had any success at validation though… Used your excellent
TagWrap action, but even when I try containing the anchor tag in another
div, the validator complains that you can’t contain block-level elements
with inline elements, though functionality and appearance seem to work fine.
Curses, foiled again by progress and the passage of time!
Does anyone have an action to set the dtd to html5 format? I was thinking
your TagWrap could be used to set some of the other html5 tags (header,
section, etc.).
–
Ernie Simpson
On Sun, Jun 10, 2012 at 6:18 PM, Walter Lee Davis email@hiddenwrote:
There was one floating around a while ago, I think Paul Dunning did it. I found it extremely easy to turn an XHTML page into HTML5 when I did the Sublime Player Action:
var doctype = fwDocument.fwTags.fwFind("!DOCTYPE");
if(doctype){
doctype.fwFindEnclosing('').fwAddRaw('<!DOCTYPE html>', doctype);
doctype.fwDelete();
}
That’s all that’s needed in an Action to do the transformation. Of course, that does not get you all the various elements, for that you would need another Action that you could apply to a normal HTML box and convert it. I don’t think TagWrap would be a good fit for this, because it adds another element outside of the element it’s applied to.
Walter
On Jun 10, 2012, at 7:05 PM, Ernie Simpson wrote:
Curses, foiled again by progress and the passage of time!
Does anyone have an action to set the dtd to html5 format? I was thinking
your TagWrap could be used to set some of the other html5 tags (header,
section, etc.).
–
Ernie Simpson
On Sun, Jun 10, 2012 at 6:18 PM, Walter Lee Davis email@hiddenwrote:
Okay, then perhaps something like TagWrap to apply to div in FWP (because
the container model visually makes sense in that environment), but replaces
the div on output with perhaps a user selectable drop-down list of the
relevant html5 containers. And removes the inline style or rewrites it to
the head like Advanced Inline Style Mover?
–
Ernie Simpson
On Sun, Jun 10, 2012 at 7:11 PM, Walter Lee Davis email@hiddenwrote:
There was one floating around a while ago, I think Paul Dunning did it. I
found it extremely easy to turn an XHTML page into HTML5 when I did the
Sublime Player Action:
var doctype = fwDocument.fwTags.fwFind("!DOCTYPE");
if(doctype){
doctype.fwFindEnclosing('').fwAddRaw('<!DOCTYPE html>',
doctype);
doctype.fwDelete();
}
That’s all that’s needed in an Action to do the transformation. Of course,
that does not get you all the various elements, for that you would need
another Action that you could apply to a normal HTML box and convert it. I
don’t think TagWrap would be a good fit for this, because it adds another
element outside of the element it’s applied to.
Walter
On Jun 10, 2012, at 7:05 PM, Ernie Simpson wrote:
Curses, foiled again by progress and the passage of time!
Does anyone have an action to set the dtd to html5 format? I was thinking
your TagWrap could be used to set some of the other html5 tags (header,
section, etc.).
–
Ernie Simpson
On Sun, Jun 10, 2012 at 6:18 PM, Walter Lee Davis <email@hidden
wrote:
On Sun, Jun 10, 2012 at 8:02 PM, Ernie Simpson email@hidden wrote:
Okay, then perhaps something like TagWrap to apply to div in FWP
(because the container model visually makes sense in that environment), but
replaces the div on output with perhaps a user selectable drop-down list of
the relevant html5 containers. And removes the inline style or rewrites it
to the head like Advanced Inline Style Mover?
–
Ernie Simpson
On Sun, Jun 10, 2012 at 7:11 PM, Walter Lee Davis email@hiddenwrote:
There was one floating around a while ago, I think Paul Dunning did it. I
found it extremely easy to turn an XHTML page into HTML5 when I did the
Sublime Player Action:
var doctype = fwDocument.fwTags.fwFind("!DOCTYPE");
if(doctype){
doctype.fwFindEnclosing('').fwAddRaw('<!DOCTYPE html>',
doctype);
doctype.fwDelete();
}
That’s all that’s needed in an Action to do the transformation. Of
course, that does not get you all the various elements, for that you would
need another Action that you could apply to a normal HTML box and convert
it. I don’t think TagWrap would be a good fit for this, because it adds
another element outside of the element it’s applied to.
Walter
On Jun 10, 2012, at 7:05 PM, Ernie Simpson wrote:
Curses, foiled again by progress and the passage of time!
Does anyone have an action to set the dtd to html5 format? I was
thinking
your TagWrap could be used to set some of the other html5 tags (header,
section, etc.).
–
Ernie Simpson
On Sun, Jun 10, 2012 at 6:18 PM, Walter Lee Davis <email@hidden
wrote:
Thanks for your help Ernie (and Walt!). I booted up your project and took a look and while it works great I can’t seem to figure out how to implement it.
The first button, with the Advanced Inline Style Mover applied, works great… but for the life of me I cannot figure out WHERE the URL link goes so I can modify it.
The second button, with the Advanced Inline & TagWrap works great as well. And while I can easily see in the TagWrap action where to modify the url I can’t seem to strip the styles off of the text. I don’t want boxes or drop shadows or underlines or rollovers or anything. I’ve been able to remove all of that except the drop shadow under the text and the roll over effect.
Am I missing something? I’ve gone through all the properties and even though there’s no drop shadow or rollover selected it still appears.
Thanks again for all your effort. I truly appreciate it
I have NO idea what that means. “Style from the Cog?”
I flat out deleted the box edge style and while I have not visible box now (Yay!) I still have the text inside with drop shadow as well as a green pink rollover that I can’t get rid of.
On 11 Jun 2012, 4:55 pm, DeltaDave wrote:
If you study that style (Edit>Style from the Cog) you will see the shadow etc in the Extended section.