VSD: weird behavior with inserted...

User 597929 Photo


Registered User
1,332 posts

Part of it appears to be an issue with how VSD sets up the page with a large table cell to define the size and then a div clause inside for inserted HTML objects. The other issue seems to be how the script interacts with Web Site Font when a special font is defined as <h1>.

I have two test pages. The first one has just the provided script code insterted as an HTML object, then a second HTML block which is my failed attempt to insert it using <object> so as to control the size. You'll see in the first block the right side of the script gui is cut off, and the last bit of text somehow gets the <h1> applied. The second block, using <object> doesn't even show up at all.

http://www.spinland.biz/funtest.html

I did a second test page with everything blank on the page in VSD except a single HTML object, so anything happening is totally the fault of how the page is being defined.

http://www.spinland.biz/funtest2.html

I did a third page using Wordpad with nothing but the basic <html> <head> and <body> tags, and inserted the snippet and that displayed just fine.

Is there any way to make this bit of javascript code display properly using some VSD trick? I can manually hack out a page that works, with some pain, but it would get over-written every time I published any other changes.

Thanks in advance!
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz
User 597929 Photo


Registered User
1,332 posts

Just for fun I added a new page:

http://www.spinland.biz/funtest3.html

with most everything stripped out, using Wordpad. This one works properly.

Any ideas what the culprit is?
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz
User 597929 Photo


Registered User
1,332 posts

My idea, though I don't have time to explore it tonight: hand hack a basic, very small page just large enough to hold the jscript app, upload it manually. Have the VSD page invoke the external page in an iframe. Think it'll work? Wish I weren't about to head off to bed. :P
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz
User 463058 Photo


Ambassador
1,085 posts
Online Now

Give this code a try:

<div style="width:423px">
<script type="text/javascript">var refID=1154542 ;</script>
<script type="text/javascript" src="http://www.xaraonline.com/zy1562cc1e/460E2B977EB54309.js"></script>
</div>


The javascript is basically writing html to your page. The bottom line of the interface is in an H1 tag, which is why it's being affect by the the web font stuff. The easiest way to avoid this is to not use sIFR on this page.

EDIT: That iframe approach just may do the job.
User 597929 Photo


Registered User
1,332 posts

I spent all that time learning iframe and object, neglected div. Thanks, Cary, that div block handled the sizing problem nicely. Still have to get the H1 problem taken care of, but like you said I just need to get rid of the sIFR H1 tag there. I'm still curious about the iframe approach, mainly because I plan to use it somewhere else so need to explore it.

Thanks again!
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.