Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 50

Thread: javascript help

  1. #31
    3SWiki.org
    Join Date
    Sep 2010
    Owner Since
    10+ Years

    Location
    The Silver State
    Posts
    661
    Thanks
    73
    Thanked 94 Times in 53 Posts
    By the way, one thing I've been meaning to mention:

    For some of your links, you don't list the fully qualified (absolute) URL. So, for example, 3sg.org links to "http://mi3si.org/beta/www.3sg.org" instead. It happens on the Texas 3S, 3SI, 3SGTO, 3SG and Blue Ridge Gathering links. Just thought I'd give you a heads up in case you hadn't noticed yet.

  2. #32
    Administrator Alan92RTTT's Avatar
    Join Date
    Jul 2010
    Owner Since
    02/1998

    Location
    Madison Heights, Mi
    Posts
    2,958
    Blog Entries
    7
    Thanks
    16
    Thanked 675 Times in 255 Posts
    The array is temporary until I have time to make the database to store them. That code will ensure that all url's have http on them before they are put in the array.

    Thanks a ton.

    NOw I just need to get the code to load jquery in plain JS working so the HTML just needs one script tag

  3. #33
    Administrator Alan92RTTT's Avatar
    Join Date
    Jul 2010
    Owner Since
    02/1998

    Location
    Madison Heights, Mi
    Posts
    2,958
    Blog Entries
    7
    Thanks
    16
    Thanked 675 Times in 255 Posts
    I've tried several variation on this to get jquery to load within an js file.
    PHP Code:
        function getScript(url,success){
           var 
    headdocument.getElementsByTagName('head')[0];
           var 
    scriptdocument.createElement('script');
           
    script.type'text/javascript';
           
    script.srcurl;
           
    script.async true;
           
    document.body.appendChild(script);
        }
        var 
    jqueryUrl "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
        
    getScript(jqueryUrl); 
    The JS is loaded into the document but it does not initialize.

  4. #34
    Administrator Alan92RTTT's Avatar
    Join Date
    Jul 2010
    Owner Since
    02/1998

    Location
    Madison Heights, Mi
    Posts
    2,958
    Blog Entries
    7
    Thanks
    16
    Thanked 675 Times in 255 Posts
    Before you ask, I am trying to get this all done in one call.

    PHP Code:
      <script src="http://www.3sg.org/beta/3sg_footer.js"></script> 

  5. #35
    3SWiki.org
    Join Date
    Sep 2010
    Owner Since
    10+ Years

    Location
    The Silver State
    Posts
    661
    Thanks
    73
    Thanked 94 Times in 53 Posts
    Quote Originally Posted by Alan92RTTT View Post
    Before you ask, I am trying to get this all done in one call.

    PHP Code:
      <script src="http://www.3sg.org/beta/3sg_footer.js"></script> 
    Done.

    3SG.org Tabs Demo (Source)
    3SG.org Tabs Demo (Remote Server)

  6. #36
    Administrator Alan92RTTT's Avatar
    Join Date
    Jul 2010
    Owner Since
    02/1998

    Location
    Madison Heights, Mi
    Posts
    2,958
    Blog Entries
    7
    Thanks
    16
    Thanked 675 Times in 255 Posts
    Can you explain a few things?

    Everything I have read says you should not use document.write yet you did and it works fine.

    Whats with the "scr"+"pt" in the document writes?

  7. #37
    3SWiki.org
    Join Date
    Sep 2010
    Owner Since
    10+ Years

    Location
    The Silver State
    Posts
    661
    Thanks
    73
    Thanked 94 Times in 53 Posts
    Quote Originally Posted by Alan92RTTT View Post
    Can you explain a few things?

    Everything I have read says you should not use document.write yet you did and it works fine.

    Whats with the "scr"+"pt" in the document writes?
    Old habits die hard - the scr + pt is legacy code for older browsers. It was taught to me when I was first getting started, but it can be changed to your way and should work the same. Here's some more details:
    document.write('<SCR' + 'IPT>'), why? JavaScript and AJAX forum at WebmasterWorld

    I've updated my .js file to use the createElement + appendChild methods instead, if that's what you'd prefer to go with.

  8. #38
    Administrator Alan92RTTT's Avatar
    Join Date
    Jul 2010
    Owner Since
    02/1998

    Location
    Madison Heights, Mi
    Posts
    2,958
    Blog Entries
    7
    Thanks
    16
    Thanked 675 Times in 255 Posts
    Well i have a working page. I'm not sure why some things are working as its written and not the way they were but it looks to be working.

    NOt sure why the document.ready code had to be put in a function and call the way it is.

  9. #39
    3SWiki.org
    Join Date
    Sep 2010
    Owner Since
    10+ Years

    Location
    The Silver State
    Posts
    661
    Thanks
    73
    Thanked 94 Times in 53 Posts
    I'm not a fan of scripting languages But with the help of jQuery, etc, it has come a long way.

    Glad to see it all working!

  10. #40
    Administrator Alan92RTTT's Avatar
    Join Date
    Jul 2010
    Owner Since
    02/1998

    Location
    Madison Heights, Mi
    Posts
    2,958
    Blog Entries
    7
    Thanks
    16
    Thanked 675 Times in 255 Posts
    Workign from 3sg.org - 3000GT / Stealth / GTO information and Michigan 3SI yay!

    Thanks alot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The 3000GT/Stealth/GTO Web History Project
3000gt.com
3000GT / Stealth International WWWboard Archive
Jim's (RED3KGT) Reststop
3000GT/Stealth/GTO Information and Resources
Team 3S
3000GT / Stealth / GTO Information
daveblack.net
3000GT/Stealth/GTO Clubs and Groups
Michigan 3S
MInnesota 3S
Wisconsin 3S
Iowa, Nebraska, Kansas 3S
North California 3000GT/Stealth
United Society of 3S Owners
3000GT/Stealth/GTO Forums
3000GT/Stealth International
3000GT/Stealth/GTO Event Pages
3S National Gathering
East Coast Gathering
Upper Mid-West Gathering
Blue Ridge Gathering