search for: tagname

Displaying 20 results from an estimated 63 matches for "tagname".

2006 Mar 03
8
How to use the sortable_element tagname option?
...eone can help me figure out what I''m doing wrong: #view <table> ... <tbody id="item-list-body"> <tr id="view-item-<%= item.id %>"....</tr> </tbody> ... <%= sortable_element(''item-list-body'', :tagname => ''tr'', :url => { :controller => ''Item'', :action => ''reorder'' }) %> I see that the JavaScript debugger is complaining that "tr is not defined" because the above code gets translated to: <script...
2005 Dec 16
0
Bug in script.aculo.us Draggable in 1.5
...being dragged. There is code in the Draggable object to stop this for Firefox: initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); log(''initDrag: '' + src.tagName); if(src.tagName && ( src.tagName==''INPUT'' || src.tagName==''SELECT'' || src.tagName==''BUTTON'' || src.tagName==''TEXTAREA'')) return; If I add ''OPTION''...
2006 Apr 27
5
proposing $E & $T
...s two new dollar-sign functions - elements to be extended by Prototype geniuses. :-) makeText(string) as $T() - return text node element Does just what it says... I''m sure someone could extend it nicely when via Prototype. (example) var x = $T(''hello world''); xElement(tagname) as $E() - return DOM element * return element, when tagname is a string - via ".createElement()" * return (deep) clone, when tagname is already a DOM element $E processes extra arguments for generating DOM trees... * When extra argument is an element reference, it''s appended to...
2006 Jul 21
2
Abstract insertion question
...reate conditions in Opera where it will run. Thanks, Peter if (this.element.insertAdjacentHTML) { /* IE and Opera */ try { this.element.insertAdjacentHTML(this.adjacency, this.content); } catch (e) { // when will this run? can feature detection be used instead? var tagName = this.element.tagName.toLowerCase(); if (tagName === ''tbody'' || tagName === ''tr'') { this.insertContent(this.contentFromAnonymousTable()); } else { throw e; } } }
2011 Mar 25
0
jquery/prototype. element.tagName undefined
Has anyone had this issue with using prototype and jquery doing a page.replace_html ''element'' :partial ''blah'' RJS error: element.tagName undefined -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsu...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...efined(Draggable._dragging[this.element]) && Draggable._dragging[this.element]) return; - if(Event.isLeftClick(event)) { + if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src = Event.element(event); if((tag_name = src.tagName.toUpperCase()) && ( @@ -309,34 +309,34 @@ var Draggable = Class.create({ tag_name=='OPTION' || tag_name=='BUTTON' || tag_name=='TEXTAREA')) return; - + var pointer = [Event.pointerX(event), Event.pointerY(event)]; var...
2005 Dec 15
1
Some handy methods - perhaps cool enough to be committed some time
...only) - gets the size of the screen. argument i boolean. False = screenresolution, True = area available(max size for browser fx.) - System.getWindowPosition() - gets the position of the window - System.setWindowPosition(position) - sets the position of the window - document.getElementsWithInArea(tagname, area) - retreives all elements matching the tagname which is within the area. (if tagname=* all elements in the area is retrieved) Here is the code(should be included after prototype.js): ------------------------------------------------------------------------------- /*************************...
2003 Feb 25
1
How to modify XML documents and save changes
Dear, I want to read XML documents, add child nodes to some elements and store everything back as an XML document. I've tryed the following: doc <- xmlTreeParse("file.xml") QTListNode<-xmlElementsByTagName(xmlRoot(doc)[[1]],"tagname") append.xmlNode(QTListNode[[1]],newXMLNode(name ="Norm", attrs = NULL)) saveXML(doc, file = "out.xml", compression = 0, indent=T) This doesn't seem to work. Can anyone help? Thanks, Steffen
2012 Feb 22
1
Collect users who posted items with ActsasTaggable on Tag in rails 3
I am using Rails 3 and Acts as taggable on in my application. I am fetching the articles associated with the tag by Article.tagged_with("tagname") and Blog.tagged_with("tagname") Now i would like to collect all the users from the above i.e.., people who are all posted articles and blogs with this tag Please suggest me.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2006 Feb 21
1
Custom forms and fieldWithErrors tags
...e a user can choose an email address, but there are only some choices for the domain, so I wrote a helper where the local part of the email is a text field and the domains is a dropdown list, like: Select Email: [ my_name ] @ <domain.com> ..which I defined as a helper: def email_form(tagname, domain_list) text_field(tagname,"local_part", :size => 15) + " @ " + select(tagname, "domain_part", domain_list) end In the database however I only have one email_address textfield which is the full email address. To get that done I added two attr_acc...
2001 Nov 13
1
RODBC
...uot;,case="msaccess") > channel channel [1] 0 And an abreviated table list is: ... 25 Runtime dbo AnalogHistory TABLE ... When I try to query the table, I get: > test <- sqlQuery(channel,"select datetime, value from analoghistory where tagname = 'a055-re-0020_ph_pv_flt' and datetime >= 'nov 1, 2001 2:00pm'") > test test [1] "37000 201 [Microsoft][ODBC SQL Server Driver][SQL Server]Procedure 'sp_prepare' expects parameter '@stmt', which was not supplied." [2] "[RODBC]ERROR: Could...
2012 Jul 25
1
submenus and menu title
From http://www.syslinux.org/wiki/index.php/Comboot/menu.c32 *** QUOTE - BEGIN *** MENU BEGIN [tagname] MENU END Begin/end a submenu. The entries between MENU BEGIN and MENU END form a submenu, which is marked with a > mark on the right hand of the screen. Submenus inherit the properties of their parent menus, but can override them, and can thus have their own backgrounds, master passwo...
2013 Jan 16
0
Rails 3.2 jQuery JSONP request not working - Moved Permanently
...ink" href="#">remove</a></li> my js.coffee script ( # this should be using JSONP I guess ) $(''*#delete_tag_link*'').bind "click", (e) -> selected = $(''#tags.tab-pane.active #tag-list li span.myTag.selected'') tagName = selected.html() alert ''going remove tag: '' + tagName # checking I get the correct tag value $.ajax url: "/" + locale + "/administration/dashboards/remove_tag_named.json" type: "POST" dataType: "json" con...
2015 Jun 23
0
[patch] doc/menu.txt MENU RESOLUTION and others
...or the name of an image file, which should be the size of the screen (normally 640x480 pixels, but see MENU RESOLUTION) and either in PNG, JPEG or LSS16 format. + Note: When using an image file as background, its resolution + should match the values used in MENU RESOLUTION. + MENU BEGIN [tagname] MENU END Begin/end a submenu. The entries between MENU BEGIN and MENU - END form a submenu, which is marked with a > mark on the right + END form a submenu, which is marked with a ">" mark on the right hand of the screen. Submenus inherit the properties of their parent m...
2007 Aug 20
3
Contribution on extending createElement
Hi all, I work a lot with scripts that modify the DOM, and I have always found quite annoying that the code would always get very verbose as soon as I wanted to create even simple structures : var my_div = document.createElement(''div''); var my_anchor = document.createElement(''a''); my_anchor.setAttribute(''href'',my_link); var my_text =
2006 Feb 27
11
Disabling anchor clicking in a draggable
Hey guys I have an interesting problem - I have some draggable elements (sortable actually), with links (<A>) inside them. I want the user to be able to click on the link, however if the user drags the element I don''t want the link to get fired. Can anyone think of a way to do this? It only needs to work in Firefox. Cheers -Rob
2006 Feb 14
1
Firefox java script error in prototype.js
...r, in firefox I have the following javascript error: Error: element has no properties Source File: http://localhost:3000/javascripts/prototype.js Line: 1280 and the javascript code at prototype: Form.Element = { serialize: function(element) { element = $(element); var method = element.tagName.toLowerCase(); var parameter = Form.Element.Serializers[method](element); if (parameter) { var key = encodeURIComponent(parameter[0]); if (key.length == 0) return; if (parameter[1].constructor != Array) parameter[1] = [parameter[1]]; return parameter[1].ma...
2001 Nov 14
0
RODBC: Minor problem, I hope.
...quot;) odbcColumns(channel,"AnalogHistory") [1] 1 > sqlGetResults(channel) sqlGetResults(channel) TABLE_CAT TABLE_SCHEM TABLE_NAME COLUMN_NAME DATA_TYPE TYPE_NAME 1 Runtime dbo AnalogHistory DateTime 11 datetime 2 Runtime dbo AnalogHistory TagName 12 varchar 3 Runtime dbo AnalogHistory Value 6 float 4 Runtime dbo AnalogHistory Quality -6 tinyint 5 Runtime dbo AnalogHistory QualityDetail 4 int 6 Runtime dbo AnalogHistory wwTagKey 4...
2002 Jan 22
1
xmms vorbis titlestring patch
Hi, I managed to patch the xmms vorbis plugin to allow specifying arbitrary tagnames to be displayed in xmms' titlestring as well as conditional tag displaying. You can get the patch (against cvs) from here http://www.uni-jena.de/~p6best/comp/diffs/xmms-cvs_vorbistitle.diff.gz For usage and some more information, make sure you read http://www.uni-jena.de/~p6best/comp/diffs/x...