Ask a Question related to Dreamweaver AppDev, Design and Development.
-
-D- #1
javascript split function
I'm using the split method to put values into an array. When I pass in the
argument to the function and then use the split method, the delimiters (commas)
are not removed. I'm not sure why? I was using an alert to show the values
before and after the split as a test and in both alerts, the commas are still
there? So, the split isn't parsing out the commas? function
CheckForm(LoopA,LoopB,LoopC) { alert(LoopA); alert(LoopB); alert(LoopC);
ArrLoopA = LoopA.split(','); ArrLoopB = LoopB.split(','); ArrLoopC =
LoopC.split(','); alert(ArrLoopA); alert(ArrLoopB); alert(ArrLoopC); Any
ideas what might I'm missing? I'm passing in the arguments to the function as
follows: onClick=' return CheckForm('<%=strAlloList%>', '<%=strStaffList%>',
'<%=strFundList%>')'> Thanks, -D-
-D- Guest
-
Split View Resize Panels Via Javascript
using Javascript is there a way to resize the panels in split view? make one view larger than the other? -
#39838 [NEW]: split function correctly
From: lu at icst dot org dot tw Operating system: Fedora Core 3 and 6 PHP version: 5.2.0 PHP Bug Type: Unknown/Other Function... -
#39838 [Com]: split function correctly
ID: 39838 Comment by: judas dot iscariote at gmail dot com Reported By: lu at icst dot org dot tw Status: Open... -
Need help on split-function
Hi All, What I want to is using a string as PATTERN in a split function. This makes it possible for me to change the PATTERN on one place in my... -
Problem with split function
Hi all, I am having a problem with the split function. Here is my code: $_ = "123 a 456 b 789 c"; my @words = split /+/, $_; print... -
bthouin #2
Re: javascript split function
-D- wrote:
If you use: alert(ArrLoopA[0]) instead of: alert(ArrLoopA), you will see> I'm using the split method to put values into an array. When I pass in the
> argument to the function and then use the split method, the delimiters (commas)
> are not removed. I'm not sure why? I was using an alert to show the values
> before and after the split as a test and in both alerts, the commas are still
> there? So, the split isn't parsing out the commas? function
> CheckForm(LoopA,LoopB,LoopC) { alert(LoopA); alert(LoopB); alert(LoopC);
> ArrLoopA = LoopA.split(','); ArrLoopB = LoopB.split(','); ArrLoopC =
> LoopC.split(','); alert(ArrLoopA); alert(ArrLoopB); alert(ArrLoopC); Any
> ideas what might I'm missing? I'm passing in the arguments to the function as
> follows: onClick=' return CheckForm('<%=strAlloList%>', '<%=strStaffList%>',
> '<%=strFundList%>')'> Thanks, -D-
>
the array values. And of course you should use also ArrLoopA[i] with i
going from 0 to (ArrLoopA.length-1) to retrieve the individual values...
HTH
Bernard
bthouin Guest



Reply With Quote

