Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-31-2008, 08:14 PM   PM User | #1
Unoriginal
New to the CF scene

 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unoriginal is an unknown quantity at this point
Prototype Ajax Problem

I am using the latest prototype 6.0.2.

I have a simple page which pulls up a popup Div loading by ajax.updater

It works fine in Firefox but not in IE. The page that is to popup has a <form> in it. When I take out the <form>, it loads fine in IE.

here is the page simplified...
<body>
<form id="frmEmail" >
<div>
<div>Your Name:</div>
<div> <input type="text" id="txtName" style="" /></div>
<div>Your Email:</div>
<div><input type="text" id="txtEmail" style="" /> </div>
<div>Please type in your friends' email addresses: </div>
<div> <input type="text" id="txtFriendEmail1" style="" /></div>
<div> <input type="text" id="txtFriendEmail2" style="" /></div>
<div> <input type="text" id="txtFriendEmail3" style="" /></div>
<div>Add a custom message: </div>
<div> <textarea name="message" cols="30" rows="4" id="message"></textarea></div>
<div><input type="button" value="Send" /> </div>
</div>
</form>
</body>


here is the script code:
function getHTML(divID, url)
{
var myAjax = new Ajax.Updater(divID, url, {method: 'get', evalScripts: true});
}

Any ideas .. I tried googling but havent ran into anyone having a similar problem
Unoriginal is offline   Reply With Quote
Old 08-01-2008, 02:23 AM   PM User | #2
A1ien51
Senior Coder

 
A1ien51's Avatar
 
Join Date: Jun 2002
Location: Between DC and Baltimore In a Cave
Posts: 2,717
Thanks: 1
Thanked 94 Times in 88 Posts
A1ien51 will become famous soon enough
If you use Fiddler [http://www.fiddlertool.com/fiddler/] to see if a request is going out and coming back. Are you getting an error?

Eric
__________________
Tech Author [Ajax In Action, JavaScript: Visual Blueprint]
A1ien51 is offline   Reply With Quote
Old 08-01-2008, 03:21 PM   PM User | #3
ohgod
Regular Coder

 
ohgod's Avatar
 
Join Date: Jun 2008
Location: Ohio
Posts: 579
Thanks: 6
Thanked 69 Times in 69 Posts
ohgod is on a distinguished road
i think the problem is a shortage of div's



really though, where is the updater called in that form?
ohgod is offline   Reply With Quote
Old 08-21-2008, 04:32 PM   PM User | #4
Unoriginal
New to the CF scene

 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unoriginal is an unknown quantity at this point
i used fiddler and there are no errors. I still havent figured out why the form tag on the page is preventing IE to load the page into the div. Has anyone successfully used asp.net and prototype ajax.updater

Last edited by Unoriginal; 08-21-2008 at 04:36 PM..
Unoriginal is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 11:02 PM.


Advertisement
Log in to turn off these ads.