|
-
Oct 7th, 2004, 09:41 PM
#1
Thread Starter
Hyperactive Member
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
-
Oct 8th, 2004, 02:41 AM
#2
Frenzied Member
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. 
-
Oct 8th, 2004, 03:23 PM
#3
Thread Starter
Hyperactive Member
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
-
Oct 8th, 2004, 03:44 PM
#4
Frenzied Member
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. 
-
Oct 8th, 2004, 05:06 PM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|