User Profile

Collapse

Profile Sidebar

Collapse
rbuczynski
rbuczynski
Last Activity: Feb 27 '11, 02:24 AM
Joined: Mar 10 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rbuczynski
    replied to Iframe IE onload problem
    I tried every solution posted above for my problem, and none of them worked. In my case, I have a form containing a file for upload whose target is pointed towards a static IFRAME element.

    The FORM:
    Code:
    <form action="upload.php" method="post" enctype="multipart/form-data" target="myIframe">
    The IFRAME:
    Code:
    <iframe name="myIframe" id="myIframe" src=
    ...
    See more | Go to post
    Last edited by rbuczynski; Feb 7 '11, 05:11 AM. Reason: typo!

    Leave a comment:


  • You're most welcome! I sure hope you can fix that problem with having no ability to think ;-)

    I'm glad it worked out.

    To answer your final question about removing items from the master product list, I programmed a simple alert dialog to take care of that. When you try to add another line-item of the same product, a dialog appears to prevent you from doing so:
    Code:
    if(checkProducts(thisProductName)) {
      alert('You
    ...
    See more | Go to post

    Leave a comment:


  • Special items to note:

    checkProducts function
    This function was added as an alternative to the suggestions of others. Rather than keeping track of added products in an array--which could create obstacles when working with the delete function--I've created this function to scan the table for product names. In this way there is only one source of data to check.

    sum function
    This function was somewhat confusing...
    See more | Go to post

    Leave a comment:


  • I'll be glad to help.

    I looked through your code and found another design issue. Your delete function removes only the most recently inserted line-item. A good design should enable the user to delete any line-item in the table simply by selecting it and then clicking the delete button. We'll need to code that feature.

    So here's what we need to do:

    1. Use a master product list
    The user chooses a product...
    See more | Go to post

    Leave a comment:


  • Using an array to keep track of the selected items is a good idea.

    However, I see a problem ahead.

    If a user adds the first line-item, and selects "Motherboar d ASUS," then under your revised code the second line-item added would not have Motherboard ASUS as an option. So, the user selects GraphigCard ATI as their second line-item. What's the problem?

    Problem 1: The first line-item still contains...
    See more | Go to post

    Leave a comment:


  • As you've noticed, this is an issue specific to Netscape/Gecko-based browsers. When you clear the cache from the Tools menu then the issue is resolved. But by default this occurs as a result of the built-in feature called Form and Password Auto-completion.

    The suggested solutions given are good, although it seems like a strange function to have to implement. Alternatively, a more precise method is to use the autocomplete attribute in...
    See more | Go to post

    Leave a comment:


  • Have you checked to ensure that an ID attribute is assigned to the text field element? Sometimes coders confuse NAME and ID attributes or forget one or the other. A simple but common mistake.

    Another way to clear text field data with the click of a button is to write a function that loops through all fields in a given form, tests them for field type and clears their values accordingly.

    Here's a sample:

    ...
    See more | Go to post

    Leave a comment:


  • rbuczynski
    replied to calling a php file onchange event
    To elaborate on zorgi's answer, Ajax is probably what you're looking for.

    If you're unfamiliar, please read about it here:
    http://www.w3schools.com/Ajax/ajax_intro.asp

    Ajax is actually built on JavaScript and it gives one the ability to retrieve data through a GET or POST request without refreshing a page.

    Your current configuration reloads the page while passing some GET data. This is repeated...
    See more | Go to post

    Leave a comment:


  • *note to admin*
    I've posted this thread in the JavaScript forum because this is where the original questions appeared.

    Please move thread to HTML/CSS if necessary!
    See more | Go to post

    Leave a comment:


  • Answer to disabling text selection using CSS

    I've read two threads that have been closed in which a user posed the question,

    "Can I disable text selection using CSS?"

    The responses were either hopeless or critical of the inquirer. I thought it'd be a nice gesture to answer the question with what was expected as well as some pointers regarding the topic.

    Answer: YES.
    An article posted some time ago describes the process of overriding...
    See more | Go to post
No activity results to display
Show More
Working...