AJAX form creation & IE question

J

joeakabloo

I've been working on an AJAX web app, my first one actually.

Run into an issue I'm not sure how to resolve (been googling and
reading trying to find a fix).

Basic premise: Using AJAX to handle calls to PHP scripts, which return
DOM-creating javascript to the browser. This javascript usually creates
forms. No issue with performance, works like a champ in Firefox,
Safari, etc. The problem is IE. A form created via DOM manipulation
doesn't work or submit.

Anyone run into this and know of a resolution? I'd hate to have to
scrap where I'm at.

Thanks in advance
Joe
 
R

Randy Webb

(e-mail address removed) said the following on 4/21/2006 8:36 AM:
I've been working on an AJAX web app, my first one actually.

Run into an issue I'm not sure how to resolve (been googling and
reading trying to find a fix).

Basic premise: Using AJAX to handle calls to PHP scripts, which return
DOM-creating javascript to the browser. This javascript usually creates
forms. No issue with performance, works like a champ in Firefox,
Safari, etc. The problem is IE. A form created via DOM manipulation
doesn't work or submit.

Sure it does, but it depends on how the form is created.
Anyone run into this and know of a resolution? I'd hate to have to
scrap where I'm at.

Post your form creation code or a URL to a sample page.
 
J

joeakabloo

Here's a test page:
http://beta2.lesshype.com/home.php

Usage model:
- Click "Maintenance" on left hand navigation to switch CMS sections
- Onclick style change displays available sections (users is only
option)
- Module selection triggers the ajax call to php script
- php script returns string of javascript commands imploded with "||"
- on successful return, string split by "||", and each resulting string
is run through javascript eval()

Try it in Firefox or safari first to see how it *should* work. I have
it dumping input on sucess currently.

Thans again for any help!
Joe
 
J

joeakabloo

Also, don't get too harsh on my javascript just yet =)

Once I get everything working right, it's off to refactoring to get
things cleaned up substantially. I've never been a big javascript guy,
this project has been a good learning experience for me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top