Need a button to launch a Java Sript,...

User 1989886 Photo


Registered User
10 posts

Hello All,

I have done such a good job of updating our product website but I am now stumped and we can't launch the product until this is fixed.

According to the product developer, on my site I need a "frame" that launches a java script when selected. This script checks to see if a certain operating system is loaded and then routes to setup if not and the application if it is. I have no clue how to do this.

I selected the add html and tried to enter it is an "onload events" but nothing shows on the page. Also, I have no way to add something like this to the button, it only allows me to enter a page, email. or url.

Any suggestions would be appreciated.

Old site (with the button that works) www.ecastdocustor.com
New Site www.ecastdocmanager.com

Thanks,

Michelle
User 364143 Photo


Guest
5,410 posts

According to the product developer, on my site I need a "frame" that launches a java script when selected. This script checks to see if a certain operating system is loaded and then routes to setup if not and the application if it is. I have no clue how to do this.


The product developer can't supply you with the script? You won't find a simple click and insert in VSD to do this.
CoffeeCup... Yeah, they are the best!
User 1989886 Photo


Registered User
10 posts

I have the script, just not sure how to insert it so that it runs when someone presses the login button.
User 364143 Photo


Guest
5,410 posts

Oh, sorry.

Place this in the head section of the document using the html tool. Replace myJavascript.js with the name of your external javascript.
<script type="text/javascript" src="myJavascript.js"></script>


Place this in the body of your document using the html tool. Change myFunction with the name of the function in the script that starts the ball rolling.
<input type="button" value="Click Here" onClick="myFunction();">
CoffeeCup... Yeah, they are the best!
User 1989886 Photo


Registered User
10 posts

Thank you so much, I will try this now.

Micvhelle
User 1989886 Photo


Registered User
10 posts

Ok, got it to work, however, my image is messed up. It shows up really small no matter how large I save it. Any ideas?

Have tried saving it as a .bmp and .jpg.

Michelle
User 364143 Photo


Guest
5,410 posts

What image on what page?
CoffeeCup... Yeah, they are the best!
User 364143 Photo


Guest
5,410 posts

my image is messed up. It shows up really small

What tiny image on that page?

Your form is throwing a ascript error. Put this in the head section of the page
<script type="text/javascript" src="swfobject.js"></script>
CoffeeCup... Yeah, they are the best!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.