Solved

Javascripts in DW

Posted on 2000-02-22
6
172 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
ID: 2547368
Interesting question. Show the source...

Cabrio
0
 

Author Comment

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

Expert Comment

by:cabrionet
ID: 2547761
Yes ;)

0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Expert Comment

by:fayeb
ID: 2557369
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
ID: 2571319
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
ID: 2629814
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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