473,378 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

function parameter and overwrite : xx.xx.xx

function closebe(FORMULAIRE) {

window.document.FORMULAIRE.submit();

// I tried by this way too: window.document.'+FORMULAIRE+'.submit();

return false;

}

I try to write the form name in the line submit which is passed by parameter
by the function closebe wihout success.
I don't know how to do and and I find nothing in the doc.
If you know how to do, please help me...

Thanks for your help
Chris

Jul 23 '05 #1
1 1015
Chris wrote:
function closebe(FORMULAIRE) {

window.document.FORMULAIRE.submit();

// I tried by this way too: window.document.'+FORMULAIRE+'.submit();

return false;

}
function closebe(formName) {
document[formName].submit();
}

<button onclick="closebe('FORMULAIRE')">

Not the ideal way to do it though.

Mick
I try to write the form name in the line submit which is passed by parameter
by the function closebe wihout success.
I don't know how to do and and I find nothing in the doc.
If you know how to do, please help me...

Thanks for your help
Chris

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: lothar.behrens | last post by:
Hi, I had or even have a problem with functions, that are returning char arrays. I want to translate text that should be internationalized. So the following function definition, I thought,...
1
by: sebastian | last post by:
Hi, I'd like to specialize a template function that contains a template parameter. In Example i have the following function declared: .... template < int i > static stupid_object&...
15
by: Daniel Rudy | last post by:
Hello, Consider the following code: /* resolve_hostname this resolves the hostname into an ip address. */ static void resolve_hostname(char result, const char hostname, const char server) {
3
by: Eugene Mayevski | last post by:
Hello, I am trying to declare in C++ and use in C# a delegate which contains "ref" and "out" parameters. I declare a delegate as: public __delegate void SolFSCreateFileEvent(SolFSStorage*...
5
by: poison.summer | last post by:
Hello I need to write and read a parameter through a file to get communication between two processes. I know how to use fopen, fprintf. But I wonder how can I overwrite the old files. For...
8
by: ais523 | last post by:
I use this function that I wrote for inputting strings. It's meant to return a pointer to mallocated memory holding one input string, or 0 on error. (Personally, I prefer to use 0 to NULL when...
3
by: Kai Kuehne | last post by:
Hi list! It is possible to overwrite only one function with the property-function? x = property(getx, setx, delx, 'doc') I just want to overwrite setx, but when I set the others to None, I...
2
by: hzgt9b | last post by:
I know how to overwrite a function. Normally this is what I would do: function someFunction() { /* orig definition here */ } //later in the execution stream I would do... someFunction = function...
1
by: CFFAN | last post by:
<h3>Wrap Example</h3> <cfset inputText1="Inserts line break at the location of the first white space character (such as a space, tab, or new line) before the specified limit on a line. If a line has...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.