Flex and JSON

Hi All,
I am trying to integrate JSON with my flex application as it
seems to be much faster than using xml via web services . . .
Below is some sample output being returned and I'm unsure how
to access the data in nested arrays. I'm hoping someone can help me
with some insight into breaking up the pieces.
Almost forgot, I'm using the corelib JSON routines to get the
data created by darron schall . . .
I am trying to access the data in the different columns
within the entrydata element. . . .
Thanks for any help you can offfer. . . .
Here is what it looks like in the debugger with the raw text
below . . . .
arr = Array (@709e7b1)
[0...99]
[0] = Object (@7075a11)
@noteid = "4662"
@position = "1"
@siblings = "114"
@unid = "AB7A73759B12E59D8625711B007D05D0"
entrydata = Array (@709efc9)
[0] = Object (@7075a39)
@columnnumber = "0"
@name = "$18"
number = Object (@7075a89)
[1] = Object (@7075ab1)
@columnnumber = "1"
@name = "$17"
text = Object (@7075b01)
[2] = Object (@7075b29)
@columnnumber = "2"
@name = "$12"
text = Object (@7075b79)
[3] = Object (@7075ba1)
[4] = Object (@7075c19)
[5] = Object (@7075c91)
length = 6
"@timestamp": "20080611T145442,97Z",
"@toplevelentries": "115",
"viewentry": [
"@position": "1",
"@unid": "AB7A73759B12E59D8625711B007D05D0",
"@noteid": "4662",
"@siblings": "115",
"entrydata": [
"@columnnumber": "0",
"@name": "$18",
"number": {
"0": "70"
"@columnnumber": "1",
"@name": "$17",
"text": {
"0": "8190 , Agent"
"@columnnumber": "2",
"@name": "$12",
"text": {
"0": ""
"@columnnumber": "3",
"@name": "CompanyName",
"text": {
"0": ""
"@columnnumber": "4",
"@name": "$16",
"text": {
"0": "Agent 8190/PSCDM@PSCDM"
"@columnnumber": "5",
"@name": "$21",
"text": {
"0": "notil4/pscdm"
"@position": "2",
"@unid": "0F8346B29E38AF048625711B007D24FC",
"@noteid": "46A6",
"@siblings": "115",
"entrydata": [
"@columnnumber": "0",
"@name": "$18",
"number": {
"0": "70"
"@columnnumber": "1",
"@name": "$17",
"text": {
"0": "8191 , Agent"
"@columnnumber": "2",
"@name": "$12",
"text": {
"0": "(office) 40191"
"@columnnumber": "3",
"@name": "CompanyName",
"text": {
"0": ""
"@columnnumber": "4",
"@name": "$16",
"text": {
"0": "[email protected]@PSCDM"
"@columnnumber": "5",
"@name": "$21",
"text": {
"0": "notil4/pscdm"
"@columnnumber": "1",
"@name": "$17",
"text": {
"0": "Zapper , Zulu"
"@columnnumber": "2",
"@name": "$12",
"text": {
"0": ""
"@columnnumber": "3",
"@name": "CompanyName",
"text": {
"0": ""
"@columnnumber": "4",
"@name": "$16",
"text": {
"0": "Zulu Zapper/PSCDM@PSCDM"
"@columnnumber": "5",
"@name": "$21",
"text": {
"0": "pscextil01/PSCEXT"
}

Watch the Online Video Course Flex 4.5 and PHP: Creating Data-Driven Applications

Similar Messages

  • Corelib and JSON woes

    I would like to serialize the data contained in an
    ArrayCollection using JSON. Unfortunately, I keep getting a stack
    overflow error when I try and JSON.encode() an array. I tried using
    the ArrayCollection.toArray() and I tried just creating a simple
    array of objects. I can't seem to get it to work.
    If I do this: JSON.encode({prop1:"hello", prop2:"hello"}); it
    works just fine.
    What am I doing wrong? Anyone know?
    BTW, I'm not entirely sure I linked the library up correctly.
    I couldn't find any great examples. What I did was add
    <path-element>../corelib/bin</path-element> to my
    flex-config.xml file and added import
    com.adobe.serialization.json.JSON; to my script.
    PS. I don't have Flex Builder. I'm using the command line
    compiler.

    It turns out that it was a problem with my array. I was
    looping through an XMLList to build the array.
    Here is how I was building it, inside of the result event for
    an HTTPService:
    var xmlList:XMLList = event.result.caption;
    for each ( var xml:XML in xmlList ) {
    myArrayCollection.addItem({id:xml.@id, text:xml.text,
    time:xml.time})
    The JSON encoder was choking on the object's property types
    (I'm not sure what they are, I didn't look. Maybe XML text nodes?).
    By type casting the xml values, everything works fine:
    var xmlList:XMLList = event.result.caption;
    for each ( var xml:XML in xmlList ) {
    myArrayCollection.addItem({id:String(xml.@id),
    text:String(xml.text), time:String(xml.time)})
    Thanks for the compiler argument. That is more flexible than
    editing the configuration file.

  • Flex and ClearCase

    I have ClearCase installed and can access it under Flex (4.0), but I can't add it to the menu.  When I go to Window | Perspective | Customize Perspective I find it on the Command Groups Availability tab.  I check it there and go back to the Tool Bar Visibility tab it will be checked there.  But clicking OK does nothing.  No error warning, but it doesn't work.

    We (my team) went over this 50 times. A lot of the docs talk
    about Flex Data Services, which is a java servlett from Adobe that
    has a lot of wicked functionality. Like, for instance, they can
    propagate changes to other flex apps. There's talk about RPC and
    other proprietary protocols. It's easy to get confused.
    In the end, Flex doesn't care. We decided to write our own
    server in Java and use JSON for the messaging. It just plain works.
    So, yes, imho write your server in C#, it will work. Fire up
    a debugger in Visual Studio, and another in Flex and watch it
    happen.

  • Purchase Order Dashboard using Adobe Flex and AIR

    Hi ,
      I have written a AIR apps for displaying the Purchase Order using OPen source Flex and AIR making Web Service calls to our SAP R3  6.20 Backend System . If anybody would be interested in taking a look at it and expanding the apps please free to post at those forum with the your email ID . I can send the AIR apps along with the source code .
    Thnks
    V

    I have uploaded the zip file containing my code . If anybody is interested can download from this link .
    http://www.mediafire.com/?8mfesdczsuv
    Vinod

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • How do I save a file to a server using flex and coldfusion?

    How do I save a file to a server using flex and coldfusion?
    On the CF side I might need to use this:
    <cffile action="UPLOAD" filefield="Filedata"
    destination="#expandpath('..\somepath)#"
    nameconflict="overwrite">
    And on the flex side I might need to use something like this:
    var sendVars:URLVariables = new URLVariables();
    sendVars.action = "upload";
    var request:URLRequest = new URLRequest();
    request.data = sendVars;
    request.url = _strUploadScript;
    request.method = URLRequestMethod.POST;
    _refUploadFile = new FileReference();
    _refUploadFile = _arrUploadFiles[_numCurrentUpload].data;
    _refUploadFile.addEventListener(ProgressEvent.PROGRESS,
    onUploadProgress);
    _refUploadFile.addEventListener(Event.COMPLETE,
    onUploadComplete);
    _refUploadFile.addEventListener(IOErrorEvent.IO_ERROR,
    onUploadIoError);
    _refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    onUploadSecurityError);
    _refUploadFile.upload(request, "file", false);
    I just don't know how to put it all together in Coldfusion.

    try this...
    http://cf-creations.co.uk/blog/index.cfm/2008/9/20/Flex--File-Upload-Form--Part-One--Build ing-The-Initial-Form

  • Flex and Java on Desktop

    Hi
    We are having this requirement , we want to develop a
    application using flex for adobe AIR runtime which will communicate
    with java in the desktop, we are not having any servers here, so
    flex application want to communicate with java classes with out the
    help of any server so I can't use httpservice, webservice or
    remoting .
    I like to know the ways to communicate from flex 3.0(Adobe
    AIR) to java files (java takes care of splitting PowerPoint
    files and converting it into serious of jpeg files, and
    creating ppt files from the objects returned from flex ).
    Is there any other way to communicate form between flex and
    java in the desktop ??? please give inputs
    Thiru

    Hi,
    you could use XMLSocket or Socket classes depending on the
    type of communication you want to stablish.
    I have been testing this for a while although not for a
    project.
    However my impression is that you need to install the AIR app
    which is self-extracted and installed, but in second hand, you have
    to install the Java app, that acts as a server, and it must be
    executed every time your AIR app is, and the other way around.
    Untill now I haven't got any idea on doing this without too
    much work, but you can take a look at the Merapi project.
    Manu

  • Sharing code between Flex and AIR versions using library project

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

  • I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

    I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?

    Thanks, Flex harUI, for the direction in regards to isolating build changes. That aside (still working on it), can you offer any direction in regards to my original question on SDK and AIR compatibility? I'm specifically looking for a version compatibility mapping or anything that definitively states, "Flex SDK x.y.z works with the following versions of AIR". This information is crucial for us in order to more specifically plan our own roadmap built upon these two frameworks as we consider both existing installations of our software and future distributions.

  • Flex and BlazeDS Compile for Deployement

    Hi,
    I've been following the Flex + BlazeDS tutorial on the Message Service from adobe to start learning working with blazeds. Everything worked out great on the local server of course but I got stuck when it came to moving the files to a remote server. I've looked around quite a lot and found out it's because the compiler feeds the services-config.xml upon compile and at lease in my case won't take and external file. The solution everyone has been posting on the net is writing the channels in actionscript within flex and feedin it the valid endpoint that would be found in the xml configuration file. That's all nice and dandy but everyone has been talking and showing examples of this being done for RemoteObject and I haven't managed to find any examples for Messaging.
    Can anyone help me out with an example on how to deploy my application to a server? (either by coding the channels in AS or otherwise) The application itself is pretty basic...
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="200" minHeight="480" creationComplete="consumer.subscribe()" width="250" currentState="EnterName">
    <fx:Script>
      <![CDATA[
       import mx.messaging.events.MessageEvent;
       import spark.events.TextOperationEvent;
      ]]>
    </fx:Script>
    <s:states>
      <s:State name="Chat"/>
      <s:State name="EnterName"/>
    </s:states>
    <fx:Declarations>
      <s:Producer id="producer" destination="chat"/>
      <s:Consumer id="consumer" destination="chat" message="messageHandler(event.message)"/>
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       import mx.messaging.messages.AsyncMessage;
       import mx.messaging.messages.IMessage;
       private function send():void{
        var message:IMessage = new AsyncMessage();
        message.body.chatMessage = user.text + ":" + " " + msg.text;
        producer.send(message);
        msg.text = "";
       private function messageHandler(message:IMessage):void{
        log.text += message.body.chatMessage + "\n";
      ]]>
    </fx:Script>
    <s:Panel title="Chat" width="100%" height="100%">
      <s:TextArea id="log" height="377" x="10" y="10" width="228" includeIn="Chat"/>
      <mx:ControlBar width="246" height="52" x="1" y="395" includeIn="Chat">
       <s:TextInput id="msg" width="100%" enter="send()"/>
       <s:Button label="Send B" click="send()"/>
       </mx:ControlBar>
      <s:TextInput includeIn="EnterName" x="60" y="177" id="user" />
      <s:Button includeIn="EnterName" x="87" y="207" label="Start Chat" id="chat" click="chat_clickHandler(event)"/>
      <s:Label includeIn="EnterName" x="57" y="157" text="Please Enter Your Name"/>
      </s:Panel>
    </s:Applicatio>
    And besides that in the messaging-config.xml file on the server a destination with the id="chat" is created and that's it.
    Any help or pointing in the right direction will be greatly appreciated.
    Thank you,
    Nick

    Update:
    Ok...I finally figured out that by replacing the tokens in the services-config.xml file with the physical address of the server everything works.
    Anyway...this means the application needs to be compiled everytime it is moved to a new server or even a different folder on the same server for that matter. Is there any way to pass the {server.name}, {server.port} and {context.root} tokens to the application at runtime for messaging?
    Thanks,

  • Getting Started with Flex and Java RPC for Free?

    Good Morning,
    Please forgive me if this is the wrong place to post- I'm
    just having trouble wrapping my head around what is and what isn't
    available for free in the Adobe Flex world.
    I've been working on an application for the last few months
    using Open Laszlo (
    http://www.openlaszlo.org/),
    but I've been running into frustrations with their lack of
    up-to-date documentation, and I've found it difficult to bring new
    people into the project, since the set of users who know it is so
    small.
    While I do like that I can compile to DHTML, that's not
    enough to hold me there.
    I've been looking into Adobe Flex, and it seems like a good
    alternative- I'm comfortable paying $500 for the IDE-
    I use Eclipse currently, so having a plugin for it sounds
    ideal. That said, when I look into ways to talk to a Java backend,
    everything points to Flex Data services, which is now part of some
    larger package costing tens of thousands of dollars.
    I don't need advanced messages, or data synchronization, as
    nice as it would be.. All I really need is the ability to call a
    Java method, and get an object back, which I can then work with in
    Flex.
    I see the forum message that asks
    "How
    do I 'do' Flash for free?, but this only talks about RPC very
    broadly. Given that the message is from over a year ago, I thought
    it would be better form to start a new topic, than replying to it.
    Can someone explain to me what components I'd need, both on
    the client side and the server side?
    Is there a set of manuals that explain how to do Flex RPC
    from Java?
    Can Flex compile to any versions of flash earlier than 9?
    (Flash 6/7 is still in wide deployment)
    Do I want to start using Flex 2, or Flex 3? Are the
    components compatible? Will the F3 docs be ready?
    Finally, where can I purchase the Charting components? The
    ability to create charts such as
    this
    overcome a decent price barrier.
    Thank you for any insight you can offer, and direction you
    can provide.

    quote:
    Originally posted by:
    cunparis2day
    On our project they made a proxy in java where they passed in
    the name of the method as a string, and an array of objects for the
    parameters. The proxy then sent the request via RMI and returned
    the result. Kind of a hack but they say it worked (I wasn't here
    when they did it).
    What did the RMI talk to? Are there docs on this?
    quote:
    Another approach, generate the proxy from the java
    interfaces. Or better yet, generate it dynamically with CGLIB.
    quote:
    Finally, I'm investigating using Mule for the integration.
    Let me know what you think about those suggestions.
    We have our own messages, but how would MULE translate them
    to Flex?
    You know quite a bit more about this, can you take a step
    back, and explain?

  • Dynamic value objects in flex and coldfusion 9

    I'm writing a program for a company that does registrations for conventions and trade-shows.  The problem I'm having is that each different client wants to store different data for each show.  Most of the data is the same (attendee's name, address, etc...), but each show has some customizations that it wants to have...  So each database for each show is going to be different...
    Right now, the only way I know how to transfer data from Flex to ColdFusion is via a Value Object.  (Well, the only good way to do it, that is.)  My problem comes when a client wants a particular database customized.  I have MANY questions about this...
    1) How do I tell my Value Object what fields we've added to or changed in the database without re-writing the entire VO (in both the .AS and .CFC files) and re-compiling my program?  In other words, I need a dynamic VO that changes automatcially with the database.
    2) If there is a way to dynamically create a VO in Flex (and from a few blog posts I've seen, it seems there is a way), how do I tell CF9 what the structure of that dynamically-created VO is?  Without re-writing a bunch of .CFC files every time I add or change a field in the database, that is...
    3) How do I reference the dynamically-created fields in my Flex program?  Right now, for example, I can define a variable called attendeeInfo as type attendeeInfoVO, and then reference things like attendeeInfo.first_name, attendeeInfo.last_name, etc...  How do I reference a field programmatcially when I don't know what it's going to be called beforehand?
    4) How do I make my program display/modify those dynamically-created fields?  Right now, using the attendeeInfo example above, I can create a TextInput with an id="firstNameInput" and just say firstNameInput.text = "{attendeeInfo.first_name}".  That won't work when I have no clue how many dynamically-created fields there are, or even what kind of data they're going to store...  How do I deal with this?
    5) Is there something other than VOs that would fit this situation better?  Am I limiting myself by using VOs in the first place?  Is it just plain impossible to do this with VOs?  And if so, what are my alternatives?  I need a structured object that can be passed around with a single reference -- I absolutely DO NOT want to pass a bunch of references to a bunch of different variables -- that's why I used VOs from the very beginning.
    6) Can I simply PAY someone at Adobe for one-on-one help here?  Do they have experts that you can "buy" for a few hours?  What's the charge for that, if such a thing is available?  Or, is this problem well-explained somewhere on the Web, and I just haven't found it yet?
    I'm very confused here, and it seems like I might have to re-write a ton of code, which I'm not looking forward to...  Ugh...  I appreciate any help you can give me...
    Thanks,
    Laurence MacNeill
    Mableton, Georgia, USA

    This blog post is pretty close to what I want:
    http://justinjmoses.wordpress.com/2008/10/10/flex-dynamic-bindable-value-objects/
    So there are the dynamic value objects I was looking for.  But the blog-poster is using LINQ and .Net 3.5.  I'm using ColdFusion9.
    So, how do I get ColdFusion9 to deal with that?  How do you get CF9 to recognize the fact that you've changed the VO, and deal with it appropriately?
    Thanks,
    L.

  • Developer-Online New Tutorial Released: Create a Flickr gallery using jquery and JSON

    Create a Flickr gallery using jquery and JSON
    Hello everyone, In this tutorial I'll show how is simple to build your Flickr photo gallery using jQuery framework and JSON. We'll see how to setup thumbnail's numbers, convert your RSS Flickr in a JOSOn format and display theme. Thank You for your attention!
    Posted on:                                       2010-01-11 10:20:48
    Author: patrizio Quatrini
    Best Regards
    Waleed Barakat

    Heya,
    When I first read your post I originally thought you were posting a tutorial about whether a chosen username has already been resigtered or not on the signup page like this tutorial:
    http://DwFAQ.info/signup_demo.php
    Spry Check Username Availability
    Date Created: Sunday, July 5, 2009 2:29 PM
    Then after looking at the page you've linked to and trying to understand the objective of the tutorial I've noticed that you are talking about something like this:
    http://DwFAQ.info/home.php?id=7
    Spry Search
    Date Created: Sunday, March 1, 2009 8:51 PM
    It's pretty simple to do with the link I've referenced. Simply create your database with populated tables, use the mentioned script to convert the database data into xml syntax, then enter your dynamic database script as the location of the xmlDataSet in the spry page linked.
    View source on this page which shows the non-destructive filter in action to see how it's done! You can also spice it up a little for products, etc. by using this method. The key is to create a dynamic xml syntax from your database and then use the dynamic xml script location as your xmlDataSet in the search page.
    I have an example of the auto suggest search on my homepage http://DwFAQ.info
    On the top-left side of the page click on the link that says Search Tutorials to reveal the search form. Then start typing characters into the search box to see the entries instantly filter according to the characters that are typed. You can also filter further by clicking on the category checkboxes to filter by keywords AND category.
    You can view the source code on my homepage to see the location of the dynamic xml syntax referenced as the xmlDataSet location and how it was implemented into the site.

  • Flex and HTML display shift in Safari in Mac OS

    When a popup is displayed in Flex app, the Flex display gets shifted down in Safari in Mac OS alone. However, even if the display is shifted down, the controls seem to be in the correct position. For example, for clicking a button, the cursor has to be some pixels above the shown display. Not only the Flex display shifts down. HTML Links display also shifts down along with Flex and Links are clickable some pixels above the display.
    The problem happens only while triggering the Flex popup display in long flex screen. On a Flex screen within the browser height, with the same actionscript and Javacsript code, there is no problem.
    This works fine in all other browsers including Safari in windows.
    Has anyone faced this scenario? Any help will be highly appreciated.
    For the popup to be displayed in center of viewable area, the following code is used.
    callLater(SMBObjectUtil.changePosition,args);
    In SMBObjectUtil.as file,
    public static function changePosition(x:int, y:int, obj:UIComponent):void {
         var yPos:int = ExternalInterface.call("findScrollTop");      var winHeight:int = ExternalInterface.call("getWindowHeight");
         var appHeight:int = Application.application.height;
         var objectWidth:int = obj.width;
         var objectHeight:int = obj.height;
         var calculatedX:int = 0;
         var calculatedY:int = 0;
         if(Application.application.width>obj.width) {
              try {               calculatedX = (Application.application.width - obj.width)/2;
                   if(yPos <= 0){                    calculatedY = ((winHeight-objectHeight)/2-100)>0?(winHeight-objectHeight)/2-100:50;
    else if(yPos<=(appHeight-winHeight)){                    calculatedY = (((winHeight-objectHeight)/2)+yPos-100)>0?((winHeight-objectHeight)/2)+yPos-100:50;
    else if(yPos>(appHeight-winHeight)){                    calculatedY = appHeight - objectHeight - (winHeight-objectHeight)/2;
              catch(e:Error){          }
         }else {
    obj.x = calculatedX;
    obj.y = calculatedY;
    Javascript functions used are:
    function findScrollTop()
      var ScrollTop = document.body.scrollTop;
      if (ScrollTop == 0)
       if (window.pageYOffset)
        ScrollTop = window.pageYOffset;
       else
        ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
      return ScrollTop;
    function getWindowHeight()
      var y = 0;
      if (self.innerHeight) {
       y = self.innerHeight;
      } else if (document.documentElement && document.documentElement.clientHeight) {
       y = document.documentElement.clientHeight;
      } else if (document.body) {
       y = document.body.clientHeight;
      return y;

    Found a fix for this. CallLater() was giving the problem in Safari. Once I removed CallLater and directly called my function, the problem was resolved.

  • Which is better as UI technology among Flex and Oracle ADF for oracle SOA suit

    We have one application which is using oracle’s Service oriented Architecture (SoA) suite. Currently, there is a debate on the technology for UI in the new architecture that will be rich, easy to maintain, scalable and integrates well with SOA suite. We have two options one is Flex and other is Oracle ADF. UI part contains number of graphs, tabular and charts data. So it would be great if any one suggest which technolgy will be better for UI point of view. Thanks in advance.

    Hi,
    I looked at the demo
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF112/ADF112.html
    It's interesting.
    However, I would point out two things:
    1- Before Oracle, Sun failed with UI technologies: there was AWT then Swing then Java FX. None of them was a star. The only place where Sun really won the UI war is the Bluray Disc format.
    2- About half of the RIA in the financial/banking industry are developed with Flex, the other half is developed with Silverlight / WPF. HTML 5 is being taken up by some, but you still end up with the usual problem of having to pick up an AJAX framework, and get tied to a vendor anyway in the end. Never heard about any project developed with Oracle ADF yet.

Maybe you are looking for

  • How do I disable the "New Tab opened" button that appears for 3secs when I open a new tab?

    Dear Helpful Open Source people. I would like to disable the "New Tab opened" that appears for 3secs when I open a new tab? I usually open tabs from a search engine's results page expecting the links to be of varying quality. This means that it is ef

  • How can i instal blackberry persian on my z10

    hi developer i have a question from you how can i changing my blackberry z10 keyboard on arabic to persian without changing my os version . my os version is 10.2.1.3442 and i want instal persian keyboard without changing my os version how can i do a

  • Can I work from home?

    Hi I have a Mac at home and a fast internet connection. We have a LAN at work where my (work) Mac and a file server plus a couple of digital printer reside. Where do I start to access the LAN from home? Are there any tutorials/advice resources on the

  • Reset Text Wrap and Object Placement defaults?

    Using Pages 5.5.2 (w Yosemite). Wondering if there's any way to set a default preference for the Text Wrap and Object Placement parameters in the Format > Arrange tab?  For example, more often than not I need to have Text Wrap set to "None", rather t

  • Adding Parameters to a generated URL

    Hi All, We have a client requirement to send email to a set of users with a link to a specific page. When the user clicks on the link, it should ask for the login, and once the user enters the credentials, it should take the user to the specific page