ok, nevermind me, I was so focused on that form that i missed the fact that
the form above it had a malformed closing tag until i noticed that the
legend text for the fieldset was the wrong font.
On 9/5/07, Brian Williams
<brianw1975-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> 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"
style="clear:both;display:block;" ><div
id="newLinkResult"
> ></div>
> <fieldset><legend>Add an Offsite Link</ legend>
> <form name="addLinkForm" id ="addLinkForm"
method="post">
> < p><label for="sitename">Name:</label><
input class="txt" type="text"
> name="sitename" id="sitename" value=
""/></p>
> <p><label for="siteurl">URL:</label><input
class= "txt" type="text" name="siteurl"
> id="siteurl" value=""/ ></p>
> <p><label for="issiteactive" >Make
Visible?</label><input class="txt" type
> ="checkbox" name="siteactive" id=
"siteactive" /></p>
> <p><input name="addbtn" type="button"
onclick="addNewOffsiteLink();" value
> ="Add" /></p>
> </form>
> </fieldset>
> </div >
>
> it calls this function:
>
> function addNewOffsiteLink(){
> var boo = new
Ajax.Updater(''newLinkResult'',''ajax.admin.php?action=addOffsiteLink'',
{evalScripts:true, parameters:
> Form.serialize(''addLinkForm'')});
> }
>
> i get this error:
>
> $(form) has no properties
> http://www.simplyundeniable.com/jslib/prototype.js
> Line 2656
>
> $(form) has no properties
> getElements("addLinkForm") prototype.js (line 2656)
> serialize("addLinkForm", undefined)prototype.js (line 2652)
> addNewOffsiteLink() admin.php (line 475)
> onclick( click clientX=0, clientY=0)admin.php (line 1)
> return $A($(form).getElementsByTagName(''*'')).inject([],
> prototype.js (line 2656)
>
>
> I am at complete loss because the following form works (which is damned
> near identical:
>
> <div id="container"
style="clear:both;display:block;" ><div
> id="newLinkResult"></div>
> <form name="addLinkForm" id="addLinkForm"
method="post">
> <input type="hidden" name="id" value="12"
/>
> <fieldset><legend>Add an Offsite Link</legend>
> <p><label for="sitename">Name:</label><input
class="txt" type="text"
> name="sitename" id="sitename" value="Potter Puppet
Pals"/></p>
> <p><label for="siteurl">URL:</label><input
class="txt" type="text"
> name="siteurl" id="siteurl" value="
http://www.potterpuppetpals.com"/></p>
> <p><label for="issiteactive">Make
Visible?</label><input class="txt"
> type="checkbox" name="siteactive"
id="siteactive" checked/></p>
> <p><input name="addbtn" type="button"
onclick="updateOffsiteLink();"
> value="Save"/></p>
> </fieldset>
> </form>
> </div >
>
>
> function updateOffsiteLink(){
> var boo = new
Ajax.Updater(''container'',''ajax.admin.php?action=changeOffsiteLink'',
> {evalScripts:true,
parameters:Form.serialize(''addLinkForm'')});
> }
>
> help? please?
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---