Results 1 to 5 of 5

Thread: Question on Dynamic Ajax Content

  1. #1
    Join Date
    Dec 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Question on Dynamic Ajax Content

    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    Is there a script to have something be like that, only instead of opening a link in the right hand side, just have whatever text you want to input?

    Thanks!

    Veronica

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmmm the whole purpose of Ajax is to retreive a file that already exists on the server. If you're looking to display text based on something you enter, just DHTML will suffice. For example:
    Code:
    <div id="test">Old text</div>
    
    <script type="text/javascript">
    document.getElementById("test").innerHTML="new text"
    </script>
    Last edited by ddadmin; 12-17-2005 at 10:15 PM.

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Well, it will suffice if you remember to put in the slash in the end-DIV tag and specify type="text/javascript" for the SCRIPT, of course
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    What you talkin' bout Twey, they were there to begin with!

  5. #5
    Join Date
    Dec 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I figured it out, thanks for all the help!

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
  •