Solved

Javascripts in DW

Posted on 2000-02-22
6
171 Views
Last Modified: 2010-04-25
Example: i put a clock in a fram script and it works, but when i put several script in the same doc., only one script works ??
0
Comment
Question by:Eia
6 Comments
 
LVL 1

Expert Comment

by:cabrionet
Comment Utility
Interesting question. Show the source...

Cabrio
0
 

Author Comment

by:Eia
Comment Utility
Im new sorry. Source like in html/script?
0
 
LVL 1

Expert Comment

by:cabrionet
Comment Utility
Yes ;)

0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Expert Comment

by:fayeb
Comment Utility
Its really hard to answer this question as you haven't given much inforamtion on the problem a copy of the HTML vode as it stands at present would be nice as it would help us a lot more to look at the problem as a whole because we can't see what and how you have tried to place these scripts but just as a guide line here are a few pointers on how to layout you scripts based on the fact that the scripts are being called when the page loads.  Hope this is of some help

In the header write the c script in the following layout:

<script language="JavaScript">
<!--

function MM_FIRST JAVASRIPT()
coding for javascript goes here.....

function MM_SECOND JAVASCRIPT()
coding for javascript goes here.....

function MM_THIRD JAVASCRIPT()
coding for javascript goes here.....
     
//-->
</script>


THEN in the <Body> Tag place the code in this format:

<Body onLoad="MM_FIRST JAVASCRIPT ();MM_SECOND JAVASCRIPT();MM_THIRD JAVASCRIPT();">
0
 

Expert Comment

by:lemontree
Comment Utility
Is that you have write several
<script language="JavaScript">
</script>
a time ar???

<script language="JavaScript">
<!--

function MM_FIRST JAVASRIPT()
coding for javascript goes here.....
   
//-->
</script>


<script language="JavaScript">
<!--

function MM_SECOND JAVASCRIPT()
coding for javascript goes here.....

function MM_THIRD JAVASCRIPT()
coding for javascript goes here.....
     
//-->
</script>





0
 

Accepted Solution

by:
smallguy031700 earned 10 total points
Comment Utility
Eia -

I can almost guarantee that if you have a javascript clock running in the frame, this is source of your problems.

Check if it has the statment "settimeout=..." in the script. You can find this by pressing F10 in dreamweaver, to see the source, then look for the red highlighted text down the page with <script language="JavaScript"> or <script language="JavaScript1.2"> etc. Sorry if this is dumbed down, but i don't know you level of expertise.

The only way for a clock to keep the current time is with the "settimeout=" part, which basically means that this particular javascript is running itself, not letting the other javascripts run.

I have the best solution for this is to put the clock its own seperate frame, so that it doesn't effect the other scripts.

I hope this helps
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now