User Profile

Collapse

Profile Sidebar

Collapse
pimpmaster
pimpmaster
Last Activity: Jul 1 '08, 09:25 AM
Joined: Jun 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pimpmaster
    replied to Field Calculations with Scope
    cheers gits!

    It does clone as expected, but there is one issue. If I fill out the fields and then clone, the field values are also filled in for the clone. I need for the new copy to be a clean slate.

    I tried cloneNode(false ) but that does nothing

    Another problem is that my calculations only work on the original copy of the form.

    Odd
    See more | Go to post

    Leave a comment:


  • pimpmaster
    replied to Field Calculations with Scope
    Hi Gits :)

    Thanks for your reply. I have posted my code here:

    1. No matter which way I try, the calculations only work within the scope of a form.

    2. I'd like to use innerHTML instead of inputs for the "each" fields, but cant get that working

    3. Totally lost on how to clone the entire table

    Any ideas?
    See more | Go to post

    Leave a comment:


  • pimpmaster
    started a topic Field Calculations with Scope

    Field Calculations with Scope

    Howdy, Scripters :)

    Im trying to update fields and dom elements based on form inputs:

    [HTML]<form action="whateve r">
    <fieldset class="calc">
    <input type="text" class="charge" />
    <input type="text" class="cost" />
    <input type="text" class="profit" />
    </fieldset>
    ...
    See more | Go to post

  • pimpmaster
    started a topic JS Slide Reveal with Class Change on Parent

    JS Slide Reveal with Class Change on Parent

    I have a bunch of headers listed on my page. When you click on them, I would like hidden content to slide down from them. I have seen this done in various JS frameworks, but one thing none of them seem to do successfully is change the class of the parent header.

    In my case I have little plus signs next to headers thanks to CSS styling. I would like them to change to minus signs when the content is revealed.

    As I said...
    See more | Go to post

  • pimpmaster
    replied to Dynamic Select Onchange
    It works splendidly!

    Thanks for correcting my amateur JS ;-)
    See more | Go to post

    Leave a comment:


  • pimpmaster
    replied to Dynamic Select Onchange
    Thanks for the pointers guys!

    I almost got this working... have a look

    Code:
    var list = {'Annual Report': 1, 'Book': 1, 'Catalog': 1, 'Look Book': 1, 'Magazine': 1};
    				if (this.value in list) {
    				    document.getElementById('binding').style.display = 'block';
    				}
    				else {
    			    document.getElementById('binding').style.display = 'none';}
    			
    			    if (this.value = 'Brochure')
    ...
    See more | Go to post

    Leave a comment:


  • pimpmaster
    started a topic Dynamic Select Onchange

    Dynamic Select Onchange

    I am trying to show/hide elements based on the currently selected option. I have a rough idea of how to do this, but am having trouble with my javascript syntax.

    Here is the basic logic behind what I am trying to accomplish:

    1. All divs specified here will start off hidden
    2. If currently selected option = Books || Catalogs || Magazines || Newspapers, then show div#binding
    3. If currently selected option...
    See more | Go to post
No activity results to display
Show More
Working...