Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    fetching extenal html div element

    <div>hi
    i have a prob of loading an html page's div element's content. is there any way to load it using html dom or javascript or else should i use server side scripting like ajax? i have seen some of them in google sites they tell us to use their jar files and load them . is it necessary cant we do without the jar files?<div>

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Your question is a little generic on the details.

    You want to load data into a div. What is this data and where is it coming from?

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hi alien51

    i want to load a div element's content from an external html file to another html file.
    In almost every site i see the ajax code loading an external html page content but not the external page's div element's content.
    i think u understand by this
    for ex:
    first html file :
    <html>
    <head>
    </head>
    <body>
    <div id = "blah_blah">
    </div>
    </body>
    <html>
    second html file
    <html>
    <head>
    </head>
    <body>
    <div id = "blah1">
    my name
    </div>
    <div id = "blah2">
    ur name
    </div>
    </body>
    </html>
    Now i want to load the div element whose contents are "my name" into first html file's div whose id is "blah_blah"


  •  

    Posting Permissions

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