search for: additem

Displaying 14 results from an estimated 14 matches for "additem".

Did you mean: add_item
2006 Apr 29
4
Event.observe mystery
Hi, I have a class ''Menu'' with a method ''addItem''. The method (simplified) looks like this: addItem: function(itemId, text) { this.container.innerHTML += ''<div id="''+itemId+''">''+text+''</div>''; Event.observe(itemId, ''mouseover'', this.o...
2006 Mar 29
2
Multiple calls from drop_receiving_element :complete
Hi, Firstly I am very new to Ruby on Rails but think its fantastic! :o) I am trying to figure out how I can call multiple functions from the drop_receiving_element :complete. I have the following code in my index.rhtml and it works fine. It calls the javascript function "additem" that is on the page. <%= drop_receiving_element "dcwindow", :update => "items", :url => { :action => "add" }, :accept => "products", :hoverclass => "cart-active", :loading => "Element.show(...
2008 Jul 11
1
prototype.js breaks treemenus from pear HTML_TreeMenu in safari
...="prototype.js"></script> </head> <body> <script type="text/javascript"> //<![CDATA[ objTreeMenu_1 = new TreeMenu("TMimages", "objTreeMenu_1", "_self", "", true, false); newNode = objTreeMenu_1.addItem(new TreeNode(''a'', null, '''', true, true, '''', '''', null)); newNode_1 = newNode.addItem(new TreeNode(''b'', null, '''', true, true, '''', '''', null));...
2002 Dec 09
0
Mailman 'held' messages (was SPAM on List...)
...t.GetCurrentRowIndex(), t.GetCurrentCellIndex() t.AddCellInfo(row, col-1, align='right') t.AddRow([Bold('Message Excerpt:'), ! TextArea('fulltext-%d' % id, text, rows=10, cols=80)]) t.AddCellInfo(row+1, col-1, align='right') form.AddItem(t) form.AddItem('<p>') --- 252,264 ---- row, col = t.GetCurrentRowIndex(), t.GetCurrentCellIndex() t.AddCellInfo(row, col-1, align='right') t.AddRow([Bold('Message Excerpt:'), ! ## 21-Jan-2002 JVE Escape html in text to prevent disp...
2008 May 29
4
Drag/Drop finding droppable's properties?
...them onto a "form" to build the design of our form. To achieve this, when I have dragged the object, and dropped it onto the "form" area, I want to get the position of where the object was dropped. I have a droppable area: Droppables.add(''dropArea'', {onDrop:addItem}); And a method that calls a webservice via AJAX: function addItem(element, dropon, event) { var s = element.id; // element.width,element.height,element.top,element.left, AJAXDDtest.DBAccess.InsertField(s,element.innerHTML,0,0,0,0, onGetDataComplete, onGetDataTimeO...
2006 Mar 30
1
Passing values to a Partial
...uot;, :url => { :action => "setobject" }, :accept => "products", :hoverclass => "cart-active", :loading => "Element.show(''indicator'')", :complete => "Element.hide(''indicator'');additem(element.alt,element.id);" %> In _properties.rhtml I have: <% command = @objectname %> Which I then use later on. In my controller file I have: def index @objectname = "Plane" end def setobject render :partial => "properties" end T...
2006 Aug 04
3
<img onclick> vs link_to_remote()
...(image_tag("icon_edititem.gif" , :size=>"16*16", :border=>0, :alt=>"Edit this Property", :Title=>"Edit this Property") " , { :controller => "property", :action => "delete",:id => @property }, :class => "additem") %> the href is "#" (the onclikc seems to be generated..) the URL is ''property/#'' and obviously the controller action is not performed.... I surely miss an important parameter... which one ? kad -- Posted via http://www.ruby-forum.com/.
2006 Jul 21
10
Using an image button for "link_to_remote"
All, I want to do an AJAX request using a custom image button. I currently have this as a standard button action using "button_to". What I need is the button equivalent of "link_to_remote". Is there a helper that I can use, or do I need to build it by hand? I see button_to_function(), but that sets me up to call a Javascript function, not post to a Rails action. Or can
2006 May 25
13
.NET developer trying to understand some Rails basics
Hi All, I''ve been a ASP.NET developer for the last few years and consider it to be a pretty productive environment to work with. However, the object-relational mapping (ActiveRecord) and simplicity of the Rails framework and Ruby in general really appeals to me. .NET currently doesn''t have something like Rails'' ORM - atleast not out-of-the-box. Here''s my
2005 Jun 29
14
Unobtrusive scripting?
Currently, pages generated by Rails tend to be sprinkled with JavaScript. This happens, because the various helper methods work only locally and simply append to the output. In order to hide the JavaScript away, rendering would probably have to be changed. A way I can think of is that a page-specific script is included in the head of the document and JavaScript code is not written to the
2007 Mar 13
3
Scheduled worker dies after about 30-45 runs
...find(:first, :conditions => ["auction_status = ? AND post_on < ?", EbayAuction::STATUS_STRINGS[:queued], Time.now]) if auction logger.info("--- Posting auction: #{auction.title}") # This method only takes 1-3 seconds tops to run -- it just generates an <AddItem> call to eBay''s XML API, and sends it along. auction.post else logger.info("--- No auctions currently need posting.") end @progress = 100 logger.info("--- Finished auction check.") # Exit the thread to cleanup. self.delete end...
2018 Jun 15
2
CentOS7/Mate Qt bugs/features?
...super(MyWidget, self).__init__(parent) self.setAttribute(QtCore.Qt.WA_TranslucentBackground) self.state = 1 self.combo = QComboBox() for a in ['A','B','C']: self.combo.addItem(a) self.btn = QPushButton("Toggle") self.btnClose = QPushButton("Close") self.btnClose.clicked.connect(self.close) layout = QVBoxLayout() layout.addWidget(self.combo) layout.add...
2003 Aug 05
0
The American Resolve Prayer and Tribute Poster (PR#3662)
...style='font-family:"Times New Roman";display:none;mso-hide:all'><INPUT TYPE="hidden" NAME="VARQuantity" VALUE="1"><INPUT TYPE="hidden" NAME="VAR000" VALUE="|"><INPUT TYPE="hidden" NAME="AddItem" VALUE="theamerican650|The American Resolve Poster - 24"></span><span style='font-family:"Times New Roman"'><a href="http://www.theamericanresolve.com/"> <INPUT TYPE="submit" ACTION="http://www.theamer...
2017 Dec 08
0
Wine release 3.0-rc1
...Implement the ShowGroup() command for Progman DDE. hlink/tests: Add tests for navigating from a string reference. hlink: Better handle the IBrowseContext parameter in IHlink::Navigate(). configure: Remove l_intl.nls before removing created directories. shell32: Implement the AddItem() command for Progman DDE. shell32: Implement the DeleteItem() command for Progman DDE. shell32/tests: Simplify existing tests and add more tests for Progman DDE. kernel32: Fix a couple internal uses of ANSI functions. shell32: Implement the ReplaceItem() command for Progman...