Results 1 to 2 of 2

Thread: At the risk of sounding STUPID.

  1. #1
    Join Date
    Dec 2010

    At the risk of sounding STUPID.

    I am fairly new to Javasript and trying to learn as I go. I have been successful thus far in my coding but I am having difficulty on this particular piece. It seems pretty simple but I think I am missing something somewhere. Any help would be greatly appreciated. Here is the code from a test page. I am only trying to link a external calendar to a applet but for some reason, it's disconnected. Please help a amateur learn.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script type="text/javascript" src="javascript:wsLaunch.js 'http://clients.mindbodyonline.com/ws.asp?studioid=14520&stype=-7&sView=week'></script>

    <div id="cal">
    <applet code="wsLaunch.js" codebase = "" width="832" height="302" alt="cal">

    This is their link instructions:

    Popup Link: javascript:launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=14520&stype=-7&sView=week');

    To Use Popup Links: (Preferred)
    Include the below script in all webpages that will contain links to your MINDBODY site.

    (1) You can upload the script as a .js file to your web server, and include the file in the <head> section of each page linking to WS:

    <script type="text/javascript" src="<relative path to file>wsLaunch.js"></script>

    (Right Click here and click "Save Target As..." to download wsLaunch.js)

  2. #2
    Join Date
    Dec 2002
    St. Louis, MO, USA
    Download the .js file and save it in the root directory of your site.
    <script type="text/javascript" src="javascript:wsLaunch.js 'http://clients.mindbodyonline.com/ws.asp?studioid=14520&stype=-7&sView=week'></script>
    "javascript:" doesn't belong in the source for a javascript file. Make the src attribute just the name of the .js file that you put in the root directory. Most of what you currently have belongs in the anchor (link) that you will use for the popup.

    In their sample code, is the codebase missing/blank for the applet object??

    As far as the link for the popup, forget about putting "javascript:" in there. Try this:
    <a href="http://clients.mindbodyonline.com/ws.asp?studioid=14520&stype=-7&sView=week" onClick="launchWS(this.href); return false;">text for link</a>
    Last edited by WolfShade; 12-22-2010 at 02:58 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center