Re: This works in IE but not FF



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
>>
>>

.


Loading