Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > iframe parent reloading problem in Firefox

Reply
Thread Tools

iframe parent reloading problem in Firefox

 
 
effendi@epitome.com.sg
Guest
Posts: n/a
 
      10-10-2006
I have a form containing an iframe. By default when the form load, the
iframe is set to a blank page.

I have a comments field for user to enter and this is submiited by a
button which sends the comments to a field in anothe form via the
iframe. This form is called comments form. The comments form is set to
submit and it reloads the parents to display the comments.

This works fine in IE. in FF, once the parent is reloaded, it calls the
iframe again and I end up in an endless loops of submits.

I have this code in the onLoad event of the comments form:

function submitForm()
{
var thisForm=document.forms[0]
thisForm.submit()
alert("Your comments have been submitted successfully")
parent.location.reload()
}

How do I solve this? Ideally when the parent reloads, it should be
reloaded with the blank form which I doubt it does in Firefox.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
Reloading an iFrame inside an iFrame KDawg44 Javascript 4 01-22-2009 10:52 AM
Need to pass a value from an IFrame to its parent to its parent PKalos@gmail.com Javascript 0 02-02-2006 10:02 AM
Reloading parent window - iframe question. effendi@epitome.com.sg Javascript 0 03-27-2005 02:50 PM
Reloading a iframe from within that same iframe Gustavo Javascript 0 08-25-2003 02:45 PM



Advertisments