Right, I expect anyone that knows how could solve this in about ten seconds flat!
As above, I can open my iframe widget using
Code:
<a href="holder" onClick="googlewin=dhtmlwindow.open('googlebox', 'iframe', 'windowfiles/external.htm', 'Title', 'width=450px,height=250px,left=50px,top=50px,resize=1,scrolling=1')">Window Test</a>
I've now got a function that sets the mouse co-ordinates to tempX and tempY and can display these co-ordinates in an alert
Code:
<a href="#holder" onClick="alert('x: '+tempX+' y: '+tempY)">Mouse Test 1</a>
Everything seems fine up to here. The problem is using tempX and tempY in dhtmlwindow.open - I would have thought using ...
Code:
<a href="holder" onClick="googlewin=dhtmlwindow.open('googlebox', 'iframe', 'windowfiles/external.htm', 'Title', 'width=450px,height=250px,left='+tempX+'px,top='+tempY+'px,resize=1,scrolling=1')">Window Test</a>
... would do the job, but it fails if used directly as above, or even in a function.
Bookmarks