Jump to content

mboehler3

Members
  • Content Count

    304
  • Joined

  • Last visited

Everything posted by mboehler3

  1. No there is no JavaScript being used. Can I use it to accomplish what I'm trying to do?
  2. Well here is a snippit of my code:<option selected="selected">Select Your State</option><option value="alabama.asp">Alabama</option><option value="alaska.asp">Alaska</option><option value="arizona.asp">Arizona</option> So all of the options will take the user to a page. But the first option, when clicked, takes the user to "Select Your State," which doesn't exist. I want to make it so, when the Select Your State option is clicked from the dropdown list, nothing happens.
  3. Hi, I have a dropdown list with many options and when the user selects an option, they are taken to a specific page. However my first option in the list is something like "Select from these options." While that is an option, I don't want the user to click there. If they do, I don't want them to be taken anywhere. How can I make this happen? I've looked on pages and found the "disabled" element, but when I add disabled="disabled" to my select tag, nothing happens.Thanks in advance for your help.
  4. I am completely new to MySQL and need some help setting up my form to pass variables into a database.I have a form that has 5 fields and I want the form data to pass into a MySQL database, so I can regularly view all of the entrees that have been received. I have my form created already and need to set up the database. Can someone please walk me through this process?
  5. I just grabbed Firebug and ran it, this is the error that popped up: missing ( before conditionhttp://localhost/pminewsletter_check.jsLine 27 I accidentally put { instead of (... so I changed it and it works.Thanks a lot for your help.
  6. It just doesn't check for any of the other values, it automatically goes to the thank you page even when the other fields aren't entered. I don't know another way to check for errors.
  7. I tried this code: if {document.referaclient.printnewsletter.checked == true){ if (document.referaclient.subscribeid.value.length ==0 || document.referaclient.subscribeid.value =='Your Subscription ID'){ message = message+"Please enter your ID!\n"; }} and it doesn't seem to validate
  8. Well they have the option to check it or not, it's not mandatory. I am trying out code like this:if (document.referaclient.printnewsletter.checked == true) { message = message + "Please enter your Subscription ID.\n"; } but even when I enter a subscription ID, I still get the error...
  9. Sure thing, here's my form code: <script language="JavaScript" src="check.js" type="text/javascript"></script> <script type="text/javascript" language="JavaScript"> function HidePart(d) { document.getElementById(d).style.display = "none"; } function ShowPart(d) { document.getElementById(d).style.display = "block"; } function CheckboxChecked(b, d) { if (b) { ShowPart(d); } else { HidePart(d); } } </script> <form action="#thankyou" method="post" name="referaclient" onSubmit="return checkrefervalues();"> <input type="hidden" name="sendemail" value="rac"> <div class="tmargin10"> <div class="form"> <span id="checkboxdiv" style="display:none"> <input class="inputboxheaders" name="subscribeid" type="text" size="30" maxlength="20" value="Your Subscription ID" tabindex="1" onfocus="if(this.value == 'Your Subscription ID') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your Subscription ID';}" /> </span> <input class="inputboxheaders" name="name" type="text" size="30" maxlength="50" value="Your Name" tabindex="2" onfocus="if(this.value == 'Your Name') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your Name';}" /> <input class="inputboxheaders" name="companyname" type="text" size="30" maxlength="50" value="Your Company" tabindex="3" onfocus="if(this.value == 'Your Company') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your Company';}" /> <input class="inputboxheaders" type="text" size="30" maxlength="50" name="email" value="Your E-mail" tabindex="4" onfocus="if(this.value == 'Your E-mail') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your E-mail';}" /> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><input type="checkbox" name="enewsletter" value="OptIneNewsletter" tabindex="5" onClick="java script:checkBoxValidate(0)" />Opt in to eNewsletter</td> </tr> <tr> <td><input type="checkbox" name="enewsletter" value="OptOuteNewsletter" tabindex="6" onClick="java script:checkBoxValidate(1)" />Opt out of eNewsletter</span></td> </tr> </table> <strong>Print Newsletter</strong> <input type="checkbox" name="printnewsletter" value="OptOutPrintNewsletter" tabindex="7" onclick="CheckboxChecked(this.checked,'checkboxdiv')" />Opt out of print newsletter <input type="image" src="/images/continue-btn.gif" tabindex="8" alt="Get Quote" id="submit2" name="submit2" /> </div> </div> </form> And the JS that checks it: function checkrefervalues(){ message = ""; if (document.referaclient.subscribeid.value.length == 0) { message = message + "Please enter your Subscription ID.\n"; } if (document.referaclient.subscribeid.value == 'Your Subscription ID') { message = message + "Please enter your Subscription ID.\n"; } if (document.referaclient.companyname.value.length ==0){ message = message+"Please enter your Company Name.\n"; } if(document.referaclient.companyname.value =='Your Company'){ message = message+"Please enter your Company Name.\n"; } if(document.referaclient.name.value.length ==0){ message = message+"Please enter your Name.\n"; } if(document.referaclient.name.value =='Your Name'){ message = message+"Please enter your Name.\n"; } if (document.referaclient.email.value =='Your E-mail'){ message = message+"Please enter your Email Address.\n"; } else { if (document.referaclient.email.value.length ==0){ message = message+"Please enter your Email Address.\n"; } else { checkemail(document.referaclient.email.value) } } From my original post, "field X" is the "Your Subscription ID" field.
  10. I have a form set up where, if a checkbox is marked yes, another field ("field X") will display. Now I want "field X" to be mandatory for the user. I've added code in my javascript file that checks whether or not information has been entered for "field X", but it runs that check whether or not "field X" is displayed. So a user may not have checked the box, and they are still required to fill out information for "field X" even though it's hidden. Is there a way check on "field X" only when the checkbox has been marked?Hopefully this makes sense, if not please let me know and I will clarify.Thanks for your help.
  11. Fixed! I needed to add wmode="transparent" to the embed code as well. Thanks for your help!
  12. Ya I did try modifying my code, I changed it to this: <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='560' height='330' id='player1' name='player1'> <param name='movie' value='http://sp.httpsvc.vitalstreamcdn.com/surepayroll_vitalstream_com/mediaplayer.swf'> <param name='wmode' value='transparent' /> <param name='allowfullscreen' value='true'> <param name='allowscriptaccess' value='always'> <param name='flashvars' value='file=playlist.xml'> <embed id='player1' name='player1' src='http://sp.httpsvc.vitalstreamcdn.com/surepayroll_vitalstream_com/mediaplayer.swf' width='560' height='330' allowscriptaccess='always' allowfullscreen='true' flashvars="height=330&width=560&file=rtmp://sp.flashsvc.vitalstreamcdn.com/surepayroll_vitalstream_com/_definst_/iphone&id=iphone_560x330ā„‘=/images/video/demo_videoplaceholder.gif&searchbar=false&thumbsinplaylist=false" /></object> And it didn't change anything.
  13. I am viewing it in IE, but I also checked in FF v3.6.6 and the dropdown menu is still hidden by the video.Thanks for the link, but I'm not sure how to apply it to my code since it's different from the code in the example. Here's what my code looks like: <embed src="http://sp.httpsvc.vitalstreamcdn.com/sp_vitalstream_com/mediaplayer.swf" width="560" height="330" allowscriptaccess="always" allowfullscreen="true" flashvars="height=330&width=560&file=rtmp://sp.flashsvc.vitalstreamcdn.com/surepayroll_vitalstream_com/_definst_/iphone&id=iphone_560x330ā„‘=/images/video/demo_videoplaceholder.gif&searchbar=false&thumbsinplaylist=false" /> I've tried adding name="wmode" value="transparent" inside of the embed tag, and that didn't solve the problem. I'm still looking elsewhere for a solution, but not having any luck...
  14. On my page, I have an embedded video on the page. The problem is that my top navigation dropdown menu's go behind the video, for example when you rollover "Payroll" or "Products & Services". I want the dropdowns to appear over the video.This seems like a z-index, position issue, but what I've tried so far doesn't work. On my dev environment, I've added a "position:absolute;z-index:-20" to the embedded video, while the top navigation has a <div> tag around it that is set at "position:absolute; z-index:100" and this doesn't fix the issue. I've also tried added a "position:absolute;z-index:200" to the <ul> tag that displays the dropdown, and this doesn't work either.Is there a fix for this? Thanks in advance.
  15. Nevermind, I needed to switch the month and date. Thanks for your help!
  16. Thanks for the link.When I try using this code: <% IF DateDiff ("d", Date(), #01/07/2010#) > 0 THEN %> it doesn't work properly (I substituted 01/07/2010 with 06/21/2010). is there something i'm missing?
  17. Hi, I have a non-dynamic site that I can only update once a month. Some pages have date-sensitive copy, such as "Sign up for our July 9 newsletter." As a result, I have to use logic so copy like that will not show up on July 10. I've been using logic such as this: <% IF Date() <= "7/09/2010" THEN %>Sign up for our July 9 newsletter <% ELSE %> <%END IF %> And it works fine. The problem is when I get to double digit months like October, where I use logic like this: <% IF Date() <= "10/09/2010" THEN %>Sign up for our October 9 newsletter <% ELSE %> <%END IF %> For some reason, no code appears when I use this logic. Is there a problem with double digit months that causes this logic to break? Any help is appreciated, thanks.
  18. Thank you, I understand how to use sprites for buttons and such, but I'm having trouble getting this background image to repeat correctly. wirehopper's suggestion of using overflow:hidden just sort of collapsed everything. I don't understand what I'm doing wrong. The background image on the sprite is 300pixels wide by just 1 pixel tall, and it's 140 pixels down from the top of the sprite.
  19. I have a 300px wide by 1px tall image I've put onto my sprite image and would like to have it repeat vertically. In my CSS I have this code: .sidenavback {background-image:url('/images/global/sidenav.png'); background-repeat: repeat-x; background-position:0 -140px; width: 300px; height: 1px;} But it's not working... every site I've been to says that it is possible to do repeating backgrounds with sprites, but it's tricky. I can't find a site that'll walk me through it. Has anyone had experience with this before?
  20. Right, I wasn't paying attention when I copied that code into my post. I have my code set up like: <input type="image" src="/images/payroll-continue.gif" tabindex="10" alt="Get Instant Quote" id="Image1" name="submit2" onClick="GoToConfirmPage();" /> And, actually, the string is being passed in the URL. But my problem is that my other javascript, /quote/form_check.js, which checks for the proper form information, is not working properly. When you hit submit with no information in the form, up pops the alertbox, however immediately after you hit "OK" the browser sends you onto the next screen. Ideally, I'd like the alertbox to pop up when the user hasn't submitted proper information, but remain on the first page until the user submits the right info. Is there something you can see in the code that's causing this?
  21. I've found an example of a script to use on this forum here: Javascript form passing data between pages and am having some trouble getting it to convert onto my page.I've copied the code exactly as is it but renamed two fields I want to pass. Here is what my code looks like: <script type="text/javascript"><!--function GoToConfirmPage(){var PayrollFrequency = document.getElementById("PayrollFrequency").value;var NumberOfEmployees = document.getElementById("NumberOfEmployees").value;if (PayrollFrequency) {window.location.href = "http://www.mysite.com/quote_results.asp?PayrollFrequency=" + PayrollFrequency +"&NumberOfEmployees=" + NumberOfEmployees;}}//--></script><img src="/images/fpq_form-short-header.gif" /><br /><div class="fpq_form-short"> <script language="JavaScript" src="/quote/form_check.js" type="text/javascript"></script> <form class="fpq" action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST" id="quotesform1" name="quotesform1" onSubmit="return checkquotevalues();"> <input type=hidden name="oid" value="00D600000006sZz"> <input type=hidden name="retURL" value="http://www.mysite.com/quote_results.asp"> <input type=hidden name="lead_source" value="Internet"> <input type=hidden name="recordType" value="012600000009HL1"> <input type=hidden name="00N60000001R01v" value="Marketing Inbound"> <input type=hidden name="00N60000001S2tS" value="<% =fm_refcode %>"> <!-- NOTE: These fields are optional debugging elements. Please uncomment --> <!-- these lines if you wish to test in debug mode. --> <!-- <input type="hidden" name="debug" value=1> --> <!-- <input type="hidden" name="debugEmail" --> <!-- value="mboehler3@mysite.com"> --> <input name="ReferralCode" type="hidden"> <table cellpadding="0" cellspacing="0" border="0" width="120" class="lmargin35"> <tr> <td align="left"> <div id="inputWrapper"><input class="bmargin5" type="text" size="15" maxlength="50" id="first_name" name="first_name" value="First Name" tabindex="1" onfocus="if(this.value == 'First Name') {this.value = '';}" onblur="if (this.value == '') {this.value = 'First Name';}" /></div> </td> <td align="right"> <div id="inputWrapper"><input class="bmargin5" type="text" size="15" maxlength="50" id="last_name" name="last_name" value="Last Name" tabindex="2" onfocus="if(this.value == 'Last Name') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Last Name';}" /></div> </td> </tr> <tr> <td align="left"> <div id="inputWrapper"><input class="bmargin5" type="text" size="15" maxlength="50" id="email" name="email" value="Email" tabindex="3" onfocus="if(this.value == 'Email') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Email';}" /></div> </td> <td align="right"> <div id="inputWrapper"><input class="bmargin5" type="text" size="15" maxlength="50" id="NumberOfEmployees" name="00N60000001Sbzr" value="# of Employees" tabindex="4" onfocus="if(this.value == '# of Employees') {this.value = '';}" onblur="if (this.value == '') {this.value = '# of Employees';}" /></div> </td> </tr> <tr> <tr> <td colspan="2" valign="middle" align="right"> Phone # <span id="inputWrap" class="lpadding40"> <input type="text" maxlength="10" id="phone" name="phone" value="" tabindex="5" /> </span> </td> </tr> <tr> <td colspan="2"> What's Your Frequency? <div id="inputWrap"> <select name="00N60000001R02F" id="PayrollFrequency" tabindex="8" class="width240" /> <option value='0'>Select one</option> <option value="Weekly">Weekly</option> <option value="Bi-Weekly">Bi-Weekly</option> <option value="Semi-Monthly">Semi-Monthly</option> <option value="Monthly">Monthly</option> </select></div> </p> </td> </tr> <tr> <td colspan="2"> What's Your Current Method? <div id="inputWrap" class="bpadding5"> <select name="00N60000001R02Z" id="PayrollMethod" tabindex="9" class="width240" /> <option value='0'>Select one</option> <option value='New Business'>New Business</option> <option value='In House'>In House</option> <option value='Not Currently Processing'>Not Currently Processing</option> <option value='Accountant'>Accountant/Bookkeeper</option> <option value='Payroll Service'>Payroll Service</option> <option value='PEO/Leasing Company'>PEO/Leasing Company</option> <option value='Other'>Other</option> </select></div> </p> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table> <p><input type="image" value="Submit" onClick="GoToConfirmPage();" /></p> </form><br /></div><img src="/images/fpq_form-short-footer.gif" class="tmarginneg20" /> When I use this code, it correctly passes the two variables in the URL string.However I want to replace the submit code with my own image, so I change <input type="image" value="Submit" onClick="GoToConfirmPage();" /> to <input type="image" src="/images/continue.gif" tabindex="10" alt="Get Quote" id="Image1" name="submit2" /> And once I do this, the URL no longer passes the two variables.I've tried playing around with the code but can't find any solution. Is there something you can spot that I'm doing incorrect?
  22. Yes I am not using server-side, the form action sends the information to a third-party site. I guess I could do all of this on the same page, but in that case the information would still need to pass to output a price quote.However I want to keep the page how it is set up, with the form one one page and the price quote on the second page.
  23. I have a form that generates a price quote when users enter in some personal information. On page 1 is the form and on page 2 is the generated price quote. The price quote equation uses two pieces of information from the form.I am trying pass along the two pieces of information from page 1 to page 2 by appending the return URL in my form code. I believe I need to add an onClick to the two form inputs that need to pass, but Iā€™m not sure how to do this. Can someone please offer some assistance? Any help is appreciated.
  24. I am trying to make the top and bottom of my dropdown nav clickable. My page is here: Visit My WebsiteIf you roll over "Payroll," you get a drop down menu with six options. The first option is "Online Payroll Advantage." The problem is that the link is not clickable for a few pixels above and below the text yet still within the white menu background. So while the rollover works, it doesn't render the whole area as a link. Is there a way in the code to make the entire background a link?Thanks in advance for your help.
×
×
  • Create New...