Forum Moderators: open

Message Too Old, No Replies

Find and Replace in online html page

To be used in webpage

         

panther45

1:53 am on Feb 4, 2010 (gmt 0)

10+ Year Member



Hi, I am looking for a javascript that finds the name Smith in a webpage and replaces it with Jones. Then it can be saved by the user with those changes.
Thanks very much in advance.

MichaelBluejay

11:58 am on Feb 4, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Where do you want the copy saved? On the user's computer, or on the server, so that all future visitors to that page see the change?

If the latter, you can't do it with JavaScript, because JS doesn't have access to the server. You could do it with AJAX, but I think doing it with Perl or PHP would be easier for a new programmer to pull off.

If it's the former you want, then we can start working on the code here.

panther45

11:46 am on Feb 6, 2010 (gmt 0)

10+ Year Member



One stored on the computer. Not for public display, one to the customer.
I don't know anything about Ajax.

panther45

11:47 am on Feb 6, 2010 (gmt 0)

10+ Year Member



Now I know why I couldn't find a javascript anywhere.

panther45

11:33 pm on Feb 7, 2010 (gmt 0)

10+ Year Member



What is involved in doing it on here?

panther45

11:05 am on Feb 10, 2010 (gmt 0)

10+ Year Member



MichaelBluejay How does Pearl sound? Not being familiar with any of the programming you suggested?

panther45

9:48 pm on Feb 11, 2010 (gmt 0)

10+ Year Member



Hi again. Can anyone suggest to me how we go about working on the code on here? We seem to have come to a bit of a halt on my question.