Advertisement

10.05.2008 at 09:24PM PDT, ID: 23789494 | Points: 500
[x]
Attachment Details

How can i split parameter into few parts

Asked by olivest in JScript, JavaScript, Asynchronous Javascript and XML (AJAX)

Tags: ,

I have a function called "render" and it's parameter "iframename" now i want to split parameter into parts.I have come up with some idea ,but not sure if i'm doing it right.Please have a look at the sourceStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<script language="javascript">
function render (iframename){
var rnd = document.createElement(iframe);
rnd.name = iframename;
return rnd;
}
 
var ifrmname = 'Mylittleframe'
var i1 = 'ifr'
var i2 = 'ame'
var i3 = 'nam'
var i4 = 'e'
 
render.i1+i2+i3+i4 = ifrmname
 
</script>
 
 
[+][-]10.05.2008 at 10:19PM PDT, ID: 22647269

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 02:52AM PDT, ID: 22648429

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 06:46AM PDT, ID: 22649905

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 08:34AM PDT, ID: 22651111

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 09:14AM PDT, ID: 22651621

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628