OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Passing an array of objects argument in an eval statement
This page's ID:
26727
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Well I guess what I'm trying to do is *ahem* abstract out some functionality (yes I know JS does not actally support this), but I'm making a component of sorts and I've added some extra non-standard not in the DTD tags into the mix. (yes, a-list-apart also said these were uncharted waters...) but the article they had on it was about the only way I could do what I needed to do. I added some new attributes (that I made for my own purposes) to an <input ..> tag (textbox), these specify two functions which (right or wrong) have to be called by eval statements, when communicating back with the server. The first JS function uses DWR (Direct Web Remoting)(A.K.A. Ajax) to call the server, and this in-turn calls the server returns the data and calls the second JS function (which is more or less the abstract one) passing the data to it. However on the second function call that recieves the data has a bit of functionality that I'd like to encapsulate so that the programmer using the component doesn't have to worry about writting that code himself. And this is why I need to pass the array I described above into an eval statement. So that the programmer doesn't have the freedom to bother with how the component works, but does have the freedom to use the data returned from the server however he/she sees fit. [IMG]http://i9.photobucket.com/albums/a58/Maskkkk/maskkkkaroni.png[/IMG] - AIM: MASKKKK [url=http://nickciske.com/tools/binary.php] 01001101011000010111001101101011011010110110101101101011[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »