[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1063
  • Last Modified:

window location coldfusion passing

I am getting an error that says, expected ) when I try this, why?

opener.location.href('calendar.cfm?Qdate=#dateformat(form.appdate, 'mm/dd/yyyy')#'); window.close();
0
judsonmusic
Asked:
judsonmusic
  • 5
  • 4
1 Solution
 
B_DorseyCommented:
you are opening a window and closing the window that opened the window?
0
 
_agx_Commented:
To set the location use = not parenthesis (...)


<cfoutput>
...
opener.location.href='calendar.cfm?Qdate=#dateformat(form.appdate, 'mm/dd/yyyy')#';window.close();
</cfoutput>
0
 
judsonmusicAuthor Commented:
I actualy had to do this:

opener.location.href=('calendar.cfm?Qdate=#dateformat(form.appdate, 'mm/dd/yyyy')#');window.close();
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
judsonmusicAuthor Commented:
well actually, thats not working either.

this is what I put:
  <script>
  window.opener.location.href='calendar.cfm?Qdate=#dateformat(form.appdate, 'mm/dd/yyyy')#';
  window.close();
  </script>

it is now saying, expected ;
0
 
judsonmusicAuthor Commented:
what I am doing, is at the end of and update statement, I want to colse the currentpopup and go back to the url in the opener window. i was using refresh, but it gives that retry error.
0
 
_agx_Commented:
> this is what I put:

You need to surround it with <cfoutput> tags

<script type="text/javascript">
      <cfoutput>
      opener.location.href='calendar.cfm?Qdate=#dateformat(form.appdate, 'mm/dd/yyyy')#';
      window.close();
      </cfoutput>
</script>

> i was using refresh, but it gives that retry error.

What syntax were you using..  reload()?
0
 
judsonmusicAuthor Commented:
yes, reload, is there a better way?
0
 
_agx_Commented:
Reload is fine.  But I don't know what "that retry error" is.  That's why I wanted to see the syntax you used.
0
 
judsonmusicAuthor Commented:
oh it is just IE7 warning about page reload, thats all
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now