similar to: Serialize / deserialize an associative array

Displaying 20 results from an estimated 600 matches similar to: "Serialize / deserialize an associative array"

2006 Apr 26
3
DOM events not firing in IE6 with floated divs
Hi All Not strictly Scriptaculous but I came across this whilst trying to implement some Scriptaculous code. I am hoping some XHTML guru out there might be able to shed some light. If you load up the attached file in IE6, you''ll see the events only fire in the middle section of the title bar when your over the border ! - FF1.5 is fine.. Any thoughts / comments appreciated.. Cheers
2006 Feb 16
3
Retrieve a property defined in a css
Hi all, I have a property, defined in an external stylesheet: .my_class { background-color: #FF0000; } I want to retrieve the value of this background-color of the class my_class. How can I do that with prototype/scriptaculous ? Thanks in advance, Nicolas Terray
2006 Apr 10
4
Element.getDimensions() support for IE?
Hey all, I''m not sure if IE can support this, but I''m trying to get the dimensions of an element that has percentages for height/width. In the example code below, I''m trying to get the dimensions for the ''MyCell'' element. Firefox supports Element.getDimensions(''MyCell''), but IE returns 0 for the height & width returned by that
2005 Oct 13
3
Tweaks of Array.prototype
Hi all, I encountered a big problem when trying to use Scriptaculous and Htmlarea in the same page. The Htmlarea code uses a lot of "for (var i in array_variable)" to iterate on array elements. Problem is that prototype.js augments Array.prototype, which then show up in the iteration, severely breaking htmlarea. The easy workaround is for sure to use "for (var i = 0; i <
2005 Sep 22
5
Prototype lib : for-each loops and DontEnum
All I realise that this isn''t strictly the correct place to discuss the prototype lib but being as scriptaculous is dependent on it I thought people might have some opinions. Easier to explain with the example below, copy into a html file and ensure the path to prototype.js is correct. You''ll see the first example prints an extra element "extend" when iterating over
2006 Apr 26
0
RE: DOM events not firing in IE6 with floated di vs
Yea that''s what I am seeing also. Think I got round this before by turning the structure into a table :( Andrew - Thanks for your input.. > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On > Behalf Of Andrew Tetlaw > Sent:
2006 Mar 13
3
Autocompleter that auto scrolls through results..
Hi All Before I investigate further, has anyone implemented an Autocompleter that will auto scroll down / up the results div as the user moves down through the list (using arrow keys) ? Any pointers / thoughts appreciated. Best Matt *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered
2006 Apr 26
12
RE: how to use Effect.BlindUp for resizing a div
var height = someElementReference.offsetHeight; and to set it: someElementReference.style.height = "100"; It is worth saying that offsetHeight and offsetWidth are non-standard compliance. They will give you the total rendering height and this will cause problems in IE since they use a different box model than FireFox. So you will have to do some height juggling in IE if you are using
2006 Jul 20
3
AOP in Prototype / JS
Hey folks I am just investigating using Aspects for logging my main Javascript "interfaces". I don''t believe Prototype has any built in capabilities for this but I just thought I''d check and see how people had tackled this before. I am still getting to grips with core JS so apologies if this is easy or obvious.. I am Googling as we speak also.. Cheers Matt
2006 Jun 16
4
Prototype $$() on arbitary DOM element ?
I am bit confused with this function. Should I be able to pass in a DOM element e.g. someAjaxRequest.responseXML and interrogate it ? Seems not but perhaps I am missing something... TIA Matt
2006 May 09
5
anyone used the new firefox leak monitor?
One of the Mozilla developer released a new extension to detect JS memory leaks: https://addons.mozilla.org/firefox/2490/ If it''s accurate, it might be bad news for Prototype. I have some code using prototype 1.4 with no leaks, but other code with 1.5 leaks on every single bindAsEventListener call, and a bunch of other places. Not sure if it''s just me; I may just be
2006 May 24
5
Ajax.RssReader object
Hi all, I''m happy to announce that I''ve completed the first version of my Ajax.RssReader object. It needs some extra''s, but the basic functionality is now available. You can download it from http://www.sayoutloud.com/javascripts/rssreader.js Usage: function myCallbackFunction( rss ) { alert(rss.channel.title); for(n=0; n<rss.items.length; n++) {
2006 Jun 22
4
ADVICE: Generating unique identifiers for later DB insertion
All, I have an ActiveRecord object that I need to be able to uniquely identify _before_ I actually save the object (I may not end up saving the object based on conditions). This is because I want to use the ID in another context (a file name in the filesystem). Depending on conditions, I may or may not need to do a lot of stuff between the time that I generate the object ID and actually
2008 Jan 20
0
Deserialize JSON post body
I''m doing an HTTP post to my controller with an xml request body: curl -u 53b2c:X -H "Content-Type: text/xml" -v -d "<subscriber><full_name>Alex Egg</full_name><carrier_id>2</ carrier_id><mobile_phone>1234321843</mobile_phone><password>asdf</ password><sub_categories
2007 Mar 28
0
[LLVMdev] "deserialize primitive type 16 (vers=0, pos=15)" with Visual Studio
Seung Jae Lee wrote: > I followed the steps in "Getting Started with the LLVM System using Microsoft Visual Studio" in the document in LLVM page. > > I made hello.c file exactly same shown in the page. > I made hello.bc on UNIX and transferred it to my Windows computer. > And I typed "llc -march=c hello.bc" > (Of course, I downloaded the latest version of LLVM
2007 Mar 28
3
[LLVMdev] "deserialize primitive type 16 (vers=0, pos=15)" with Visual Studio
I followed the steps in "Getting Started with the LLVM System using Microsoft Visual Studio" in the document in LLVM page. I made hello.c file exactly same shown in the page. I made hello.bc on UNIX and transferred it to my Windows computer. And I typed "llc -march=c hello.bc" (Of course, I downloaded the latest version of LLVM and compiled with VS before this.) But my command
2011 Mar 26
2
How to deserialize an array from XML
Hi, to serialize an array to xml we can use: an_array = [ 1, 2, 3] an_array.to_xml But to I can''t find a way to convert back XML to array. I didn''t find a method Array.from_xml like Hash.from_xml. Any ideas? Thanks, Gustavo -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2006 May 19
11
Prototype / Scriptaculous & Dojo
Are these libs compatible ? At the very least I''d like to be able to use Prototype &amp; Dojo ? Thoughts welcome.. Matt _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2006 Jun 23
10
Don''t un-admin the last administrator
I have a User class with a field called admin which is a boolean that determines if the user is or is not an administrator. I want to make it impossible for the last administrator for an account to be removed from the system. I need to protect against this both when deleting a user and when editing a user as you can revoke a user''s administrator privileges via a form. User
2006 May 25
5
rake migrate VERSION=0 doesn''t appear to execute
All, I''ve decided to jump into Migrations before I get too far along on the DB side of things. I already have some tables built, and I went ahead and built the migration that would have created them from scratch, and I made sure that there was a self.down section to drop them. I wanted to verify that I could roll back so I figured I would use rake to drop these pre-existing tables