ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 7th, 2005, 08:31 AM
wonderlandh wonderlandh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Nottingham UK
Posts: 60 wonderlandh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 48 m 31 sec
Reputation Power: 4
passing form variables with java popup

Hi

Trying to login to a page so that it pops up rather than
opens in the same browser window.

This code works but opens in same window:
Code:
 <form name="formz"  method="post" enctype="multipart/form-data" action="https://www.mywebsite.com/login.cfm">
      <div align="center">
	  <cfoutput>
        <input type="hidden" name="username" value="#session.username#">
        <br>
        <input type="hidden" name="password" value="#getClient.password#"></cfoutput>
        <br>
        <br>
        <input type="image" border="0" src="images/manage_res.jpg" name="Login">
      </div>
    </form>


This is a bit of javascript that opens a window and sure
enough, the window does open... but the variables aren't
being passed:

Code:
 <form name="formz"  method="post" enctype="multipart/form-data" action="javascript:MM_openBrWindow('https://www.mywebsite.com/login.cfm','pop','status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=500')">
      <div align="center">
	  <cfoutput>
        <input type="hidden" name="username" value="#session.username#">
        <br>
        <input type="hidden" name="password" value="#getClient.password#"></cfoutput>
        <br>
        <br>
        <input type="image" border="0" src="images/manage_res.jpg" name="Login">
      </div>
    </form>


any ideas?

Reply With Quote
  #2  
Old February 7th, 2005, 09:14 AM
bocmaxima's Avatar
bocmaxima bocmaxima is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tucson, Sonora
Posts: 1,322 bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 46 m 5 sec
Reputation Power: 23
Send a message via AIM to bocmaxima
<form name="formz" method="post" enctype="multipart/form-data" action="https://www.mywebsite.com/login.cfm" target="_blank">

That will open it in a new window.

Reply With Quote
  #3  
Old February 7th, 2005, 03:48 PM
Shane_Z Shane_Z is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: In denial
Posts: 22 Shane_Z User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 57 m 52 sec
Reputation Power: 0
Send a message via MSN to Shane_Z
or maybe using the onSubmit() method instead.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > passing form variables with java popup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway