473,668 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AJAX form creation & IE question

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

Apr 21 '06 #1
3 1776
jo********@gmai l.com 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.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 21 '06 #2
Here's a test page:
http://beta2.lesshype.com/home.php

Usage model:
- Click "Maintenanc e" 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

Apr 23 '06 #3
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.

Apr 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4969
by: d3vkit | last post by:
I have a form on my page, and some javascript which uses ajax to submit the form, and then opens the new page in a div using ajax so there is no refresh. This works fine. But the problem is this: all values seem to pass except what the submit buttons say. I have a preview button and a finish button, and need to check which was pressed. I can add a checkbox for submit, but that's annoying. I'm using mootools for the ajax call, so it might not...
1
9683
by: William Youngman | last post by:
I have a gridview displaying data and would like to use the AJAX dropdown extender so that when the user clicks on a record a dropdown menu will display providing the user with a menu of selections to choose from (yes much like the SharePoint 2007 dropdown menu). I'm having problems dynamically binding the 'TargetControlID' property of the extender control to the record label in the gridview. What I'm doing is - The label's text is the...
0
1099
by: William LaMartin | last post by:
In error, I asked this question in the dotnet.languages.vb group, but this group would be more appropriate. I have just started working with AJAX, and in watching some of the video tutorials at the Microsoft site, I noted that the presenter could simply drop controls on the aspx page and they stuck where he put them (I think he was using the free Visual Web Developer 2005 Express). I recall that this is they way things worked for me in...
5
2274
by: MC | last post by:
Hi, I am googling for a script and can't seem to find code to do this. I can probably write code to save but reloading is an issue. I want to, using ajax, send all form data back to a server and store. A concise function to cycle through the fields and create a string would be great. I can give the user the button to call this "Save Form Data" and store in on the server. I want to give the user a button, and using ajax call to the...
1
1113
by: sweatha | last post by:
Dear Friends This is Sweatha. Right now I am working in the ASP.NET 2005 with VB coding & the back end is SQL SERVER 2000. My dilemma is I have to design a form with 2 DropDownListboxes. I have to load the ‘names of the theater’ on the 1st DropDownListbox & the names of the movie on the second DropDownListbox. That’s why I have created 2 tables named ‘theater’ and ‘movie’ on sql server 2000. The ‘theater’ table consists of 2 fields ...
3
2101
pradeepjain
by: pradeepjain | last post by:
hii guys , I wanna share a very gud ajax validation script with php... Ajax Form Validation - sForm | chains.ch weblog I am very new to ajax .So i wanna small help....i want to improve that script with adding checkbox,radiobutton validation and dropdown list validation . but i am not able to do it.....any one can add his/her code into that ajax script..tht i can have a look at it.. And i have found a small bug in tht script...
16
2040
by: ziycon | last post by:
I have this below code that calls an ajax page my problem is how do i pass the form values into the ajax page? I've tried $_REQUEST but it wont pick them up?? <form method="post" action="ajax-101-null/" enctype="multipart/form-data"> <div class="teamdb_line_wrapper"> <div class="teamdb_line_name">Group Name:</div> <div class="teamdb_line_text"><input type="text" id="name" name="name"...
0
8462
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8893
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8583
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7401
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4205
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2791
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.