Ok, I'm having what is most likely a very newbie problem, but... I am
generating dynamic content for a page within a DIV on my main page (so
I have a 'content' DIV). This works very well, and all of my async
calls to server-side PHP work as expected. The problem that I am
having is when the content returned contains an HTML form. I then need
to pass this back to my XMLHttpRequest handler to get new content. The
problem is my form object is not recognized. I've even tried passing
the value in the text boxes via function calls, and I still get either
element not defined errors or element has no properties. This is in
IE/Firefox/Safari, so I know there's definitely an issue.
It seems that the main problem is that any form elements passed to the
content DIV after the page loads are inaccessible to the existing JS
framework I have in place for processing the AJAX calls. Is there
something I'm missing? Do I need to create the forms ahead of time so
they get parsed into the DOM when the page loads? Is there a way to
refresh the DOM? Do I need to access these in some other fashion,
perhaps through the content DIV in some way?
The codebase at this point is rather large, and I think this is more of
a conceptual question, but I can post some snippets if required.
Thanks,
Rob 2 1563 ro*********@comcast.net wrote:
Ok, I'm having what is most likely a very newbie problem, but... I am
generating dynamic content for a page within a DIV on my main page (so
I have a 'content' DIV). This works very well, and all of my async
calls to server-side PHP work as expected. The problem that I am
having is when the content returned contains an HTML form. I then need
to pass this back to my XMLHttpRequest handler to get new content. The
problem is my form object is not recognized. I've even tried passing
the value in the text boxes via function calls, and I still get either
element not defined errors or element has no properties. This is in
IE/Firefox/Safari, so I know there's definitely an issue.
It seems that the main problem is that any form elements passed to the
content DIV after the page loads are inaccessible to the existing JS
framework I have in place for processing the AJAX calls. Is there
something I'm missing? Do I need to create the forms ahead of time so
they get parsed into the DOM when the page loads? Is there a way to
refresh the DOM? Do I need to access these in some other fashion,
perhaps through the content DIV in some way?
The codebase at this point is rather large, and I think this is more of
a conceptual question, but I can post some snippets if required.
Thanks,
Rob
Nevermind. I've found that if I pass the form object itself to the
handler function I am indeed able to then access the email. Kind of a
pain, but it works.
rob.horv...@comcast.net wrote:
ro*********@comcast.net wrote:
Ok, I'm having what is most likely a very newbie problem, but... I am
generating dynamic content for a page within a DIV on my main page (so
I have a 'content' DIV). This works very well, and all of my async
calls to server-side PHP work as expected. The problem that I am
having is when the content returned contains an HTML form. I then need
to pass this back to my XMLHttpRequest handler to get new content. The
problem is my form object is not recognized. I've even tried passing
the value in the text boxes via function calls, and I still get either
element not defined errors or element has no properties. This is in
IE/Firefox/Safari, so I know there's definitely an issue.
It seems that the main problem is that any form elements passed to the
content DIV after the page loads are inaccessible to the existing JS
framework I have in place for processing the AJAX calls. Is there
something I'm missing? Do I need to create the forms ahead of time so
they get parsed into the DOM when the page loads? Is there a way to
refresh the DOM? Do I need to access these in some other fashion,
perhaps through the content DIV in some way?
The codebase at this point is rather large, and I think this is more of
a conceptual question, but I can post some snippets if required.
Thanks,
Rob
Nevermind. I've found that if I pass the form object itself to the
handler function I am indeed able to then access the email. Kind of a
pain, but it works.
Sorry, works in FF/Safari, not in IE. Still unable to locate the child
element, even when passing the form object itself. Darn IE.. Crap,
crap, crap.
-Rob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jon Paal |
last post by:
this works as shown:
<script Language="javascript" src="http://127.0.0.1/syndicate.ashx?d=suppliers"></script>
is there a way to set src programmatically ??
|
by: Lanky |
last post by:
I am using the Dynamic Ajax Content script from Dynamic Drive (http://dynamicdrive.com/dynamicindex17/ajaxcontent.htm) and trying to load the Ultimate Fade-In Slide Show also from Dynamic Drive...
|
by: pbd22 |
last post by:
Hi.
This is just a disaster management question.
I am using XMLHTTP for the dynamic loading of content in a very
crucial area of my web site. Same as an IFrame, but using XMLHTTP and
a DIV. I...
|
by: geshan |
last post by:
Hello all,
I'm having trouble populating a select box as per the selection of
above select box.Its like level 2 select box depends on the value of
level 1 box. Both the boxes values come from a...
|
by: Phil Latio |
last post by:
Has anyone got any good advice on how to create dynamic forms?
I am creating a subscription form where the subscriber selects which level
of service they will have and depending on the selection...
| |
by: csteacy |
last post by:
Hello,
I'm trying to figure out how to build a dynamic form that will do the
following:
Users have 5 forms to chose from using a radio button or drop down
list to select a form. Once they...
|
by: plsHelpMe |
last post by:
How to create dynamic javascript arrays using dojo toolkits
Hello frens,
I am in a big trouble. My objective is:
I am having some categories shown by differnent radio buttons, on the click of...
|
by: Chuck |
last post by:
Hello,
I was wondering if the following scenario can be done using plain
Javascript or AJAX. We have an input text box within a form. As soon
as the user starts typing in character into that...
|
by: John Straumann |
last post by:
Hello all:
I am a CRM Solution Architect so not a .NET expert by any means. I am
working with a customer who needs to modify the Advanced find in CRM which
works as shown here:
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |