View Full Version : Javascript loads without container div, but not with
bradyj
08-16-2003, 01:00 AM
I have an older design that I was turning into a frameless layout -- it has a conveyer belt Javascript in it. It works perfectly in the older, framed with CSS design, in the new version, without frames and with a container div, it doesn't show up at all. Any ideas?
Old examples:
http://www.superioramerican.com (frames yuck)
New example:
http://www.dotfive.com/sapdiv/index.html (still not 100% recoded)
MotherNatrsSon
08-16-2003, 02:05 AM
In the frames page you have the script in the page. In the new design you call it from an external file. I get this error from the javascript console in Netscape 7:
Error: missing ) after argument list
Source File: http://www.dotfive.com/sapdiv/style/con.js
Line: 44, Column: 47
Source Code:
leftrightslide='<nobr>'+leftrightslide.join(" """"""""""""""""""""""")+'</nobr>'
I am willing to bet the script was reformatted when you put it in the external file.
MNS
edit: Comparing the 2 scripts, they look like slighlt different versions as well???
bradyj
08-16-2003, 02:17 AM
I'll be damned -- I just used Dreamweaver and cut and pasted it into a .js file IN Dreamweaver... Thanks MNS!! Watch out for that, stick to BBEdit;)
MotherNatrsSon
08-16-2003, 02:25 AM
Originally posted by bradyj
I'll be damned -- I just used Dreamweaver and cut and pasted it into a .js file IN Dreamweaver... Thanks MNS!! Watch out for that, stick to BBEdit;)
If you choose to integrate BBEdit in your preferences in Dreamweaver, it should automatically open up BBEdit to do that for you. I have mine set up that way.
Dreamweaver Prefernces > File Types/Editors there is a checkbox to integrate BBEdit and just above that is a file type for it to automatically open in BBEdit. Add any file type extensions (.js .pl.cgi etc.) to that list you want to open in BBEdit.
MNS
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.