Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Javascripts in DW

Posted on 2000-02-22
6
Medium Priority
?
180 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
[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

 

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 20 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

877 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