Ask a Question related to Macromedia ColdFusion, Design and Development.
-
chriskeeler2 #1
javascript not working!!!
Alright, I'm starting to go crazy, cause this damn onLoad script is not
working. When I view source, the variable is in the onLoad statement, but no
window. ?? Please help!
Thanks.
-Christopher C. Keeler
<script type="text/javascript">
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl +',scrollbars='+scroll+',resiz
able'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// End -->
</script>
<cfif IsDefined("url.status")>
<cfif url.status EQ "batch"><cfset batchonload =
"NewWindow('batch/#url.file#.pdf','formprint','480','350','yes'); return
false;"></cfif></cfif>
<body topmargin="0" leftmargin="5" marginheight="0" marginwidth="0"
bgcolor="#ffffff" onLoad="<cfoutput>#batchonload#</cfoutput>" link="#FF0000"
vlink="#999999" alink="#FF0000">
chriskeeler2 Guest
-
Show Hide javascript not working
Can someone tell me what I am doing wrong??? Please help. <html> <head> <title>Untitled</title> <script language="JavaScript"> <!-- function... -
javascript not working w/ CF
Hi, I've got a weird situation: javascript does not work when invoked from an action.cfm page that is processing an cfupdate to a db. Page1:... -
Javascript calendar pop-up not working
I have downloaded and added a calendar pop up from www.softcomplex.com/products/tigra_calendar/ to my CDML webpage. It calls a pop-up window with a... -
Working with PHP Class Within Javascript
Hi all, I am writing a HTML page to gather whole bunch of information provided by user and pass it to the PHP script to generate a report base on... -
simple javascript not working?!?!?
why doesn't PrintGrid() get called at Print Button OnClick???!??!! -------------------- Code in aspx file .....initial stuff <HEAD> ....... -
A3gis #2
Re: javascript not working!!!
Hi,
I've tried a direct copy and paste of your script (without the if statement
and changed the variable in the onload) and it works fine. only thing i can
thing of is that you arent using the right browser to trigger the script.
have you tried putting in an alert(navigator.appVersion); to see what you get?
Cheers,
Aegis
A3gis Guest
-
chriskeeler2 #3
Re: javascript not working!!!
Fixed the problem. It was another JS script a little lower on the page writing a new onLoad.
chriskeeler2 Guest



Reply With Quote

