Displaying 10 results from an estimated 10 matches similar to: "Ajax.Updater and JavaScript functions"
2009 Aug 06
2
duplicate model object with associations ?
class Patient < AR::Base
has_many :aaas
has_many :bbbs ,:through=>:aaas
end
class Aaa < AR::Base
has_many :bbbs
end
-------
i want like this
@patient=Patient.find(id)
@new_patient=@patient.duplicate
now the
@new_patient should have their own copy of patient,aaas,bbbs (new
records in corresponding tables)
there is one options is that
we can create seperate object for each
2007 Mar 09
0
(no subject)
I am trying to use the clusterer as stated in the README ( plugin is
running well ...)
and I got an error when displaying the map...
addDescriptionToMarker is not defined
(no name)()22 (line 169)
(no name)()ym4r-gm.js (line 67)
[Break on this error] map.addOverlay(new GMarker(new GLatLng
(47.7377071331,-2.9257965088),{title : "aa...
here is the generated script...
<script
2007 Mar 09
0
Clusterer
trying to use a Clusterer (other capabilities are running well....) I
got an error :
addDescriptionToMarker is not defined => line 169
my controller..
clusterer = Clusterer.new(@my_markers,
:max_visible_markers => 2,
:grid_size => 10,
:min_markers_per_cluster => 2,
:max_lines_per_info_box => 10,
:icon => icons[2])
2009 Dec 14
4
[LLVMdev] inttoptr weirdness
Hi again.
I have a complex type system in my custom language that isn't easily
representable as LLVM IR types, so I figured I could mostly get along
with treating my types as i8* and doing the appropriate bitcasts and
inttoptr instructions, and doing pointer arithmetic myself (by casting
the pointers to ints, adding the appropriate byte offsets, and then
casting back to pointers).
However,
2007 Oct 16
3
can''t define custom GIcon
Hi,
I am having trouble getting custom GIcons to display. Here is the code in
my controller:
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@map.icon_global_init(GIcon.new(:image => "images/APBox-20.png
"),"ap_none")
infoString = "Friendly Name: "+result.friendly_name+
2009 Dec 14
0
[LLVMdev] inttoptr weirdness
On Mon, Dec 14, 2009 at 12:27 PM, Scott Shumaker <sshumaker at gmail.com> wrote:
> Hi again.
>
> I have a complex type system in my custom language that isn't easily
> representable as LLVM IR types, so I figured I could mostly get along
> with treating my types as i8* and doing the appropriate bitcasts and
> inttoptr instructions, and doing pointer arithmetic myself
2007 Jan 18
1
Clusterer generating javascript syntax error
Hi all,
I''m using Ym4r with the Clusterer. The GMaps code in my controller
looks something like this:
# geo is an array of lon/lat points
session[:gmap] = GMap.new(''map_div'')
session[:gmap].control_init(:large_map => true,:map_type => true)
session[:gmap].center_zoom_init([38.134557,-95.537109],4)
markers = Array.new
2007 Mar 08
1
map not displayed after Ajax.updater request
In my layout header I inserted the standard helper : GMap.header
I built the map in my controller , I build either a standard table
or a map and display it in the corresponding partial
the map is built without any problem with the icons and markers
( @map is correct...)
@map = GMap.new("map_div")
...
@map.icon_global_init(GIcon.new(:image =>
2006 Oct 10
7
Problems with RJS w/ Lighttpd & Ubuntu
I have my code working on my local machine no problem, but when I upload
to the server the RJS effects I have aren''t working. The server is
running Ubuntu Dapper w/ lighttpd while on my local machine I''m using
webrick.
For kicks I shut down lightty and booted my app on the server with
webrick and it works fine. So it''s definitely a lightty issue.
Anyone else seen
2007 Jan 26
3
Newbie question.
Sorry for my ignoreance I''m kind of new to this....
I have a requirement for a page that essentially consists of three
"DIVS".
DIV1 - This is static, it has a bunch of links that initiate a AJAX
request to populate DIV2
DIV2 - Populated as a result of a request initiated from DIV1.
- This needs to have further links that will initiate a AJAX
request to populate DIV3.