I have been tinkering with pop up windows and javascript. I got the javascript window working great in general, but I'm having trouble getting a variable to work with it.
Here is the script in the <head> tag of the html:
Here is the link
I'm not attached to any method of accomplishing what I want. I need to create a small pop up window which displays details of a particular record. The links to the View Contact information are generated via PHP.
What I get is the small contact window without a record loaded in it. If I dump a fully addressed link into a browser window, such as
I get what I want, but it's not in the small pop up that I'm seeking. The number at the end of the link is a variable.
I'm more familiar with PHP than javascript, so if there is some "wordy" way of doing this that I can dump into my code using PHP, that's fine.
MrsBean
Here is the script in the <head> tag of the html:
Code:
<script language="JavaScript">
function launch(){
win=window.open("viewContactInfo.php?thisID=<? echo $wsuaaID; ?>", (break for readability)
"ViewContacts","width=250,height=400,top=50,left=50, (break for readability)
resizable=YES,scrollbars=NO,menubar=NO,toolbar=NO,status=NO,location=NO")}
</script>
Here is the link
Code:
<a href="javascript:launch()">View Contacts</a>
I'm not attached to any method of accomplishing what I want. I need to create a small pop up window which displays details of a particular record. The links to the View Contact information are generated via PHP.
What I get is the small contact window without a record loaded in it. If I dump a fully addressed link into a browser window, such as
I get what I want, but it's not in the small pop up that I'm seeking. The number at the end of the link is a variable.
I'm more familiar with PHP than javascript, so if there is some "wordy" way of doing this that I can dump into my code using PHP, that's fine.
MrsBean