Re: This works in IE but not FF
- From: Martin <martinvalley@xxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 11:26:27 -0700
On Mon, 10 Oct 2005 17:09:04 GMT, Mick White
<mwhite13BOGUS@xxxxxxxxxxxxxxxx> wrote:
>Martin wrote:
>
>> Mick / David -
>>
>> Thanks for the response but I still can't get this thing to submit. I
>> understand what you're saying about the IE-specific syntax. I changed
>> the way the passed-in value is assigned but the script still does not
>> submit in Firefox. Here's what I changed it to:
>>
>> document.getElementById('deleteThis').value=x;
>>
>> I've also changed the .submit statement to this:
>>
>> document.forms['frmDisplay'].submit();
>>
>> but, it didn't seem to make any difference.
>>
>>
>> BTW, here's the statement that calls the DoDelete function:
>>
>> <input type="button" name="delIt" value="Delete This Record"
>> onclick="DoDelete("MyValue");
>
>onclick="DoDelete("MyValue");
>
>Should be something like the following:
>onclick='DoDelete("MyValue");'
Yes, you're correct. That was just a typo that occurred when I wrote
the newsgroup message.
>Without knowing what the function is trying to accomplish, it's
>difficult to say what else may be wrong.
>Mick
Here's the entire function (with the modified statements as suggested
earlier):
function DoDelete(x)
{
var resp = confirm('Delete ' + x + '? - Are You Sure?');
if (resp)
{
document.all['deleteThis'].value=x;
document.forms['frmDisplay'].submit();
}
}
The function executes OK; the problem is that the "submit" does not
occur when the page is being viewed in Firefox.
Any suggestions?
>>
>> where "MyValue" is the data that is used by the server-side script to
>> find the proper record in the database.
>>
>>
>> Can anyone tell me what the problem is here?
>>
>> Thanks again.
>>
>>
>> On Sun, 09 Oct 2005 18:18:08 +0100, David Dorward <dorward@xxxxxxxxx>
>> wrote:
>>
>>
>>>Martin wrote:
>>>
>>>
>>>>This works as expected in IE but it appears that, in FF, the submit is not
>>>>occurring
>>>
>>>> document.all['deleteThis'].value=x;
>>>
>>>http://www.mozilla.org/docs/web-developer/upgrade_2.html#dom_unsupp
>>
>>
.
- References:
- This works in IE but not FF
- From: Martin
- Re: This works in IE but not FF
- From: David Dorward
- Re: This works in IE but not FF
- From: Martin
- Re: This works in IE but not FF
- From: Mick White
- This works in IE but not FF
- Prev by Date: Refresh a page that is displayed because of a history.back()
- Next by Date: Re: page header on print
- Previous by thread: Re: This works in IE but not FF
- Next by thread: Re: This works in IE but not FF
- Index(es):
Loading