similar to: Ajax Button Back function?

Displaying 20 results from an estimated 6000 matches similar to: "Ajax Button Back function?"

2006 Jan 10
7
Application Design Question
I am designing an application to run a fishing tournament I am hosting. Each fish entered will be given a point total based on the length of the fish and the species of fish. Each species has a point multiplier. For Example Trout have a multiplier of 10 so a 20 inch Trout would have a score of 200. My conundrum is in where and when do I calculate the points. The options I have come up
2006 Jan 09
3
Selecting a subset of a table with DRY
Hello, I have table called ''listings.'' There are a certain combination of properties which make a listing viewable (e.g., it is confirmed, has been authorized, hasn''t expired, etc.). Each listing has one and only one category. I want to be able to do things like Listing.find_viewable(...) and Category.find(...).viewable_listings, but I see no way to do this
2006 Jan 12
7
user-defined columns
I am breaking ground on a new project and one of the issues I expect to encouter is the ability of users to define their own columns. For example, one of the features of this application will be the ability to store information about people''s skills and then search for and schedule them based on this information. Since every organization''s needs are different, it would be ideal
2006 Jan 09
5
mysql is not recognized as an internal or external command
Hi, An absolute newbie to RoR, I''m currently going through a few of the excellent tutorials that are available on the subject. One of these includes running a script for creating a mySQL table. In the command prompt (XP), I try mysql depot_development <db/create.sql but get the following error: ''mysql'' is not recognized as an internal or external command,
2006 Jan 11
3
Just update 1 field
Hi All, I wonder how I can get rails to update just one field when I do Myfile.save. Right now this happens when I do a Myfile.save: UPDATE myfiles SET `folder_id` = 0, `filesize` = 1, `data` = ''2f7573722f6c6f63616c2f6d ... f7061636b65743d33324d'', `user_id` = 0, `date_modified` = ''2006-01-11T23:33:57+0100'', `filename` = ''mysqlscripts.sql''
2006 Feb 28
1
support back button
There are a couple of links in the wiki about AJAX and the back button, but seem to be broken. I have a page with AJAXified tables and normal links. When the user modifies some table, follows a normal link, and presses the back button, the shown tables are the original ones (modifications are OK in backend). Is there some standard solution to this? -- fxn
2006 Jan 12
4
If statement based on a action
Question for you all is it possible to use an action in an if statement? I am using the same form for edit and new and I have a cancel button on the page. This cancel button is built with an if statement that looks right now to see if a parameter exists to define where to go back to if the user cancel. The problem occurs when the user submits the form and there are missing fields by
2007 May 17
5
AJAX, PHP and scriptalicious
Hey, I''m brand new to AJAX and scriptalicious, so i''m hoping for some help. inside hello.php I have this piece of code to grab and loop out users in the database: function test(){ $query = mysql_query(''SELECT * FROM `testing`''); while($i = mysql_fetch_row($query)) { echo''<div class="testie">'';
2006 Jun 29
11
Autocompleter without a default choice
Hi, I have an ajax auto completer for a text field in a form. All''s good. Unfortunately, I also want the form to be submitted when the user hits ''return'' in the text field. This combination of circumstances means that if the user is typing his entry and then hits return to submit it is possible that dang auto completer will pop up and complete his entry for even if he
2008 Jan 19
10
lose focus event?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I''m new to wxruby, and I haven''t found any answer with google: Is there a way to capture a lose focus event on controls, such as a combo box? All my experiments show events when changing the text, but not when leaving the box. I want to make a combobox that autocompletes if I press tab (or down arrow or something), but if I
2006 Apr 04
13
Myowndb: a web database built with rails
Hi all, I wanted to announce on this list that I have launched http://myowndb.com which is a web database built with Ruby on Rails. The application lets the administrator users define the data structure through a web interface like in a normal database, with: - tables - enhanced datatypes like emaili, web URL, and a choice in list - relations (one to many, one to one) between tables Once the
2007 Jun 19
4
back button for AJAX in rails
Greetings all, I am wondering are there any thing like link_to_remote(:update, :url) in rails which preserves the navigation feature (back & forward button as well as bookmarks) of the browser? Thanks very much! Cheers, Difei -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2006 Mar 08
12
best way to combine results from two tables
I want to combine a selection of data from two tables and display it as list. Note that this isn''t a join. i''m looking for something like this: Table 1: Sheep Name, Age, Farmer, etc. (sheep specific columns) Table 2: Cows: Name, Age, Farmer, etc. (cow specific columns) For my display I nneed something like this: Farmer Jone''s Livestock: TYPE NAME AGE Cow
2006 Jun 22
2
id column for join table... kosher?
I''ve got two tables, bookmarks & tags. Using a has_and_belongs_to_many association, I can do lookups using a join table called bookmarks_tags. Two questions: 1. Can I have a migration for my join tables? Rails seems to "know" about join tables implicitly from the associations, but if I do a rake migrate the join tables won''t be built. I''ve been
2006 Jul 02
2
:include breaks has_many :order
It would appear that using :include on a model that has_many with an :order on another model makes it so that the order is ignored. Is this supposed to happen? Strikes me as odd behavior. For example class Farmer < ActiveRecord::Base has_many :cows, :order => ''position'' end class Cow < ActiveRecord::Base acts_as_list :scope => :farmer end If I do
2011 Jan 16
4
persistence by reachability
Hello guys, I have these models class Farmer < ActiveRecord::Base has_many :cows end class Cow < ActiveRecord::Base set_table_name :cows belongs_to :farmer end ... graph = Farmer.find(x) # Retrieves four cows of x graph.cows[1].name = "Trottolina" graph.save while adding a new cow to collection works perfectly fine, ActiveRecord doesn''t
2005 Jul 25
8
My try on nested sortables
Hello, please take a look at http://test.reasonmaker.com/sort/ where I made some hacks to allow for nested sortables. I need a hierarchical, sortable list, so I hacked away. It generally works quite nicely, but: ( - The code needs my debug stuff and failed attempts removed ) - The code needs to be adapted to also work with vertical sortables. It probably breaks vertical sortables.
2007 May 24
4
Create a virtual host using Instant Rails 1.7
Hi, I created a new rails application called demo using Instant Rails 1.7. It runs at the URL http://localhost:3003/blog/ The applications that a packaged with the zip file, cookbook and typo are currenlty the two virtual hosts. I can already run them using the following URLs http://www.mycookbook.com and http://typo/ Now, I want to add my application demo as the third virtual host in
2010 Sep 16
5
AGI Delimiter in 1.6
Hi I am currently using 1.2.x and 1.4.x behind OpenSER. One of the things I do on INVITES is to re-authenticate the user from OpenSER. Then when the INVITE gets passed to Asterisk I capture the AUTH to a variable in the dialplan and pass to an AGI script. I am now trying to set the same thing up in 1.6 However because the argument delimter in 1.6 has changed from pipe to comma this breaks as the
2019 Apr 04
2
PJSIP Delay in Dialing
Thanks Joshua. Hopefully I'll be able to retry tomorrow. On Thu, 4 Apr 2019 at 15:30, Joshua C. Colp <jcolp at digium.com> wrote: > On Thu, Apr 4, 2019, at 11:27 AM, Mark Farmer wrote: > > Thanks, I did enable debugging but didn't see any attempts to resolve > > hostnames. I will give it another look. > > > > I did have an empty resolver_unbound.conf