aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript Guru Needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript Guru Needed" Watch "Javascript Guru Needed" New topic
Author

Javascript Guru Needed

Sean Richards
Greenhorn

Joined: Feb 02, 2002
Posts: 8
Hi I'm working on a project that requires the use of javascript. I have a page that has a form. If a user clicks on the submit button without entering text in a specific field a smaller window will pop-up with some links. When the user clicks on one of those links in the smaller popup window, the field in original window will be populated with some data that in the link.
Does anyone know how to do this in javascript? I tried using query strings but that only works in jsp and cgi and this needs to be in javascript.

thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I am guessing you know how to do the pop up.....
basically all you need to do is this
popup window code
<script>
function SendIt(Inf){
parent.document.FormName.ElementName.value=Inf;
}
<script>
<a href="javascript:'SendIt(\'Text\')'">The Link</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Javascript Guru Needed