Results 1 to 3 of 3

Thread: Dynamic Ajax Content : External css & js

  1. #1
    Join Date
    Feb 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content : External css & js

    Thanks for the codes BTW. There really great!

    Regarding the "Dynamic Ajax Content" functions here: http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    The loadobjs(....css, ....js) function work fine, but the global css such as a{...}, body{...}, etc. applies to the entire page, not just the content loaded into the <div>.

    Duu... I know, but is there a way to contain it to just the content?


    NOTE: I cant change the content loaded into the div, there non-local and random. Also I can't use iframes.

    Thanks for your help!

  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

    The way css works is that you can override any earlier css with later css. However, changing the body's styles will affect the entire page no matter when or how it is done. You would be better off focusing on styling the elements in the added content, or the added content's container division.
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah thats the problem. Global classes always override reguarless of cascading. I can't altar the pages that are being loded in. They are private sites. ex: yahoo.com

    I was just hoping for a built-in method. I guess Im back to the original plan of dynamically parsing the css in the page_request.responseText to sub classes of the division. Messy

    Thanks

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
  •