www.webdeveloper.com

Search:

Type: Posts; User: bradymc

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    22
    Views
    51,454

    Your welcome. Glad we got it fixed. :)

    Your welcome. Glad we got it fixed. :)
  2. Replies
    22
    Views
    51,454

    View Post

    I think I know what the problem is...
    The "" that is shown in the code is a special character and the browser can't interpret it unless you use an HTML entity. That's why you get the strange...
  3. Replies
    22
    Views
    51,454

    That line of code is checking for 2 conditions....

    That line of code is checking for 2 conditions. That's what the "&&" characters are testing... to see that both conditions qualify to execute the code that follows.

    Condition 1
    if (months%12 > 5)...
  4. Replies
    22
    Views
    51,454

    I'm not sure about the weird symbol. But given...

    I'm not sure about the weird symbol. But given that the code is 6-7 years old (even after I found an update to the code) there may be some deprecated JS getting used.

    As to the issue of showing...
  5. Replies
    0
    Views
    1,442

    Help with htaccess / mod_rewrite

    My client has an iframe-type page that utilizes some PHP code to grab content from a 3rd party to display on the page. This "page" has a few navigation buttons that serve up new information.

    We're...
  6. Makes complete logical sense. My eyes were too...

    Makes complete logical sense. My eyes were too zoned in on the code to think about the big picture. Thanks again.
  7. Kor, You were right. I just forgot to put the...

    Kor,

    You were right. I just forgot to put the word "function" before the function name.

    Thanks to Kor and Fang.

    For my future Javascript knowledge, does a for loop have to be called onload...
  8. Tried that and it didn't work...

    Tried that and it didn't work...


    <script type="text/javascript">
    <!--
    onload=agent() {
    locate = window.location;
    document.agent_selected.agent_name.value = locate;
    text =...
  9. Variable from URL will determine selection option in drop down menu

    What I'm trying to do:
    I'm working on a site that employs several different agents. On each agent's page, there will be a link to get a quote from them. I'm trying to pass the agents name though to...
  10. Replies
    5
    Views
    609

    Arty, That worked. I made the assumption that if...

    Arty,
    That worked. I made the assumption that if the value wasn't specified it defaulted to whatever the option is. I thought that had worked for me in the past.

    Scragar,
    I replaced 'n.value'...
  11. Replies
    5
    Views
    609

    IE won't display this script

    I created a form with a dropdown list as seen below:

    <form action="#" name="family" id="family">
    Price range for a family of
    <select name="number" id="number" style="width:40px;...
  12. Replies
    8
    Views
    1,129

    Well, we're getting there. Here's my current...

    Well, we're getting there. Here's my current code:

    <script type="text/javascript"><!--
    function divWrite() {
    grabnum = document.getElementById('num').value;
    numTravel = new Array();
    for...
  13. Replies
    8
    Views
    1,129

    You mean like this?

    You mean like this?

    <script type="text/javascript"><!--
    function divWrite(num) {
    var num = document.travellers.num.options;
    numTravel = new Array();
    for (i=1; i<=num; i++) {
    numTravel[i]...
  14. Replies
    8
    Views
    1,129

    Ugh. I've never messed with arrays before. But I...

    Ugh. I've never messed with arrays before. But I just read up on them a bit and made another attempt. Obviously this is not working. Feel free to laugh out loud at this code:


    <script...
  15. Replies
    8
    Views
    1,129

    View Post

    <script type="text/javascript"><!--
    var lastDiv = "";
    function showDiv(divName) {
    // hide last div
    if (lastDiv) {
    document.getElementById(lastDiv).className = "hiddenDiv";
    }
    //if value...
  16. Replies
    8
    Views
    1,129

    show hide divs based on user input

    I'm using a dropdown menu to allow a number to be selected (1-20). I have
    hidden divs setup for each number. If 1 is selected, div1 should display. If 2 is selected, div1 and div2 should display....
  17. Replies
    1
    Views
    541

    conditional output in email form

    I have 7 checkboxes in a form, but for simplicity, let's say I have have 3 (amongst other items) and would like to email the individual checkbox results only if it is checked. For example:

    Please...
  18. Replies
    9
    Views
    1,588

    Yes, sorry about the confusion. I guess if I had...

    Yes, sorry about the confusion. I guess if I had used proper terminology upfront we may have gotten to a conclusion sooner.

    The simple example we've been dealing with and your code above seems to...
  19. Replies
    9
    Views
    1,588

    By default, page 1 that has all of the JS loads a...

    By default, page 1 that has all of the JS loads a list of exercises without any description showing. Once an exercise is clicked on, it shows the exercise underneath the list and jumps down to the...
  20. Replies
    9
    Views
    1,588

    The function switchid() is located in page 1 and...

    The function switchid() is located in page 1 and it does use id instead of name. I added your code to page 1 but didn't get it to work.
    Here is the code for switchid():


    <script...
  21. Replies
    9
    Views
    1,588

    Do you mean that it should be like this instead?...

    Do you mean that it should be like this instead?

    <a href="#whatever" onclick="switchid('whatever');">Link to whatever</a>
  22. Replies
    9
    Views
    1,588

    Open window then execute Javascript

    I have a page (we'll call it page1.htm) that uses named anchors along with JS and CSS that, when clicking a link, it will unhide/show the content AND jump to the named anchor so that the content is...
  23. Ah yes. CLEAR! I should've known that, but thanks...

    Ah yes. CLEAR! I should've known that, but thanks for taking my mind down memory lane.
  24. I tried floating it left and for some reason it...

    I tried floating it left and for some reason it didn't stop floating after the </li></ul>. It did accomplish what I wanted it to do... it just wouldn't stop accomplishing.
  25. Looks good in IE7. You need to revalidate all...

    Looks good in IE7.

    You need to revalidate all of the pages though. Everyone of them contains either warnings or errors.
Results 1 to 25 of 57
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles