Displaying 20 results from an estimated 20 matches for "ajaxopt".
Did you mean:
faxopt
2006 Jan 25
10
Ajax.InPlaceEditor onSuccess: ???
I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t
appear to exist. onComplete isn''t what I need because I only want my
callback on success. Is there a way to do this?
Thanks,
Jamie
2006 Jan 09
6
inPlace Editor
HI, I am a new to the group.
I have run into the following issue.
The following works fine
<h1 id="tobeedited">To be edited</h1>
<script>
new Ajax.InPlaceEditor($(''tobeedited''),
''_ajax_inplaceeditor_result.html'', {
ajaxOptions: {method: ''get''}
});
</script>
But I want to pass some more parameters. So I did the following:
<h1 id="tobeedited">To be edited</h1>
<script>
new Ajax.InPlaceEditor($(''tobeedited''),
''_ajax_inplaceeditor...
2006 Jan 05
6
InPlaceEditor and textarea
Hi to all.
First of all exchuse for my bad english
I try to use Ajax.InPlaceEditor with a textarea:
##################
new Ajax.InPlaceEditor($(''ipblock''), ''tools/admin_save.php'',
{ ajaxOptions: {method: ''get''},
rows:10,
cols:20,
callback: function(form, value) { return ''op=ipblock&value='' + value},
onBlur: function(request) {Element.show(''indicator'')},
onComplete: function(request) {Element.hide(&...
2006 Apr 21
1
how-to pass other values to InPlaceCollectionEditor?
...ptions.callback = function(form, value) {
return extra_param + "value=" + encodeURIComponent(value);//a.alonzi
}
#######################
the code in order to use the function is:
######################################
var editor= new Ajax.InPlaceCollectionEditor(el, url,
{
ajaxOptions: {method: ''get''},
value: 0,
collection: [[1,''aaa''],[2,''bbb''],[3,''ccc''],[0,''ddd'']],
extra_param: ''op=tipo_cont&'',
onBlur: function(request) {Element.show(''indicator...
2006 Jan 29
2
How to fire event listener after site update by Ajax Updater?
Hi all. I have site that is updated by Ajax updater. After site is update i want to use some javascript code and I don''t want use javascript onClick. I try to use some event listener but I don''t know how to fire them. What is the event when some part of site is update by ajax?
Thanks for any help
Gregor
----------------------------------------------------
Chuck nie musi dzwonić
2007 Jul 10
9
Other parameters on InPlaceEditor
...er I can use "parameters:", but for InPlaceEditor (or
InPlaceCollectionEditor) I cannot use "parameters". How I make to pass
other parameters to the page that callback?
A sample code:
----------------------------------
var editor= new Ajax.InPlaceCollectionEditor(el, url,
{
ajaxOptions: {method: ''get''},
value: ($(el).innerHTML==''Yes'') ? ''1'' : ''0'',
collection: [[0,''No''],[1,''Yes]],
parameters: ''op=pag_sca&id='' + id_pagam + ''&id_cliente=<...
2006 Feb 09
6
inPlaceEditor ISSUES!
I have run into a problem that I have never created before. I am
using the scriptaculous inPlaceEditor
If I hit the cancel button, and rehit the editor it then creates two
textboxes, and if I repeat three input boxes, etc.!
Must be stupid simple, but I AM STUMPED!
DECO
2006 Aug 10
0
Ajax In place edit with Struts
...m calling the script..
new Ajax.InPlaceEditor(''1'',
''<%=request.getContextPath()%>/examples/test.do?method=post'',{ callback:
function(form, value) { return ''gText='' + encodeURIComponent(value)},
cancelLink:false, okText:"Save", ajaxOptions: {method: ''post''}});
This is the text that I am entering ?b?cos? and it becomes like this
when it comes back ???b???cos???.
Regards,
P.
--
Posted via http://www.ruby-forum.com/.
2007 Apr 09
0
Unobtrusive IPE -- comments, please
..."ajax_update.php",
{rows:20,cols:50,
onComplete: function(transport, element) {
new Effect.Highlight(element,
{startcolor: this.options.highlightcolor});
editListing.dispose();
},
loadTextURL: "get_raw.php?id=<?= $id ?>&field=description",
ajaxOptions: {method: "post"},
callback: function(form, value) {
return "id=<?= $id ?>&field=description&myparam=" +
encodeURIComponent(value)
}
});
if(editListing) editListing.enterEditMode(''click'');
};
var editThis = function(){
Event...
2006 Mar 31
0
info about default value of InPlaceCollectionEditor
...;'op=pag_sca&value=''+value+''&id=''+id_pagam+''&id_cliente=8&id_order=22'' },
onBlur: function(request) {Element.show(''indicator'')},
collection: [[0,''No''],[1,''Yes'']],
value: 0,
ajaxOptions: {method: ''get''}
});
}
</script>
-------------------------------------
<div id="p_s_35" align="center">No</div>
<script type="text/javascript">
setupCategoryEditor(''p_s_35'', ''save_pagam_sca.php...
2006 Feb 27
0
update a second div with Ajax.Updater, when Ajax.InPlaceEditor has just finished to modify another first div
...le(''box1'',{handle:''box1''});
</script>
<script type="text/javascript" language="javascript" charset="utf-8">
new Ajax.InPlaceEditor($(''command1''),
''_ajax_inplaceeditor_command1.html'', {ajaxOptions: {method: ''put''}});
// I''d like to update box2 with new generated html page from
"Ajax.InPlaceEditor($(''command1'')..." result !
</script>
</body>
</html>
Thanks a lot !
Olivier Gabathuler
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question..
I often crash my Safari when using ''Enter'' on InPlaceEditor''s for
submitting.
Works fine on firefox(win & Mac) - no javascript errors.
Anyone else seen this behavior?
(Maybe it is just my alterings of InPlaceEditor :-)
Best Regards
Michael Krog
2006 Aug 02
2
Passing Ajax.InPlaceEditor options
I''ve followed the instructions in the Rails Recipe #1 and have the
in_place_editor_field working but now I want to tweak how it looks and
behaves. I''d like to be able to override the default yellow highlight color,
which is done using the highlightcolor param according to the scriptaculous
documentation (unless I''m missing something).
I''m new to Ruby and Rails
2007 Apr 20
15
Need help with something.
Hello, I need a way to send some script in a div or a form field to
the server,
have the server read it, then return the updated script to the div or
form field.
I can do the div and form field and such, I just need someone to
explain to me how to do this. Can this be done? Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Nov 04
2
in_place_editor_field submitOnBlur & okButton=false options?
I have a few in_place_editor_fields working fine. I can access some of
the script.aculo.us options such as :cols, :save_text, :cancel_text, but
how do I access the okButton = false & submitOnBlur options? Basically,
I want no submit button, a cancel button, and the ability to submit when
I tab out of the field.
Is this doable without writing a helper? (avoiding digging that deep so
2007 Jan 11
2
In-place editor for a whole form?
I want to implement in-place editing for a hierarchical structure where
the nodes are not simple text fields, but need to be represented by at
least two input elements.
The Rails helpers only support in-place editing for a text field,
scriptaculous''s controls.js beyond that implements support for an
in-place editor containing a select element. I need an editor where I
essentially
2006 Mar 25
0
in_place_collection_editor
...ontrol''] = "''#{options[:external_control]}''" if options[:external_control]
+ js_options[''loadTextURL''] = "''#{url_for(options[:load_text_url])}''" if options[:load_text_url]
+ js_options[''ajaxOptions''] = options[:options] if options[:options]
+ js_options[''callback''] = "function(form) { return #{options[:with]} }" if options[:with]
+ function << ('', '' + options_for_javascript(js_options)) unless js_options.empty?
+...
2008 Apr 07
5
trying to use Ajax.InPlaceEditor
...value is supposed to be.
Here is my view:
<b>Color</b><br />
<p id=''edit_field''><%= @box.color %></p>
<script type="text/javascript">
new Ajax.InPlaceEditor($(''edit_field''), ''/boxes/1'', { ajaxOptions:
{method: ''put''},
callback: function(form, value) {
return ''authenticity_token='' + window._token +
''&box[color]='' + escape(value) }
});
</script>
In my controller, I didn''t do anyt...
2006 Mar 07
6
[PATCH] Allow Ajax.InPlaceCollectionEditor to load collection externally
Attached is a patch to allow Ajax.InPlaceCollectionEditor to load the
collection using AJAX.
It adds a new option, loadOptionsURL, which is the URL used to load the
values over the interweb. It expects the server to return
<option></option> values. If one of them has a selected="selected"
attribute, it will probably be pre-selected. Not tested that though.
Also only tested
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying.
In javascript, I''m using the ajax.updater, and it (obviously) writes
back out to a div. I want to then compare what was echoed out into
this div (which came from the php file I listed in ajax.updater) with
a string.
test should equal "SomeString" because that is what is being echoed
out to