Local Services Hornsby, NSW Tattoo

News

  • U.S. researchers identify new oncogene for brain cancer

    People's Daily Online Jul 3 2007 3:11AM GMT

  • Dynamically add rows to table, replied by 80rx7haze @ Fri, 05 Jan 2007 20:44:15 -0000

    After a few more hours of trying I figured it out. I’m posting my solution, maybe it will help someone else down the road who is just starting out. I know when I was learning Java I used this same scenario for learning and I came across countless posts that never had a solution. If anyone has some input on making this code better I would certainly appreciate the advice. Thanks.Input form:<h1>ShoppingCartExample</h1><form action='/store/add_to_cart'method='get'accept-charset='utf-8'><%= text_field_tag(:field1, @params[:field1], :size => 14) %><%= text_field_tag(:field2, @params[:field2], :size => 5) %><%= text_field_tag(:field3, @params[:field3], :size => 8) %><%= text_field_tag(:field4, @params[:field4], :size => 8) %><p><input type='submit'value='Continue&rarr;'></p></form>html|txtController:classStoreController<ApplicationControllerdefindex@products=Product.find_products_for_saleenddefadd_to_cart@cart= find_cartproduct = [@params[:field1],@params[:field2],@params[:field3],@params[:field4]]@cart.add_product(product)enddefempty_cartsession[:cart] =nilflash[:notice] ="Your cart is currently empty"redirect_to:action=>:indexendprivatedeffind_cartsession[:cart] ||=Cart.newendendhtml|txtShopping cart display:<h1>ShoppingCartExample</h1><%= button_to"Empty cart" , :action => :empty_cart %><a href='/store'>Back</a><br /><ul><% for item in @cart.items %><li><%= h(item[0]) %><%= h(item[1]) %><%= h(item[2]) %><%= h(item[3]) %></li><% end %></ul>html|txt

  • Finder Window Manager 1.9.7

    Create Finder window sets and more.

  • Swiss Currency Rises Against Pound Monday Morning

    RTTNews.com Nov 5 2007 2:46PM GMT

  • ALFRED MEAKIN serving plate featuring

    blackberry design very pretty in good condition,£...

Browse Alphabetically