Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Popup - Onclick javascipt code. Help!
Old 08-19-2006, 08:04 PM Popup - Onclick javascipt code. Help!
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
I'm having a little problem getting PHP and Javascript to work together on a little project i'm working on. Here's my problem,

I have a form that has to be sent to one file and it contains the fields i want to appear on a preview popup.
I did use a script (Below) that wrote a tempary file, but it did not work for me as it could not load a template into the file.

Can only help?

The Javascript i was using that wrote tempary files looks like this

Code:
<script language="JavaScript">

function preview() { 

temp = document.reply.message.value; 

preWindow = open("", 

"preWindow"," menubar=yes, scrollbars=yes"); 

preWindow.document.open(); 

preWindow.document.write(temp); 

preWindow.document.close(); 
}; 

</script>
Then i done a onclick (Form Button) to send it to preview().

What i really need is a javascript that will either set a cookie or see what is in the field and post it to another page.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
 
Register now for full access!
Old 08-25-2006, 07:36 PM Re: Popup - Onclick javascipt code. Help!
kIDJOE's Avatar
Extreme Talker

Posts: 186
Location: Hollywood, CA
Trades: 0
Im confused.. are you doing PHP? just Get/Post th evariable from one page to another you can swing them as many times you want
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Old 08-28-2006, 10:10 AM Re: Popup - Onclick javascipt code. Help!
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
Do you want a Preview windows to showup all the data Entered in a HTML form?
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 09-27-2006, 09:09 AM Re: Popup - Onclick javascipt code. Help!
Kirtan's Avatar
Who Am I?

Posts: 377
Name: Venkat Raj
Location: Salem, South India
Trades: 3
If you want your popup window to show all the entered values in form of parent window, then you don't have to pass them to child windows. Instead you can use
"opener.document.getElementById('element').val ue'
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Reply     « Reply to Popup - Onclick javascipt code. Help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14679 seconds with 12 queries