Solved

Javascripts in DW

Posted on 2000-02-22
6
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create login page using dreamweaver cs6 and mysql (phpMyAdmin) 6 12,577
can i use dw to modify this site 1 329
slider for the banner 2 322
removing xml elements and children 5 553
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 …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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