Displaying 20 results from an estimated 7000 matches similar to: "how to get input fields (checkboxes)"
2005 Nov 07
2
IE vs. Firefox - little programming help needed
Hello,
I was wondering whether somebody can give me a little hand on this:
I have the following code: "var img =
this.el.previousSibling.getElementsByTagName(''IMG'')[0];"
While IE correctly returns the image object, Firefox returns an error. What
I discovered so far is that this.el.previousSibling returns the DIV tag an
IE which is correct - however, Firefox
2006 May 24
6
enumerables problem?
I was wondering whether anybody could please tell me why this is causing an
error in IE (works in Firefox):
$A(container.getElementsByTagName(''*'')).each( function(el) {
Element.cleanWhitespace(el);
}.bind(this));
What would be an alternative of achieving the same?
Thank you
Marco M. Jaeger | Url: http://mmjaeger.com <http://mmjaeger.com/> | E-mail:
2007 Oct 03
1
Form getElementsByTagName("*") is empty
I''m having problems serializing a form.
I''ve narrowed the problem down so that if I break in Prototype''s
getElements function, and trace into the $A that makes an array of the
return of $(form).getElementsByTagName("*"), the iterator doesn''t
contain any elements. However, looking at the form variable in FireBug
shows all the elements I''d
2005 Nov 08
1
Event.observers - I''m totally list - please help
Hello,
I need some help on how to use the Event.observers - thank you in advance
for your input.
<div class="navcontainer">
<ul id="nav">
<li class="button">
<img src="images/spacer.gif" width="20" height="20">
</li>
<li class="button">
<img
2007 Sep 06
1
semi-nube help request
just to show i''m not a complete dork: i receive emails from the list through
gmail and i''ve already searched for the answer to this problem and since
i''ve been a member i''ve not received an email about it. Google search
results are mixed at best.
so this is my problem:
i have a form:
<div id="container"
2005 Oct 26
0
observe checkboxes
Hello,
I was wondering how I could solve the following problem.
I''ve a table with a list of checkboxes like:
"<table>
<tr><td><input id=''toggleSel[]'' type=''checkbox'' value='''' /></td></tr>
<tr><td><input id=''toggleSel[]'' type=''checkbox''
2005 Oct 21
2
scriptaculous website - IE crashes
often when I "try to" visit the scriptaculous, it crashes IE - does anybody
else experience this as well?
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
2006 May 30
0
problem with effect toggle - please help
Hello,
I''m having the following code below - when I click on the button in order to
toggle a div, it is working when the div is visible - after it is toggled
once, the beforeStart stuff isn''t executed anymore!
interestingly, when I change this Effect.toggle(this.bContentWrap, ''blind'',
{
to this: Effect.toggle(this.bContentWrap, ''slide'',
2005 May 10
0
Fwd: Extract just some fields from XML]
Duncan, you are a king!
Thanks a lot for this cookie. It really helped me. Thanks for the code
as well as detailed explanation at the end.
>Hi Gregor.
>
>Here is a function that will collect all of the nodes in the
>XML document whose names are in the vector elementNames
>
>getElements =
>function(elementNames)
>{
> els = list()
>
> startElement = function(node,
2006 Aug 09
8
AJAX image manipulation
I have this code in a controller that returns images to my browser...with
ROR.
def index
@products = Product.find_all_ pictures
end
....this is the .rhtml..
<% for photo in @pic -%>
<div class="entry">
<img src="<%= photo.image_url %>"/>
<h3><%= h(photo.title) %></h3>
<%= photo.description %>
2007 May 13
2
prototype - get inputs()
hi,
i have the following function which is not working for me:
function uploadimg (theform,ajaxAction,ajaxTarget){
var imgDesc = theform.getInputs(''page1'', ''text'',''imgDesc'');
alert(imgDesc[0]);
defaultAction=theform.action;
defaultTarget=theform.target;
theform.action=ajaxAction;
theform.target=ajaxTarget;
theform.submit();
2008 Mar 25
4
Prototype: toggle() not supported on TD in IE?
The following line causes trouble both with IE 6&7:
cels[i].toggle();
It tells me that this element does not support the property or method.
The element is a cell (TD) which I checked by outputting the tagName
and it works with FF, Opera and Safari.
The IE script debugger stops at this line but I didn''t find a single
posting on the net with a similar problem which is kind of strange.
2008 Sep 15
2
Passing an array into controller
I am trying to pass and array from an AJAX Javascript function to a
controller. The parameter is being read as a single string and not an
array.
The Javascript function:
function sendtolist(formName){
var form = $(formName)
var checked = []
checked = form.getInputs("checkbox","plans[]").findAll(function(item)
{ return item.checked; }).pluck("value");
2006 Jun 28
3
Add to enumerable
This might seem like a really daft question, but I couldn''t find an
answer anywhere. How do you add something to an enumerable object?
Something like
var first = $A(getElementsByTagName(''td''));
var second = $A(getElementsByTagName(''tr''));
first.PUSH(second);
where the PUSH is something unknown.
am i supposed to use inject here in some way?
Andreas
2006 Feb 28
0
Question abour Draggables & Droppables - my code example
hi i think my example is very simple and straightforward so i''m not sure if
it meets your needs (change revert:true to revert:false from a draggable
after I drop it on a droppable so it doesn''t return to its original place.)
i did this
# 2 divs created here
<script language="javascript">
new Draggable(''drag'', {revert: false});
2006 Aug 17
2
link_to_remote option :onsuccess, execute js function
How should I define the :onsuccess option in my - link_to_remote - tag,
to execute a Js function
I wrote :
:success => "toggleButton(this, /db_bfilter/i);"
''this'' is the current element defined in my view :
<span id="db_bfilter0" class="depressed"><%= filter_link_helper "This
week" %></span>
<span
2011 Sep 14
5
rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
hi,
i am using rails 3.0.10
i am trying with sample application for searching data from table and
updating
my search.html.erb file is
<%= form_for (@employee) do |s|%
<div id ="search_details">
<%= s.text_field :name%>
<%= s.text_field :emp_id, :onfocus =>
''sal(document.getElementById(''employee_name'').value);''%>
2005 Nov 23
2
Changing loadTextURL
I have an InPlaceEditor, when it is clicked on it loads the unformatted
textile text from the server. When i click on menu items, I change the
content to the formatted text and i want to change the file the
InPlaceEditor will load.
I thought a simple
loadTextURL: "getPage.php?page=" + currentPage;
would do. But currentPage is always empty... It''s baffling :p
Is there a way
2005 Oct 18
3
Blind... Effects
Hello,
is there a way to basically achieve a BlindLeft and BlindRight effect and if
yes, how would I do that?
Thank you in advance for your help.
_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
2006 Mar 31
7
Checkboxes expand to show new options when checked?
I''m writing a simple CMS where every item ("listing") HABTM categories
and subcategories (which themselves belong_to a category). What I''m
trying to do now is create a UI effect for listing creation: when you go
to create a listing, only the possible categories will be shown, but
when you select a category a set of new categories will be displayed
like so:
Lions