Web Design Forum: samd102 - Viewing Profile - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting

samd102's Profile User Rating: -----

Reputation: 0 Neutral
Group:
Members
Active Posts:
146 (0.09 per day)
Joined:
20-November 07
Profile Views:
3,805
Last Active:
User is offline Nov 20 2011 05:53 PM
Currently:
Offline

My Information

Member Title:
Dedicated Member
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Male Male
Location:
Norfolk

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.samdelara.co.uk/
Skype:
Skype  sam.de.lara

Users Experience

Experience:
Intermediate
Area of Expertise:
Designer/Coder

Latest Visitors

Topics I've Started

  1. Javascript slider issue

    20 November 2011 - 03:55 PM

    Hi - I am having real trouble customising a Javascript slider I am integrating into a new design. I have managed to customise everything so far except that the image (the first image that slides will not sit properly within the list item it is contained in. I have tried setting the padding and margin to 0 for both the ul and the li in the specific styles but no joy. I am now completely stumped. There seems to be some sort of padding or space within the list item (according to firebug) that stops the image from sitting 100% within the li (that is set to the correct height of 980px x 233px).

    The link is here: http://samdelara.co....sign/index.html

    Can anyone offer any help or pointers? Would be a massive help!!

    Sam
  2. Javascript help

    16 June 2011 - 01:30 PM

    Hi, I am a total noob when it comes to Javascript (and server-side languages). I am trying to add some fields to a form that is then validated by Javascript. The form to email script is done in php. The problem is whenever I try to add code to the below script, such as: && isPostcode() the form fails and just calls the sendquote.php script.

    Can anyone offer any reasons as to why this is? I am unsure is it is a problem with the Javascript or the php script...

    Any help would be greatly appreciated. For reference the link is here: http://banquetinghir...tation-form.htm (I didn't design the site!)

    Sam

    function checkAvailibility()
    {
    // re-calculate...
    calculate ();
    if ( isName() && isAddress1() && isTown() && isCounty() && isTel() && isYourEmail() && isFuncDate() && isFuncAdd1() && isFuncTown() && somethingToQuoteFor() && isYourEmailValid() ) {
    document.ordersummary.emailQuote.value = "No";
    setValue();
    return true;
    }
    else
    {
    return false;
    }
    }


    function isName() { if (document.ordersummary.Name.value=="") { alert ("\n Please Enter Your Name")
    document.ordersummary.Name.focus(); return false; } return true; }
    function isAddress1() { if (document.ordersummary.Address1.value=="") { alert ("\n Please Enter Your Address")
    document.ordersummary.Address1.focus(); return false; } return true; }
    function isTown() { if (document.ordersummary.Town.value=="") { alert ("\n Please Enter Your Town")
    document.ordersummary.Town.focus(); return false; } return true; }
    function isCounty() { if (document.ordersummary.County.value=="") { alert ("\n Please Enter Your County")
    document.ordersummary.County.focus(); return false; } return true; }
    //function isPostcode() { if (document.ordersummary.Postcode.value=="") { alert ("\n Please Enter Your Postcode")
    //document.ordersummary.Postcode.focus(); return false; } return true; }
    function isTel() { if (document.ordersummary.Tel.value=="") { alert ("\n Please Enter Your Telephone Number")
    document.ordersummary.Tel.focus(); return false; } return true; }
    function isYourEmail() { if (document.ordersummary.YourEmail.value=="") { alert ("\n Please Enter Your Email")
    document.ordersummary.YourEmail.focus(); return false; } return true; }
    function isFuncDate() { if (document.ordersummary.FuncDate.value=="") { alert ("\n Please Enter Your Function Date")
    document.ordersummary.FuncDate.focus(); return false; } return true; }
    function isFuncAdd1() { if (document.ordersummary.FuncAdd1.value=="") { alert ("\n Please Enter Your Function Address")
    document.ordersummary.FuncAdd1.focus(); return false; } return true; }
    function isFuncTown() { if (document.ordersummary.FuncTown.value=="") { alert ("\n Please Enter Your Function Town")
    document.ordersummary.FuncTown.focus(); return false; } return true; }
    //function isFuncPostcode() { if (document.ordersummary.FuncPostcode.value=="") { alert ("\n Please Enter Your Function Postcode")
    //document.ordersummary.FuncPostcode.focus(); return false; } return true; }
    function isemailonly() { if (document.ordersummary.emailonly.value=="") { alert ("\n Please Enter Your Email Address")
    document.ordersummary.emailonly.focus(); return false; } return true; }

Friends

Comments

Page 1 of 1
  1. Photo

    Ben 

    17 Mar 2008 - 23:03
    Hey Sam, loving your simpsons Avatar! :)
Page 1 of 1