Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Javascript enabled or disable. How OsCommerce handle this ?


nico33304

Recommended Posts

Hello,

 

Firstly, I am new here and I have just discovered osCommerce :)

 

I saw on the online demo that for the control of the forms I have some messages with javascript.

Well, but if I disable javascript the controls wont be done. How OSCommerce can prevent this ?

 

Thank you for your time

 

Nicolas

Link to comment
Share on other sites

Hello,

 

Firstly, I am new here and I have just discovered osCommerce :)

 

I saw on the online demo that for the control of the forms I have some messages with javascript.

Well, but if I disable javascript the controls wont be done. How OSCommerce can prevent this ?

 

Thank you for your time

 

Nicolas

 

well, turn js off and test it.

Treasurer MFC

Link to comment
Share on other sites

Hello,

 

Firstly, I am new here and I have just discovered osCommerce :)

 

I saw on the online demo that for the control of the forms I have some messages with javascript.

Well, but if I disable javascript the controls wont be done. How OSCommerce can prevent this ?

 

Thank you for your time

 

Nicolas

 

You can't prevent people from turning off javascript - it's client-side, so anybody has the option to disable it. so - if javascript is disabled, no checks are carried out.

 

For a server-side solution, you'd need to rewrite the checks with PHP (which I personally prefer for my own non-osCom sites for form checks as it can't be turned off).

 

Agree that javascript for checks is debatable. If you're happy to write your own PHP script though, you can modify the open source code to fit your own requirements.

 

all the best with your project! Edith

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Link to comment
Share on other sites

You can't prevent people from turning off javascript - it's client-side, so anybody has the option to disable it. so - if javascript is disabled, no checks are carried out.

 

For a server-side solution, you'd need to rewrite the checks with PHP (which I personally prefer for my own non-osCom sites for form checks as it can't be turned off).

 

Agree that javascript for checks is debatable. If you're happy to write your own PHP script though, you can modify the open source code to fit your own requirements.

 

all the best with your project! Edith

 

well, turn js off and test it.

Treasurer MFC

Link to comment
Share on other sites

You can't prevent people from turning off javascript - it's client-side, so anybody has the option to disable it. so - if javascript is disabled, no checks are carried out.

Of course the checks are done. Try creating an account without filling in any information and pressing ocntinue with and without Javascript enabled. The catalog side of oscommerce is written with this in mind.

Link to comment
Share on other sites

Of course the checks are done. Try creating an account without filling in any information and pressing ocntinue with and without Javascript enabled. The catalog side of oscommerce is written with this in mind.

 

silly me - you're right, there are two types of check:

 

a) javascript - brings up a little pop-up to say what you've forgotten to do

 

and if javascript is disabled b) PHP check - brings you back to the page with error messages displayed at the top

 

didn't realise the PHP checks were there on top of the javascript - well, I've learnt something & apologies for posting b****s before!

 

Edith

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...