AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Nov 12, 2007, 20:23   #1
наивная дурочка
 
TasteMyLipstick's Avatar
 
Join Date: Oct 2005
Location: бродяжка я
Posts: 197
Rep Power: 3
Reputation: 35
Send a message via ICQ to TasteMyLipstick
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.valu e = 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?
__________________
Я поняла, любовь - страна, Где каждый человек - притворщик.
TasteMyLipstick is offline   Reply With Quote Quote selected
Old Nov 12, 2007, 20:49   #2
...overwined...
 
noone's Avatar
 
Join Date: Mar 2003
Location: ...tortuga...
Posts: 3,394
Rep Power: 6
Reputation: 143
maybe "return Function(Values)"?...
noone is offline   Reply With Quote Quote selected
Old Nov 12, 2007, 21:38   #3
наивная дурочка
 
TasteMyLipstick's Avatar
 
Join Date: Oct 2005
Location: бродяжка я
Posts: 197
Rep Power: 3
Reputation: 35
Send a message via ICQ to TasteMyLipstick
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.
__________________
Я поняла, любовь - страна, Где каждый человек - притворщик.
TasteMyLipstick is offline   Reply With Quote Quote selected
Old Nov 13, 2007, 05:27   #4
*****
 
Michael's Avatar
 
Join Date: Mar 2003
Location: Yerevan
Posts: 310
Rep Power: 6
Reputation: 14
Send a message via ICQ to Michael
<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
__________________
Men's eyes were made to look, and let them gaze.
Michael is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Блог или кто что заметил 8 Dionysus Uncensored 15225 Nov 8, 2006 08:30
JESUS WILL RETURN mikal General 65 Jul 16, 2005 14:19
[java] Read return value of JavaScript greka Web Development 0 Jun 18, 2004 13:49
The Kings' Cross - The Return Of The King Dionysus MusiCity 3 Jan 23, 2004 17:55
RETURN FIRE ....Read PLZ Gamers Yaki Games 2 Jun 9, 2002 02:09


All times are GMT. The time now is 05:26.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link