Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    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
    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]

  • #3
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    i think the problem is a shortage of div's



    really though, where is the updater called in that form?

  • #4
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 05:36 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •