How would I access the source of a webpage? I would like to get the source,
then use a regexp to find text on a webpage. For example, retrieving a
counter, or some other text that dynamically changes. I'm implementing this
right now, i have a web page opening that contains that info, but i would
rather have a pop up alert() that shows that info.
I am trying to create a chrome extension that can pass text from a text box to a webpage text box. Basically my company has an intranet site where you can search for an employee. The url does not display the search terms so i cant just append to it. Since I cant really work on this outside of work (its an intranet site) i have tried replicating it from home using the let me google that for you (www.lmgtfy.com) site.
Is it possible to have a text box input searching for the entered text on another webpage in the same way Find In Page would do? I have a webpage that I want users to input an item, and that this will open the targeted webpage and bring you to (and highlight) the matched item(s) like find in page does. Is this possible or is the easiest way to just make users open the link to the target page and just complete the find in page search there?
I am hoping you can help me. I am finding this problem rather complex to solve. I need to be able to find the surrounding text at the mouse position. For example, if a user clicks on a word in a paragraph, I need to programmatically know what the text is surrounding the click point. The text in question is not just content text, but DOM elements read in as text rather than the DOM element itself. For example, if a user clicks at the word "This" in the following:
<table><tr><td>This is good</td></tr> then I would like to know how to get the text "<td>" just before the "This" as text, not as a DOM element. Furthermore, how can I "enlargen" the scope of my capture, such that I can programmatically get the "<table><tr><td>" part as well as the "is good</td></tr>" part?
Question 1 ---------------- I am writing an advanced BBCode system for my forums and I would like to be able to find where the cursor was positioned last in the text so I could insert the BBCode there.
Question 2 ---------------- Again I am writing an advanced BBCode system for my forums and I would like to make is so that when someone puts in a [b] tag it goes bold, so kind of a WYSIWYG editor and also for other things like [img] tags and [url] tags. So could someone tell me how to do that. I would preferably like it to still use the textarea tag, or at least a form component so my existing code works.
The city's or ads aren't their own div elements or anything (nothing can ever be so simple) - but the city's listed are formatted by <font size="-1"></font>, and each ad is in it's own paragraph tag.. maybe I can use that somehow?
I'm trying to write a macro, but I'm lost. So say if I have an array of keywords to check for on a web page, var keywords=new Array(); keywords="You are a cat"; keywords="Are you a robot"; keywords="Have a good summer"; How would I make a function that checks the currently opened web page for one of the specific keywords. And if that keyword is found, then execute some action - and if not, then execute some other action?
I like to display "big sideBanner" on the webpage if containerHeight is 100 or containerHeight is more than 100 and "middle sideBanner" if containerHeight is more than 50 and containerHeight is less than 100 and "small Banner" if containerHeight is less than 50. How can I make it work?
I am trying to place text output from a url on another webpage.The output is the status of an alarm system.hash and mac info remove for security reasons.I would like to place these three outputs on another page.
I created a web page having textbox and an update button. My need is to display data in the text box when page is loaded. After that when I click on the textbox it will become an input textbox and can enter data. when data entered completely, click on the update button, after that newly entered data must be displayed on the text box. i.e same text box will be used for input and output data.
I created my web page using html. I knew that, by using ajax i can implement the above functionality. but i didn't get any idea to write the code.
I can't figure out the code to perform this task. I need to change the menu's text color with a mouseover on a webpage. The menu consists of 7 text links. Each one is a different color. The mouseover is to change the text link to orange while the other 6 menu items change to purple.
can a web parser differentiate between static and dynamic text on a webpage? for example there is a string on a webpage Hello "Fantastic Four"In this "Hello" is a static data and "Fantastic Four" is a dynamic data (say being populated form a database value)Is it possible for web parser to detect whcih is a static and dynamic content?
I'm try to set up a webpge that will play a live flash video on the left-hand side(got that part working) and display one slide of a presentation(jpg) to the right of the video. I would like to be able to control when the slide image changes by having some js check a text file on my server. The text file could contain something as simple as "Slide1.jpg". I will manipulate the text file with some code I've already written. Is there some simple js code I can put in my page that will cause it to check the text file every 5 seconds, and if the content of the file has changed, to refresh the image on the page with the new image? I'm try to get away from the "clicking" sound that is caused by doing a simple refresh of an Iframe.
What I would ideally want is to embed the total in the page, rather than a text field. The total appears to the user like it is normal text in a page, only it will update when the form values are changed.
I presume that I want document.write to do this? Does anyone know how I could do this/ or if there is a page that does this sort of thing where i can 'borrow' the code?