Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Loading new form elements using AJAX
Old 08-22-2007, 01:56 PM Loading new form elements using AJAX
mwsource's Avatar
Skilled Talker

Posts: 61
Name: Reid
Location: Georgia, USA
Trades: 0
Hey all,

Here's a little brain teaser for some of you - I've been tweaking a data entry screen and I'm faced with this problem. I'm open to ideas however I would prefer to do something similar to what I ideally want to do.

My data entry screen loads a page with a form (Groups) on it and contains several form elements (name & tags). Tags is a multiple item list that allows users to double click on them and modify tag information in the same form. So when a user double-clicks on a Tag, an AJAX call is made to a subpage and loads additional form elements into the Groups form. However when I try to access these NEW form elements that were inserted into the form VIA AJAX, they return as 'undefined'.

What I want to do is add these new, populated form elements VIA AJAX and be able to grab their values using Javascript. But javascript is not acknowledging the new fields are not even there.

Another idea I am looking at is adding the form elements into the starting page and then just hiding them until they need to be populating and displayed to the user.

Any ideas? Thanks guys
__________________
Reid Workman -
Please login or register to view this content. Registration is FREE
- Currently Working on a Freelance Job search: PM me if you are interesting in testing it.
mwsource is offline
Reply With Quote
View Public Profile Visit mwsource's homepage!
 
 
Register now for full access!
Old 08-23-2007, 04:57 AM Re: Loading new form elements using AJAX
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
at a guess you are testing in IE,

IE has a problem (no surprises there then) with elements added as a child to the end of a form.
The solution is to have a "dummy" element in the form (<span>) and add the new form element as a child of that.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Loading new form elements using AJAX
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.67669 seconds with 12 queries