Jump to content

Recommended Posts

Guess it's been a while new look eh?

 

Anyhow, I have been trying and trying and trying some more to get my form to display the users selections/values  in a small popup window, but every time.. the window displays on a full screen.

 

I used many code snippets to no avail.

 

The most recent I used was the following:

 

<form name="form" method="post" action="quote_results.php" target="_popup" onsubmit="return openPopup()"> 

I also have the function set up in the php file as well. Don't matter doesn't work anyhow, right?

 

I have spent some time searching for a solution, but with no JS skills whatsoever I am frustrated to say the least. It looks simple on paper, so what gives?

 

P.S. I have used height and size attributes as well with no luck.

 

Thanks in Advance!

what does your javascript look like?  eg,

 

function openPopup(){

//whats here ???

}

 

right now, your onSubmit is calling that function but it must be failing so instead, the form is just being submited to the action in the HTML and opening in a new window (because you have the target set to do so)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.