similar to: RJS across iframes

Displaying 20 results from an estimated 90 matches similar to: "RJS across iframes"

2009 Feb 22
2
Mysql error unknown column 'columns.user_id'
Had this error when trying to add comments to another user''s photo. ActiveRecord::StatementInvalid in User photosController#show Mysql::Error: Unknown column ''comments.user_id'' in ''on clause'': SELECT photos.`id` AS t0_r0, photos.`user_id` AS t0_r1, photos.`title` AS t0_r2, photos.`body` AS t0_r3, photos.`created_at` AS t0.... I did create a user_id
2011 Jun 27
1
import text-records and set the fields in a table
hi! I apologize in advance if this is a newbie dumm question, but I really can't figure it ou. I have lists of sumeric and character data on some URLs, which look like this: <photo id="5876248819" owner="13716719 at N04" secret="faf9bb7f52" server="5264" farm="6" title="our rose garden" ispublic="1"
2008 Mar 15
1
error on belongs_to method.
I followed the Ruby on Rails up and running book published by Orielly. there are three DB tables, photo, slideshow, and slide the Slide class in slide.rb is like this: class Slide < ActiveRecord::Base belongs_to :photo :foreign_key =>photo_id belongs_to :slideshow :foreign_key=>slideshow_id end I inserted the sample data into database. When I trying to run the command on page39:
2006 Aug 12
7
Collection assignment to a has_many :through
I''m working on a simple photo gallery in rails, it seems to be a good project for a newbie. I have photos and categories, many-to-many association. It worked well with HABTM. Then I decided that it would be good to be able to change order of the photos so that thumbnail pages would look less chaotic. So I created a Layout model which is a join model (or whatever it is called) that
2007 Sep 07
6
ActiveRecord::Base#update_all expected behaviour
Hi I noticed that if in my code I use the following: Photo.update_all("title = ''Ruby rocks'' ", "id IN (#{@photo_ids})") All my objects are properly updated but none of the filters/callbacks are triggered. Is that what''s expected? I have a before_update filter set on the Photo class and it gets totally ignored, I guess the only way to solve this
2010 Jan 02
0
Print a PDF directly after prawnto with iframes
Hi, I think I''m very near of accomplishing this but I have a problem. This is the code: <%- content_for :head do -%> <script type="text/javascript" charset="utf-8"> function printPDF(){ var pdf = document.getElementById("pdfDoc").contentWindow; pdf.focus(); pdf.print(); } </script> <%- end -%>
2009 Feb 21
1
undefined method user_id
Basically, Im trying to add comments to photos that other users have uploaded. And Ive encountered an error: NoMethodError in CommentsController#create undefined method `user_id='' for #<Comment:0x4768cd0> C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in `method_missing''
2008 Jun 03
1
Clicking on links within facebook iframes (facebook apps)
Hello, I have a problem with clicking on the links in facebook apps due to iframes. I am trying to write a little script to run through the funwall app. I used IE Dev toolbar to get the name of the id of the iframe (those iframes how no name attribute). So I run this command: $ie.frame(:id, "app2378983609_fb_frame").link(:text, ''View this post'').click And I get
2006 Jun 29
3
dynamic generation of iframes and writing to them
Hello Everyone, I would like to get some suggestions on a problem I am trying to address. - I send a request to a 3rd party server (for ads) and a response is received from them. - Currently, I display it inline on the page and things work fine but page loading is slow and the 3rd party response can mess up styles, js on my page. - So, I want to capture this response and dynamically generate
2006 Jul 21
1
What''s wrong with this code?
I''m trying to interface with the flickr API to pull my photos into my site. I don''t want to use the "flickr.rb" gem, I''d like to do it the other way so I can learn (plus I had trouble loading the gem on my server). Anyway, here''s what I have: #Application.rb controller def get_response(path, http) request = Net::HTTP::Get.new(path)
2006 May 01
0
Having trouble adding rows to an association
hi everybody, when trying to add rows to a join table i get the following error : sequence doesn''t exist here are the models used class Photo < ActiveRecord::Base has_many :endroits_photos, :dependent => true has_many :endroits_connus, :through => :endroits_photos end class EndroitsPhoto < ActiveRecord::Base belongs_to :photo belongs_to
2006 Aug 03
0
iframe id
If a parent opened an iframe window, is there a way to determine what my the id of the iframe window is inside the iframe. -- Posted via http://www.ruby-forum.com/.
2006 Jul 13
2
Iframe upload indicator
I''m using the iframe trick to upload files with form_tag and a target pointing to the iframe. All is working, but I would like to display an indicator of the upload. All I want to do is show a hidden animated gif via Element.show. With form_remote_tag, i could use the :loading and :complete callbacks to do an Element.show and Element.hide. How do I achieve a similar effect with form_tag?
2006 Jun 07
1
Ajax Pan - IFrame
I want to make an IFRAME or some kind of AJax app that will pan an external page. Also allow for zooming. Can this be done in Ruby on Rails? -- Posted via http://www.ruby-forum.com/.
2006 Apr 18
0
Upload a file through an iFrame
Anybody here have any experience uploading a file via a hidden iframe for that "ajax fresh good feel"? Previously I was using the plugin form_remote_plugin (http://svn.kylemaxwell.com/form_remote_upload/trunk/) which was working like a dream until our sys admin updated rails to 1.1.2. I''ve made a form that can submit the file to an iframe, but now I''m having trouble
2006 Apr 18
0
iFrame File Upload
Anybody here have any experience uploading a file via a hidden iframe for that "ajax fresh good feel"? Previously I was using the plugin form_remote_plugin ( http://svn.kylemaxwell.com/form_remote_upload/trunk/) which was working like a dream until our sys admin updated rails to 1.1.2. I''ve made a form that can submit the file to an iframe, but now I''m having trouble
2010 Apr 02
1
Form Authenticity Token Error generated from iframe
Hi, Iam trying to link my app from another site. I have used iframes and a form is being loaded in the iframe embeded in another site outside my rails app. So when the user submits this form it should effectively take me to the application site with the post data... iam getting authenticity token error while doing this.. can anyone guide me how to achieve the objective... thnks Nisha -- You
2006 Sep 23
1
IFRAME being reloaded after each sortable move
When an IFRAME is included inside a sortable element it gets reloaded each time you move the element with your mouse to changing its position when sorting. The bug is only valid in Firefox 1.5 - there is no such behaviour in IE. This bug''s ticket can be found at: http://dev.rubyonrails.org/ticket/3835 Anyone know a workaround or even a bugfix? Help would be much appreciated.
2007 Nov 09
0
iframe is reloading during each sortable drag/drop point
We are creating a simple widget portal for our site and trying to use Sortables. Each of our widgets is an iframe. But when you try to drag an element containing an iframe the Sortables api causes the iframe to reload at each possible drop point. This causes the ui to shutter and become unusable. I have narrowed the issue down the onEmptyHover where dropon.insertBefore is called. Is there a
2008 Mar 23
2
Facebook, Google Map, iframe?
Hello, I want to write an application for Facebook, which need to use Google maps. Also I want to use a standart forms for comments, invites, etc..., but as i know it''s imposible because if i want to use Google MAPs i can''t use FBML. Please recommend me a way how to organize comments,ivites,photo upload and GMAP in one application? Is there is only one way to do it - use