Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 01-12-05
crazihos's Avatar
Registered User
 
Join Date: Apr 2005
Location: Central England
Posts: 411
Thanks: 11
Thanked 1 Time in 1 Post
crazihos is an unknown quantity at this point
  Design problem - im pulling my hair out!!

Please help someone, im thining on top as it is! lol

I have a web form that im validating using PHP and im embeding messages in it so that the user knows what mistake theyve made.

My problem is I dont want a whole page to open I want a smaller pop-up page say 400x300.

How do I specify that I want it as a pop-up window when building the page?

cheers

Russell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-05
Swiss's Avatar
memoryfinder.co.uk
 
Join Date: Jun 2005
Location: Wiltshire, UK
Posts: 343
Thanks: 0
Thanked 0 Times in 0 Posts
Swiss is an unknown quantity at this point
You could use a bit of JavaScript...
Code:
// Goes in HTML head tag
<script language="JavaScript">
<!--//
function openWindow() {
window.open("","window","toolbar=0,location=0,scrollbars=1,resizable=1,width=400,height=300,left=0,top=0");
}
//-->
</script>

//Heres how you open a page up in the new window
<a href="page.php" onClick='openWindow()' target='window'>Click Me</a>
Hope that gives you some ideas.
__________________
Kris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-05
crazihos's Avatar
Registered User
 
Join Date: Apr 2005
Location: Central England
Posts: 411
Thanks: 11
Thanked 1 Time in 1 Post
crazihos is an unknown quantity at this point
Cheers Swiss,

Id try java but its not a link to be clicked. Its a page that the form directs to if it finds a validation error in the form.

I think for a small validation error a pop-up will look better than loading a whole page. Is ther any way to tell a page to open itself in a small window without scrollbars etc... when you design it so that when its is opened it opens in a small window?

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-05
Swiss's Avatar
memoryfinder.co.uk
 
Join Date: Jun 2005
Location: Wiltshire, UK
Posts: 343
Thanks: 0
Thanked 0 Times in 0 Posts
Swiss is an unknown quantity at this point
Hmm not sure on that one at the moment I'm afraid, if something does pop into my mind, I'll let you know.
__________________
Kris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-05
morleymouse's Avatar
Super Member
 
Join Date: Aug 2003
Location: Costa Del Sheffield
Posts: 2,744
Thanks: 1
Thanked 10 Times in 6 Posts
morleymouse is an unknown quantity at this point
only thing is a pop up blocker might stop it and leave your user very confused

best way, in my opinion is to do the validation server side. so the script gets submitted and if its fine, does whatever if theres a problem the user sees the same page as before with the fields filled i nthey filled in, but the ones causing errors or left blak have a small red mark next to them or some red text saying "please fill this in" or "your email isnt a@b.com"

well thats what id do anyway

what scripting language is the form handler?
__________________
Dan Morley
Alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-12-05
eskimo's Avatar
Registered User
 
Join Date: Aug 2003
Posts: 659
Thanks: 0
Thanked 0 Times in 0 Posts
eskimo is an unknown quantity at this point
Can't you out put a traditional pop-up script if an error message exists?

if ($error)
{
include (../popup.php?message=$error);
}

else
{
do nothing
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Keyword Research - Care to contribute to the research? webdesignhq Search Engine Strategies 4 26-03-07 09:52 AM
My problem frazer987 The Affiliate Marketing Lounge 5 25-06-05 11:02 AM
Espotting - Pulling My Hair Out Qui Gon Jinn Pay Per Click Search Engines 4 27-12-04 04:11 AM
Need your feedback Re: web design programme. NaturalInstinct The Affiliate Marketing Lounge 2 09-07-04 02:09 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7