Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Javascripts in DW

Posted on 2000-02-22
6
Medium Priority
?
179 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

721 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