Results 1 to 5 of 5

Thread: Javascript: Rewrite To Do More

  1. #1

    Thread Starter
    Hyperactive Member alacritous's Avatar
    Join Date
    Aug 2003
    Posts
    464

    Javascript: Rewrite To Do More

    Hello,
    How can I rewrite http://javascript.internet.com/misce...te-search.html to put the results on the same page? Kind of like when Microsoft has options like operating system and stuff, it appears like right below it. I think this is ASP (what Microsoft does) but I'm not sure...

    Alacritous

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    scrap the part that opens a new window. Instead of it writing to that window, make it write to the innerHTML of a <div> which you've made. You'll have to change it slighlty so it doesn't write all the <html> and <body> tags.
    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Hyperactive Member alacritous's Avatar
    Join Date
    Aug 2003
    Posts
    464
    Actually, I've changed my mind. Sorry.

    How can I make it write a new html file, but load in the same page, as if it were redirecting to the new file?

    Alacritous

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    almost identical. place all the current code in a div tag. then clear it before adding the search results to it.
    <scottishaccent>Use yer common sense man!</scottishaccent>

    edit: clear a div with id=myDiv with this:
    document.getElementById('myDiv').innerHTML = ""
    Have I helped you? Please Rate my posts.

  5. #5

    Thread Starter
    Hyperactive Member alacritous's Avatar
    Join Date
    Aug 2003
    Posts
    464
    The problem is, I don't know Javascript, I just know HTML. I guess this is one of those things where I copy to get done, not learn to get done.

    Alacritous

Posting Permissions

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



Click Here to Expand Forum to Full Width