Google Answers Logo
View Question
 
Q: Make 3 Javascripts run on the same page ( No Answer,   2 Comments )
Question  
Subject: Make 3 Javascripts run on the same page
Category: Computers > Internet
Asked by: bnc_user-ga
List Price: $30.00
Posted: 28 Apr 2003 13:54 PDT
Expires: 30 Apr 2003 16:46 PDT
Question ID: 196695
My page is using javascript for navigation (generated by a program).
At the same time I want to use a "Text Messaging"-Javascript and a
Slide-Show javascript on the same page. Unfortunately neither the
text-messaging nor the slide-show script seems to run with the
menu-navigation script. I checked whether the most common errors like
windows or frame.onload is causing this. But it is not. Next I wrote
to the developer of the program that generates the menu-navigation
script, but they couldnt find the reasons why these scripts would not
run on the same page. So maybe someone here can find a solution.

You can download here (www.point-x.com/Menu.zip) a zip file which
contains a menu.htm file. This file contains the navigation script
(you need the two enclosed .js files to run it properly). Then there
are two subfolders each one with a script to include. The pictures for
the slideshow are in the root folder. My question is answered if you
can make all three scripts run on the same page. Also please tell me
what alterations you have made to the code, so I can incorporate the
changes to my page.

You can alter the Text-Messaging-Script, the slide-show script as well
as the two (one IE, one NS) external .js (for the navigation) files
but if possible not the menu-navigation-script in the menu.htm file.
If there is no other way then altering that you can do so.

Regards

m.

Request for Question Clarification by dogbite-ga on 28 Apr 2003 18:09 PDT
Hi bnc_user-ga,

  Well, I'm embarassed to say that I
  worked on it for 4 hours and could
  not solve it.  I have to force myself
  to stop working on it and go onto
  other things.

  Good luck.

          dogbite-ga

Clarification of Question by bnc_user-ga on 28 Apr 2003 20:07 PDT
if you have been able to make one script work with the menu-navigation
script then let me know?

Request for Question Clarification by dogbite-ga on 28 Apr 2003 20:18 PDT
Hey bnc_user-ga,

  My main problem was that the menu script
  code was obfuscated so it was very hard 
  to work through and nearly impossible to
  understand.

  My suggestion is to ditch the menu code.
  I could write something with similar 
  functionality rather easily.  Then I
  would understand it and could get it to
  work with the other two scripts.

  I would do that work for $100.  If you 
  want me to do that, please let me know.

           dogbite-ga

Clarification of Question by bnc_user-ga on 29 Apr 2003 16:40 PDT
IT WORKS...
Answer  
There is no answer at this time.

Comments  
Subject: Re: Make 3 Javascripts run on the same page
From: j_philipp-ga on 29 Apr 2003 00:39 PDT
 
I tried to help but couldn't access the ZIP file at the moment. Maybe
a temporary problem.
Subject: Re: Make 3 Javascripts run on the same page
From: cwilper-ga on 29 Apr 2003 15:17 PDT
 
Well after playing with this for a while, I just signed up for an
account only to realize I can't be a "Researcher".  So I guess I can't
get paid for this, but I partially solved the problem so I thought I'd
help out.

With the messaging script, you know how it does onLoad in the body?
Well, for some reason onLoad isn't working.  So instead of putting it
there, insert a script element way down at the bottom of the existing
html (after the div you insert).  And in the script element, call
doText(message).  I did this and it works fine.

The same basic idea can probably be used on the other script.  The
slideshow one.  See how, near the end, it does a
window.onLoad=startit?  Instead of that, just put the script near the
bottom of the page (below where you want to insert the div for the
slideshow), and just call startit instead of window.onLoad=startit. 
Haven't verified that will work but you can probably figure it out
from there.

My guess is that the menu nav script is somehow causing any onLoad
calls to be ignored..

Cheers,
Chris

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy