Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 12.11.2007, 21:23   #1
наивная дурочка
 
TasteMyLipstick's Avatar
 
Join Date: 10 2005
Location: бродяжка я
Age: 33
Posts: 196
Downloads: 0
Uploads: 0
Reputation: 25 | 3
Default return IE6 bug?

Hello everybody,

I wonder if any of you have experienced the same and if so, how did you manage to solve it.

I have a form named 'xmlform' in my document, which has an element named 'xmlcontent'.

I need to submit the form with use of JavaScript.

function submit_form(a) {
document.getElementById('xmlform').xmlcontent.value = a;
document.getElementById('xmlform').submit();
return false;
}

Form code
<form id="xmlform" method="post" action="NewLocation">
<textarea id="xmlcontent" name="xmlcontent" rows="12" cols="70"></textarea>
</form>

Somewhere in the document I have a code

<a href="javascript:void(0)" onclick="return submit_form('lorem ipsum');">

That works well in all browsers, including IE6.

But I need to call the 'submit_form' function from a flash application and I can't call return submit_form('lorem ipsum'), but only submit_form('lorem ipsum'), which makes the code non-workable in IE6.

So, as obviously, IE6 understands only "Function(Values); return Something;" and not just "Function(Values)".

Any ideas?
__________________
Я поняла, любовь - страна, Где каждый человек - притворщик.
Reply With Quote
Old 12.11.2007, 21:49   #2
...overwined...
 
noone's Avatar
 
Join Date: 03 2003
Location: ...tortuga...
Posts: 3,429
Downloads: 3
Uploads: 0
Reputation: 158 | 3
Default

maybe "return Function(Values)"?...
Reply With Quote
Old 12.11.2007, 22:38   #3
наивная дурочка
 
TasteMyLipstick's Avatar
 
Join Date: 10 2005
Location: бродяжка я
Age: 33
Posts: 196
Downloads: 0
Uploads: 0
Reputation: 25 | 3
Default

Quote:
Originally Posted by noone View Post
maybe "return Function(Values)"?...
Not possible in Flash. It's only possible to call a name of the function with variables.
Reply With Quote
Old 13.11.2007, 06:27   #4
*****
 
Michael's Avatar
 
Join Date: 03 2003
Location: Yerevan
Posts: 314
Downloads: 0
Uploads: 0
Reputation: 9 | 0
Default

<a href="javascript:void(0)" onclick="return submit_form('lorem ipsum');">
es im dur@ chi galis

<form onsubmit="return submit_form('lorem ipsum');">
es kogni

ete chogni asa urish tarberakner karajarkem
Der enqan tarberakner kan
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 07:29.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.