Jump to content

yanith

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

yanith's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. BUMP Does anyone know an easier trick to use relative links and force the urls to be secure? this form is driving me crazy, every time i update the files and add the full path, the form breaks and doesn't display at all
  2. yeah and i checked all the links and change them to absolute paths, but it didn't work as soon as i changed the paths, the form stopped working.
  3. Hello guys another difficult form case (for me) I have this super long form that pulls different files depending on what you select. The form works perfectly fine right now. the problem is that now the client need to run the form with a SSL certificate due to gov regulations. we are hosting all the files in the same folder for the secure and unsecure site and the certificate works fine. however when I run the form with the https:// address google chrome tells me that parts of the form are unsecured. I was reading something about the images have to be on a relative path using img scr="../images/path/file.ext" instead of just img scr="images/path/file.ext". I made that change and it didnt solve the problem. I changed all the links to " ../ " and didn't solve the problem. I have added rules to the .htaccess file RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^contact https://www.example.net/new-service.php [R=301,L] RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} somefolder RewriteRule ^(.*)$ https://www.example.net/inc/$1 [R,L] And even changed all the links in the form to absolute paths and nothing works. does anyone know how to force the form to work on SSL or troubleshoot SSL certificate errors to point me in the right direction thanks guys i appreciate your help and advice
  4. Thanks requinix! while id didn't exactly work you point me in the right direction, the link really help me understand more about it. I really appreciate it. I end up creating two extra variables to multiple the unit cost times times the amount of units requested. and passing those to a regular variable. I end up using this: var stb_db_total = $('#stb_db_total').val(); if (isNaN(stb_db_total)) {stb_db_total=0;} else {stb_db_total=parseFloat(stb_db_total);} Thanks a lot this puppy is solved
  5. hello guys, this is my first post and I had been looking for some help with a php/javascript form that i was passed down. the form is a 93 files mess, however i got to understand the functions and how variables pass from file to file. so i was able to make most of the changes except one In the calculator.js I have a function that creates the subtotals and displays them on the screen. I can't show the entire function cuz is over 600 lines but i'll explain my situation below I have a drop-down selection box that need to be add-up in the example code below. for radio buttons classes are used to group the price, you can see it in $('.hsis:radio:checked') for check boxes ids are used to display the price $('#pwrcm:checkbox:checked') however in a code with similar syntax i need to show the price of each drop down selections. how could it be done? I tried $('#hdtv:select:selected') and updated the variable names but no luck function addup_subtotals() { var hsi_subtotal = $('.hsis:radio:checked').val(); if(isNaN(hsi_subtotal)) {hsi_subtotal=0;} else {hsi_subtotal=parseFloat(hsi_subtotal);} var pwrcm_subtotal = $('#pwrcm:checkbox:checked').val(); if(isNaN(pwrcm_subtotal)) {pwrcm_subtotal=0;} else {pwrcm_subtotal=parseFloat(pwrcm_subtotal);} has anyone seen something like this before
×
×
  • 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.