0

Hey there, in short I'm looking to parse a web page and find the text "class abc" and create a url like this: http://www.site.com/code/documentation/classes/classabc/index.html

I'm basically gonna create links from my hosted svn code website to documentation I've generated via doxygen from the same codebase.

2 Answers 2

1

jQuery is great for handling objects and elements in the DOM and might serve as a starting point for what you want to do. This is really more of a basic JavaScript function however. Read up on JavaScript String Replacement over here.

Sign up to request clarification or add additional context in comments.

1 Comment

but I need to traverse the document in the first place and the text lies not neatly in an element. it's the word "Post" here as part of "class post extends...": svn.snacksquare.com/… I was using one of the nth-child jquery selector: docs.jquery.com/Selectors/nthChild#index to get close, but I need like nth-child plus a next function that grabs the next piece of text after the selected element. I plan to just grab the name of the class and link it to the documentation generated by doxygen.
0

I think in this case no need for JQuery, Pure JavaScript language is enough.

Replace Method

Search

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.