Results 1 to 3 of 3

Thread: Ajax + sIFR :(

  1. #1
    Join Date
    Nov 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax + sIFR :(

    http://cwi.yellowworld.org/vision/test.html

    At the top of the page you'll see a few links, click on "A Place." The ajax script will then dynamically load a new page. But for some reason my fonts aren't getting styled by the sifr script...

    Any suggestions?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Simply linking a script to a page is one thing, running it or running any of its functions are a different matter. All loadobjs() does is write a link on the page that links whatever files you set as its parameters to the page. Since, sifr.js is already linked to the page, this doesn't accomplish anything good and may even be a problem if you try running the functions contained in sifr.js later. Except I believe that loadobjs() checks to see if the files are already linked to the page but, it might miss something. In either case, this is the wrong approach. Why not set your fonts using style? This would not need to be linked to the page more than once either but would take immediate effect with no intervention required. If the script has some intrinsic value like allowing non-standard fonts on systems that normally won't support them, then you need to run the script or its appropriate functions after the new content has been loaded by the ajaxpage() function.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2008
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    jscheuer1, so is it possible to load a page with sifr fonts or not? I haven't figured that out from your post.

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
  •