Displaying 20 results from an estimated 9000 matches similar to: "Form getElementsByTagName("*") is empty"
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"
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);''%>
2008 Apr 22
1
Problem with Prototype 1.6.0.2, Opera 9 and Form.serialize()
Hello,
following code fragment given:
~~~
function jsPostAppend(script, form_id)
{
if(form_id)
//parameters=''&'' + $(form_id).serialize() // first flavour
parameters=''&'' + Form.serialize($(form_id)) // second flavour
[...]
~~~
This works perfect for FF2, IE7 and Safari3 (in both flavours).
With Opera 9.x, I get the following javascript errors:
Form.serialize(this) returning empty string in onSubmit, Ajax.Update context, works in Firebug watch
2007 Apr 10
0
Form.serialize(this) returning empty string in onSubmit, Ajax.Update context, works in Firebug watch
This page is ripped from a real application, but its been simplified
for debugging, turning off authentication and hiding Secret SauceĀ®.
So if you try
Form.serialize(''bio_form'')
in Firebug you''ll get a url-encoded string back.
The parameters to the Ajax.Updater() call a wrapper around
Form.serialize which should present an alert with the url-encoded
string. It
2007 Jul 18
3
immediate Descendants not working in IE
Hi, im currently styling a menu using a java script effect which hides
the nested submenus on load, and also shows/hides them on mouseover.
It is working in firefox, using ...
var ul = $("nav").getElementsByTagName("ul")[0];
var lis = ul.immediateDescendants();
I then loop through lis to initially hide all the submenus. This works
fine in firefox, but not in IE. The sub
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:
2006 Nov 03
4
Bug? IE, getElementsByClassName and "length"
So, I have this form/datagrid thing. I want to have a button that
clears the fields (not a reset, which would set them to the default
state, I want them blank.) For various reasons, getByClassName seemed
the best way to deal with this.
Everything was fine on Moz/Firefox. Safari seems fine. But IE...
Some detective work later, it seems that the problem is caused by
*another* field on the page.
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 22
2
''this.initialize'' is null or not an object
Hi, working on the accordion widget and it''s actually working nice (doesn''t
seem to be jumpy) now but I am receiving a javascript error in IE 6. Does
anybody have any ideas why it is happening? Thanks
<script language="javascript">
sbr_stretch(el) {
thisBodyId = el.parentNode.id + "_body";
thisBody = $(thisBodyId);
if
2007 Jun 10
2
Problem replacing form element with another form
Having a strange problem with replacing a form with another form. If I
do this
Element.replace("some_form_id", "<form>dummy text</form>") where
"some_form_if" is the id of a form element only the text between the
form tags is inserted, not the form tags. Tend to think I must be
doing something dumb, as can''t find any discussions on this anywhere.
2006 Mar 03
3
xml handling
Hello there, im having a problem with the xml handling, i want to get and
xml node and put things in an input text but im a little lost, im using this
code, but isn''t work, what am i doing wrong?
---------------------
<a href="#" onclick="getXML()">Get XML</a>
<input type="text" value="nothing here" id="respuesta" />
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.
2006 Mar 16
3
This is driving me crazy!!!
I have the following code but it keeps on giving me this error when it
runs.
--- Error: this.alertBox has no properties
What would be causing this? My Code checks out when I call
this.alertBox() from the setup function it works fine but when I try and
put in on an event observer it doesn''t work.
What do you guys think?
Thanks,
Jon
Code Here:
var Updater =
2006 Feb 07
2
Question about Classes.
I have the attached class that I''m writing. The problem that I''m
running into is that I can not access the options from the createArray
function which get called after the ajax request gets done. I want to
move the values of the xml file to an array and story it in the options
variable. Can someone explain what I''m doing wrong?
var LeaderInfo = Class.create();
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe,
After removing all occurrences of charset=utf-8 from
my headers I am
still getting the same bug in IE.
Currently, it''s Content-Type: text/html
Any other suggestion?
Nathan.
> Message: 2
> Date: Mon, 20 Feb 2006 09:13:57 -0500
> From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org>
> Subject: RE: [Rails-spinoffs] [Prototype] onSuccess
Event
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
2006 Dec 12
10
Scriptaculous loader ... how to clone it?
Hi,
I would like to use the system loader as in scriptaculous.js to load
dynamicly some of my javascript files.
So I copied and pasted the code from scriptaculous.js into my
modules.js (this file should load all my js files from the directory
"modules" !). But the problem is when I launch my web page, the
scriptaculous.js works correctly but not the modules.js.
I think the two methods
2005 Oct 26
1
how to get input fields (checkboxes)
Hello,
I was wondering what the easiest way would be to get all input fields in a
form - they all have the same id like toggle[] for instance.
how could I e.g. count them? would the getElements or getInputs work for
instance and how would I use them?
thank you
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today -
2008 Jan 19
1
Set Return Type XML in Prototype
Please help i can''t return xml data using prototype.
If i use data from direct xml file then it works fine but when i use
ajax request with header content xml it''s not working
My code just work on IE but in FF it does not working. My code sample
are given below
If any one already done this kinds of job Please help me as soon as
possible.
var xmlDoc;
function Claulate()
{
var
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