Err, fixed is empty? I'd do what Andrew suggested, try a regex. This should work:
return data.substring(/<.*?>/, ""); If not, then repeat the test I said before - use console.log to see what you are returning. On Wed, Nov 21, 2012 at 5:56 PM, Mo Lay <[email protected]> wrote: > > just forgot that i got also : > > my data,,, > > fixed : > > > Mo > > > Hi Ray, > > i did what you mentioned : i got the following : > > > > > > oriignal is <META NAME="ColdFusionMXEdition" CONTENT="ColdFusion > > DevNet Edition - Not for Production Use."> > > > > > > Mo > > > > >Mo, how familiar are you with the JS console? If you do this: > > > > > > dataFilter: function(data, type) > > > { > > >console.log("oriignal is "+data); > > >var temp = data.substring(10, data.length); > > >console.log("fixed is "+temp); > > > return data.substring(10, data.length); > > > } > > > > > >You can see in the console if your substring is correct. Please > > confirm > > >this. > > > > > > > > > > > > > > >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:6003 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
