Hi. My deadline is rapidly coming up and I'm no closer to solving this problem than last week. The webapp requires a user to be able to highlight a selection of text and click a button on the app. The Highlighted text will then be wrapped in a new HTML tag (lets say its a <b> just for...
Can anyone suggest a good way to write text into a JS page?
Basically I'm using an IFRAME to show dynamic feedback to the user.
I need to be able to write text into this separate JS page and remove it later.
I.E. The user clicks a button
The words "You clicked a button!" appears in my...
Hi. I need to be able to make a new node, actually an empty tag and be able to wrap it around a node or textrange. Actually I need to be able to do both those things. I'm working primarily with GWT and javascript in the JNSI (if you don't know what that means assume I can use any JS command and...
Is it possible to use an onClick function to catch the selected text of information INSIDE of a frame? Or is that not allowed?
I.E. You have a frame in your website, you click and highlight text in the frame, and the html page that contains the frame catches the event and processes the text...
Hello. I'm trying to do two things when a user right clicks on my document. Number 1 I need to display a special context menu, I have this part written. Number two, I need to be able to identify what text chunk (the node would probably work) the user did click on and put it in a variable.
This...
Can anyone tell me how to get the HTML code of a page in a frame?
I'm using
function view_HTML( )
{
var newwin = window.open( "", 'templateview', 'scrollbars=yes,width=600,height=600');
newwin.document.open( );
newwin.document.write("<html><head></head><body>\n")...
I'm looking for an implementation suggestion. I don't usually do much with graphics so I'm not totally sure how to do this.
My client wants a user to be able to click on an "item" in a "table" and have that trigger an event. Basically what he wants is if you look at the main page on the forum...
I am working on a webapp which is supposed to take the string highlighted and selected by a user, and find what text node in the DOM that string is in.
So far I'm making progress. This is my code
var selObj = window.getSelection();
alert(selObj); //print out selection
//find DOM node...
Ok if I can't access the destination url where I'm going onleave, what about if I put a javascript function like onClick in each A href tag. Is there a way for me to get the actual URL in the link and do something with it before we redirect to the new page?
Like
<A href = "unspecified url"...
Hey. I need to get the url of the web page/site of where I am going when I enter an onleave event. Unfortunately due to the way this app has been designed I can't simply put javascript around every <A> link. Is there a variable or function that will let me get where the browser is about to go? I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.