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
form validation to check if iframe form submitted
Old 03-05-2009, 11:34 AM form validation to check if iframe form submitted
Novice Talker

Posts: 14
Trades: 0
hi,

im making a website for a printing company which require users to upload an image, crop it, and add to shopping cart to purchase.

the problem im having is that we dont want the 'Add To Cart' form to be submitted unless the image has been cropped,

but the cropping form is within an iframe on the order page!

so can the order form look to see if the cropping form within the iframe has been submitted?

thanks
__________________

Please login or register to view this content. Registration is FREE
grgprint is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-05-2009, 11:42 AM Re: form validation to check if iframe form submitted
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
When the cropping form is submitted, does it direct the iframe to a new location? If so, you can use the iframe's .location property to determine if the form has been submitted.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-05-2009, 12:26 PM Re: form validation to check if iframe form submitted
Novice Talker

Posts: 14
Trades: 0
hmm, it doesnt direct to a new location,
but it directs to it self, with some POST parameters,

shall i create some GET parameters then use the property you have mentioned.

eg. crop.php?cropped=yes
if thats possible ill still need to javascript code to help me, ill do some more googling in the meantime.

thanks for answering!
__________________

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

Last edited by grgprint; 03-05-2009 at 12:28 PM.. Reason: spelling mistake
grgprint is offline
Reply With Quote
View Public Profile
 
Old 03-05-2009, 03:00 PM Re: form validation to check if iframe form submitted
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
If you use GET parameters, you'll be able to read it with JavaScript. POST is only sent to the server.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-06-2009, 05:21 AM Re: form validation to check if iframe form submitted
Novice Talker

Posts: 14
Trades: 0
would you happen to know the javascript code ill need, and also the form action Onclick or Onsubmit,

ill do some googling in the meantime,

thanks so far
__________________

Please login or register to view this content. Registration is FREE
grgprint is offline
Reply With Quote
View Public Profile
 
Old 03-06-2009, 06:20 AM Re: form validation to check if iframe form submitted
Novice Talker

Posts: 14
Trades: 0
currentURL = top.iFrame.location.href;

ive found this bit of code, can somone tell me how to use it in my example

thanks
__________________

Please login or register to view this content. Registration is FREE
grgprint is offline
Reply With Quote
View Public Profile
 
Old 03-08-2009, 08:00 AM Re: form validation to check if iframe form submitted
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
I did this on a site I wrote recently, the iframe is invisible, check it out if you think it is what you need IM me at butchtroll yahoo

http://bragflags.bravehost.com

Click on a template to go to "Project" page
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!

Last edited by Sleeping Troll; 03-08-2009 at 08:01 AM..
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to form validation to check if iframe form submitted
 

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.26208 seconds with 12 queries