search for: some_id

Displaying 20 results from an estimated 27 matches for "some_id".

2006 Aug 02
9
RJS not cross browser compatible?
I have an RJS template that does the following page.insert_html :bottom, "some_id", ''<tr id="some_id"><td></td></tr>'' This works just find in safari and firefox. In IE and Opera it doesn''t work so great. Any ideas? Am I doing something wrong here? -- Posted via http://www.ruby-forum.com/.
2005 May 19
5
[OT] Sqlite2 question
So, under Sqlite2, if I want to update a database''s schema, I have to dump the DB, modify the table''s structure, then go and modify EVERY insert statement. The insert statements look like (from memory): INSERT INTO my_table VALUES (''some_id'', ''some_val'', '''', '''', '''', ''some_other val'', '''', '''', '''', '''') Assuming a my_table def like: CREATE TABLE my_table ( id, somet...
2010 Dec 21
2
Fetch without setting flags
Hello, I'm customizing squirrelmail and I want to print a line from the message in front of the subject in mailbox listing (like gmail). the problem is, when I use 'FETCH {SOME_ID} BODY[]' the message gets marked as seen. How can I fetch without setting the senn flag ? Thanks Behrooz
2006 Jul 10
18
Deleting join association of has_many :through
I''m trying to use has_many :through, since my join model deserves being more than just an intersection table. But when I try to break the association, the break only seems "temporary": Let''s say my two tables are Users and Colors, and the join model is Favorites. user = Users.find(1) user.colors.length >> 2 c = user.colors.first >> #<Color:....>
2006 Jul 19
1
Passing objects to drb, does it keep the existing db connection?
I have a simple question. Let''s say I do this in one of my models: after_save drb_conn.some_method(self) end When that object gets over to the background process is it the exact same as?.... Model.find some_id #in the background process As far as my background process is concerned passing the object is not any different than passing the id and using the find method? Because when I try to inspect the object that has been passed over I don''t get the typical .inspect output that you get from...
2007 Oct 03
2
How to Deactivate a button
How do you make a button inactive, so that it is visible, but it will not respond to clicks? Thanks Jayson
2006 Apr 07
0
Ajax.Updater asynchronous => false
...ike one would expect from Ajax.Updater. In order to get the content returned by XmlHttpRequest inserted into the DOM tree, I had to call updateContent() on the Ajax.Updater instance, which happens automatically when using asynchronous requests. Asynchronous Version: new Ajax.Updater( some_id, url, { onComplete: function () { alert("update completed"); } } ); Synchronous Version: var updater = new Ajax.Updater( some_id, url, { asyncronous: false } ); updater.updateContent(...
2006 Apr 08
0
Re: Rails-spinoffs] Ajax.Updater asynchronous => false
...> > In order to get the content returned by XmlHttpRequest inserted into the > DOM tree, I had to call updateContent() on the Ajax.Updater instance, > which happens automatically when using asynchronous requests. > > Asynchronous Version: > > new Ajax.Updater( > some_id, > url, > { onComplete: function () { alert("update completed"); } } > ); > > Synchronous Version: > > var updater = new Ajax.Updater( > some_id, > url, > { asyncronous: false...
2006 Jan 18
4
That ol'' AJAX select box update again : observe_field does nothing
Hi, I know this has been asked a million times before - but I still don''t really get it. CAn someone please tell me what''s up with the following; In a view I have (apologies for the formatting); <td> <select id="job.job_phase_id" name="job[job_phase_id]"><p><label for="job_job_phase_id">Job
2010 Jul 15
1
Asterisk Manager Problem
I am originating a call to a Local channel using an Originate Action: Action: Originate Channel: Local/dial at outdial Context: outdial Exten: answer Priority: 1 Timeout: 45000 ActionID: some_id In my dialplan, I have this: [outdial] exten => dial,1,Dial(${DIAL_STRING}, ${DIAL_TIMEOUT}) exten => dial,n,NoOp(Dial Status = ${DIALSTATUS}) exten => dial,n,Agi(agi://localhost/Outdial.agi, ${DIAL_STRING}) exten => dial,n,Hangup() exten => answer,1,NoOp(Dial Status...
2007 Aug 02
7
Difficulty using match
A have an observer watch for a click on a link. Inside the triggered function, I want to extract a piece of information from the URL. Currently I am able to do: alert(Event.element(el)); This displays the url string of the link, which is exactly what I need to work with. However, when I try: Event.element(el).match(//); I get a javascript error "selector.match is not a function". I
2006 Apr 20
5
strange mysql problem
i have this model: class LineItem < ActiveRecord::Base belongs_to :quote end in the console: >>l = LineItem.create ActiveRecord::StatementInvalid: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' , , , )'' at line 1: INSERT INTO line_items (`qty`, `quote_id`,
2008 Dec 04
1
rsync Failure
...e first server succeeds but the second fails. Interesting, this server that does the backing up, is actually backed up by another server, which is not having any issues (leads me to believe that this is not an ssh connection issue). Command Used: rsync -vvv -a -e "ssh -i /etc/backup/some_id.rsa" --delete --numeric- ids --exclude-from=/etc/backup/exclude_list --log-file=/usr/local/bin/ rsync2.log --link-dest=../$LASTBACKUPDIR root@$HOSTNAME:/ $NEWBACKUPDIR I've added the -vvv and --log-file options while trying to debug this issue. Issue: rsync runs for while, but then...
2006 Mar 18
9
RJS - not working in IE
...Javascripts to Scriptaculous 1.5.3 (for evalScripts support) Monkeypatched in_place_editor to support evalScripts I have just started using RJS, and I have two .rjs templates. They are quite simple, each template has two page.replace_html statements, which look like: page.replace_html "some_id", :partial => "some_partial" page.replace_html "some_other_id", :partial => "some_other_partial" These rjs templates work fine in Safari on Mac, Firefox on Mac, Firefox on Windows. But they fail to work on Internet Explorer on Windows. They fail in ex...
2006 Jul 17
1
RJS template help
Does anyone know where I can find good documentation on how to use RJS template. I know I can do various things with the page object: page.visual_effect :shake, ''some_id'' Is there a list of method I can run on the page onject and what parameters they are expecting? I can''t find this anywhere. Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com O: 800-341-6826 M: 817-229-4258 -------------- next part -------------- An HT...
2006 Jun 13
0
HTTP validation regexp, possible solution
...]+)*\.[a-z]{2,5} >>> (([0-9]{1 >>> ,5})?\/.*)?$/ix >>> end >>> >> >> >> Technically a URL can also start with ftp:// smb:// etc >> >> Does this also allow stuff like: >> http://username:password@www.example.com/?q=r&me=you#some_id >> >> Sorry, my REGEX skills are quite poor.. >> >> Jeroen Nathaniel''s expression almost worked. It didn''t match properly on URLs that contained a port designation and it failed to match if a URL didn''t have ''.com'' or similar...
2006 Apr 08
0
What does SystemExit mean in this context?
I''m using the very cool Exception_Notification plugin to receive error reports. Occasionally, I get one of these: <pre> A ActiveRecord::StatementInvalid occurred in [controller]#[view]: SystemExit: exit: SELECT * FROM table WHERE (some_id = 1335) ORDER BY position LIMIT 1 [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log'' </pre> I''m not sure what to do with this information. Can anyone advise? -- Posted via http://www.ruby-forum.com/.
2006 Apr 24
1
search recipe
I was able to follow the search recipe in Chad Fowler''s upcoming book but I''m wondering if there is any sort of recipe/guide out there to actually perform the search once the auto-complete does its stuff. Anyone? It''s kind of hard to search for search.. -- Posted via http://www.ruby-forum.com/.
2006 Nov 23
0
[ wxruby-Feature Requests-6826 ] Add a traverse method to Wx::TreeCtrl
...eceive the id''s of each treectrl item in turn. An optional parameter to the method could specify the id of an entry point to traverse from, to allow only part of the tree to be traversed. The default argument would be the root id. Example: # set all labels to upper case my_tree.traverse(some_id) do | item_id | new_label = my_tree.get_item_text(tree_id).upcase my_tree.set_item_text(tree_id, new_label) end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=221&aid=6826&group_id...
2007 Oct 20
0
Proper timestamps in callbacks
...Task < ActiveRecord::Base attr_accessible :lots, :of, :stuff, :but, :not, :finished_at, :and, :finished before_save do @before_save.call if @before_save end def finish self.finished = true @before_save = proc { self.finished_at = Time.now } end end ## usage t = Task.find(some_id) t.finish t.save (same code on pastie: http://pastie.caboo.se/109143) I''m thinking that going self.finished-at = Time.now directly in the finish method will cause finished_at to be a bit earlier that updated_at. I want it to be the same. Ideas? The method above is working, but it seems...