danIT Posted February 11, 2008 Posted February 11, 2008 I need a bit of javascript to change and ( ` ) to a ( ' ) The text gets output in simple html Jame`s was amazing but needs to be Jame's was amazing Any ideas?
Jona Posted February 11, 2008 Posted February 11, 2008 http://www.w3schools.com/jsref/jsref_replace.asp ?? Cheers Jona
danIT Posted February 11, 2008 Author Posted February 11, 2008 Thats great, but i need it to do the replace across a whole html page not just the string i specify in the script? Can anyone help?
lasercat Posted February 11, 2008 Posted February 11, 2008 Probably not what you need, but could you take the html into notepad and do a good ol' find and replace?
rrichmond Posted February 11, 2008 Posted February 11, 2008 I need a bit of javascript to change and ( ` ) to a ( ' ) The text gets output in simple html Jame`s was amazing but needs to be Jame's was amazing Any ideas? Yes. You need to learn how to use an apostrophe! It tends to indicate ownership or missing letters. Sorry, but I've had to many people telling me off so I had to correct you. http://www.apostrophe.fsnet.co.uk/
tom_newton Posted February 11, 2008 Posted February 11, 2008 What's the application - you may have a hard time getting js to work across the whole doc.... explain what you are trying to do and someone may have a better trick...
Jona Posted February 11, 2008 Posted February 11, 2008 Theoretically you could write a javascript look to get the content of each html element and replace it but this makes me shudder just to think of it. I think you need to give us more info about what your trying to achieve and the enviroment. If its a static page then notepad, grep, etc will be your best bet. If its database driven then maybe you could do it as a sql query in the backend or in what ever language is pulling your data from the database. Cheers Jona
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now