Displaying 20 results from an estimated 3000 matches similar to: "javascript confirm function in FBJS"
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here:
http://wiki.developers.facebook.com/index.php/Facebook_Styles
I included testing and comments. I hope you find it useful.
Curiously, it''s really a small extension of FBML.
Richard
-------------- next part --------------
Index: test/rails_integration_test.rb
2008 Mar 18
4
respond_to formats, fbml and fbjs
In my controllers I have a respond_to block for both fbml and fbjs.
I created the fbjs mime type in environment.rb:
Mime::Type.register "application/javascript", :fbjs
However, even if I specify fbjs in a parameter name format during AJAX
post requests, it is being overwritten by Rails or Facebooker as FBML.
I confirmed this by placing logger.debug params[:format] immediately
before
2008 Jul 18
0
Retrieving data from a tcl /tk function
Hello,
I am sorry if this is an answered question, but I did my homework for a long while and couldn't figure out a way to retrieve data entry from a model dialog. In one of the examples compiled by James Wettenhall:
odalDialog <- function(title, question, entryInit, entryWidth = 20,
returnValOnCancel = "ID_CANCEL") {
dlg <- tktoplevel()
tkwm.deiconify(dlg)
2008 Aug 20
1
Facebook javascript (FBJS) library
I wrote an fbjs library to help speed up development of some of my
applications. I plan to have some sort of "official" release with a blog
entry and github repository at some point, but I thought you guys might want
to have it earlier.
It''s still a work in progress. I''ve been using every method at least once in
my application but it''s still possible there is
2008 Mar 24
2
link_to_remote and restful routes/urls
is there a way to access a restful resource with mike''s new
link_to_remote helper?
something like:
<%= link_to_remote h(user.name),
:update => "div_id",
:url => user_url(user) %>
of course, that doesn''t work.
i have also been trying things like:
:url => controller.asset_host +
2004 Jun 09
1
Using macros
Dear list members,
I've been puzzling over how best to clean up the code for my Rcmdr package.
In particular, there's a lot of repetitive tcltk code in the package, and as
Martin M?chler has pointed out to me, this makes the package difficult to
maintain.
If R were Lisp, I'd use macros for much of the clean up. My efforts to do
similar things with R functions has run into problems
2008 Sep 17
0
Facebooker with expanded FJBS library
A few weeks ago I posted an FBJS library that I had been working on. I have
now updated that library to be fully compatible with Facebooker and created
a publicity accessible fork for people to try it out. I did attempt to
maintain backwards compatability, but I strongly recommend switching to the
new methods.
The fork is located here:
http://github.com/gdeglin/facebooker/
A helper has been
2009 Oct 19
1
Problem with geometry manager in TclTK
Hello, everyone.
I have the following problem with TclTk: I create some windows and want to
change their position with geometry manage (sometimes they will be centered,
sometimes not).
If the toplevel is created and its dimensions are gathered via 'tkwinfo', I
get (usually) correct values. However, if this window is created by a
function (in the following example, by 'ask.format')
2005 Jul 12
1
help: how to use tkevent.generate(...)
Hello,
I use package "tcltk" to do some GUI programming, and want to find a
function which can do the operation "click a button", just like using
a mouse to click. If tkevent.generate can do that? I tried it as
below, but failed. Please give me a hint!
tt <- tktoplevel()
tkwm.title(tt,"Simple Dialog")
onOK <- function(){print("OK")}
onCancel <-
2009 Apr 14
0
disappearing dialog boxes when using tcltk
Dear all,
I'm trying to use tcltk to build a small
user-interface and couter the problem:
It seems that sometimes the dialog box will be
minimized automatically though I want it to be on top
of the screen all the time.
For example, when runing the following code, if you
type in "a1", "a2", "a3", etc when being asked for an
integer, the program is supposed to
2008 Mar 12
2
Developing Facebook Platform Applications with Rails
I was hoping to announce this a month ago, but some legal wrangling
took longer than expected.
Developing Facebook Platform Applications with Rails is now available
in Beta at http://www.pragprog.com/titles/mmfacer
It walks you through creating a Facebook application with Facebooker,
all the way from setup to handling large number of users.
Thank all of you for asking questions on this
2007 Mar 23
0
[918] branches/wxruby2/wxwidgets_282/samples/aui/aui.rb: Fix a couple of little bugs and typos
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2008 Oct 17
0
Wine release 1.0.1
The Wine maintenance release 1.0.1 is now available.
This is a maintenance release from the 1.0 stable branch. It contains
only translation updates and small bug fixes.
The source is available from the following locations:
http://ibiblio.org/pub/linux/system/emulators/wine/wine-1.0.1.tar.bz2
http://prdownloads.sourceforge.net/wine/wine-1.0.1.tar.bz2
Binary packages for various
2007 Apr 13
0
[962] branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl: Fixed the documentation for load_*_subclass, where * is [Dialog, Panel, Frame].
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2012 Apr 24
0
help with GUI interface
If I have GUI as follows
how can I add a checkbox that when you click on it,it gives you
different files,
then when you click on that file it gives you the information you are
looking for,
instead of me browsing for a file how do i turn it to be a csv or xls
file check box.
dlg <- aDialog(items=list(
file=fileItem("", attr=list(
filter=list("CSV or txt"=list(
2013 Aug 03
1
tk + browser() can leave R unresponsive
I don't know if this is a bug. I can reproduce the following on Ubuntu
12.04.2 and 13.04 64-bit with R version 3.0.1 and with r63479. There
is no difference if R is patched with the fix for PR#15407 or not,
although without the fix there are more ways to trigger this.
I can reproduce with the following:
1. Open R in gnome-terminal or xterm
2. Run 'library(tcltk)'
3. Run
2008 Jan 25
5
ajax with facebooker?
So if I am using fbml,canvas & facebooker, can I do ajax calls? if so
how?
From reading it seems they support some sort of mock ajax, but I
don''t really understand, can somone explain to me?
If I cant do ajax, can I still do javascript?
Can I use 3rd party libs like prototype & scriptaculous?
thanks
Joel
2010 May 18
1
GUI commands to call for a protein from protein data bank
What I am trying to do is use GUI function, traitr, and to call for a pdb
file and save it and then display it. I want to call for it by taking it
from the user and then displaying it on the screen. I am having problems
with that. The line pdb <- read.pdb(""ProteinCode) where proteincode should
be the name of the protein, for example 1ly2, but it always ends up being
protein. My
2009 Nov 28
1
'Are you sure?' custom dialog not exiting cleanly
The following program does not exit cleanly after pressing ''Yes'' when asked
''Are you sure''?
How do I free up the resources after exiting? You can use wxsugar (xrcise)
to try out this mini program
if you wish to create sample1.rb . Thank you.
-Philip
=========== asample1.rb ====================================================
require ''wx''
2008 Mar 14
8
Facebooker updates
I just went through and cleaned out most of the bugs and patches. I
also added a facebooker.js file that implements enough of prototype to
do $() and link_to_remote with :update and remote_form_for with :update
Let me know if you run into any issues with it.
Mike
--
Mike Mangino
http://www.elevatedrails.com