Requesting new methods for Spry.Utils. Notifier

I'm building a quiz application with Spry that is based on a
frameset. The main DataSet is contained in the frameset page, and
it swaps in different question type templates in a child frame.
Each of these templates creates NestedXMLDataSets and has Spry
Regions.
When re-using the same template twice in a row, IE will throw
a freed script error, because the objects held by the observer in
the main frame are still in memory, but the page they came from is
gone. (Firefox will work if you remove the Nested Data Set from the
observer list, apparently replacing a spry region with itself is
ok. I'm assuming since the new region is identical to the old one,
the newly loaded page occupies the same space in memory as the old
one, so everything just works as if it were 'new'.)
The solution, therefore, is to remove any observers from the
DataSet in the main frame, that live in the templates in the child
frames.
However, since the region is assigned as an observer
automatically, I have no way of knowing which position it occupies
in the observers array, or how to reference it. So, in order to
remove it, I have to access parent.myDS.observers directly, and
remove all observers but the first. (Knowing that the first
observer on the list is one I manually added and need to persist.)
Bascially, what we need is a method to ID and remove regions
from the observer list, in those cases where a region (and page
containing it) are going to be destroyed but the data set it
populates from persists.
e.g. <spry:regionid="foo">
Also, since there are other objects like Nested Data Sets
that automatically get added to the observer list, it would be nice
to be able to inspect the list.
e.g.: myDataSet.getObservers()
Sorry if this doesn't make much sense, I'm on a lack of sleep
and burned out from debugging at the moment. I'd love to help the
Spry team continue to refine the product because I think it's
great, and in practice, for the most part, it's made developing
RIA's such as e-Learning applications that have to rely on static
XML much much easier.

PaulColombo wrote:
> Bascially, what we need is a method to ID and remove
regions from the observer
> list, in those cases where a region (and page containing
it) are going to be
> destroyed but the data set it populates from persists.
> e.g. <spry:regionid="foo">
You don't need to know the index in the observers array to be
able to remove one, you do how ever need to have a reference to the
object doing the observing to be able to remove it. Each data set
inherits the methods of the Notifier object, so your dataset has a
removeObserver method, so pass in the object doing the observation,
like so:
myDataSet.removeObserver(observerObj);
I've not delved too much into the datasets, so with auto
added observers, not quite sure what the observer is that needs to
get removed, but if you can figure it out you can use
removeObserver();
> Also, since there are other objects like Nested Data
Sets that automatically
> get added to the observer list, it would be nice to be
able to inspect the list.
>
> e.g.: myDataSet.getObservers()
You already have direct access to the observers array with
myDataSet.observers, what do you get by having a method rather
direct access? Regardless, you can add that method yourself to the
Notifier object and it'll get automatically added to your datasets:
Spry.Utils.Notifier.prototype.getObservers =
function(observer)
return this.observers;
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert

Similar Messages

  • Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now e

    Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now even the older "option+letter" doesn't work in most places.

    Chrome doesn't support the new accent/diacritics/macron chooser. I'm not sure about other browsers such as Firefox. You can use the old Option+letter combination that Doug suggested. Hopefully updates will solve these little incompatibilities shortly.
    Neill

  • Spry:state="loading" for Spry.Utils.updateContent

    It would be very handy to be able to use something like
    spry:state="loading" for Spry.Utils.updateContent. Right now it
    seems you can only use the :state="loading" for regions. Makes
    sense but being able to activate the loading div while update
    content is running would also be very handy. To that matter for
    waiting for tabs to load, etc.

    Cool. Thanks for the reference, Andrew!

  • Is There a way to request new features for the next upgrade?

    I want to be able to make custom tones for receiving text messages and emails... Blackberries can do this and I would like to be able to have my Iphone do this also.
    Am I the only one that wants this or are there others?
    Is there a place that we can request new features for an upcoming software upgrade?
    thanks alot

    You can request features via this form:
    http://www.apple.com/feedback/iphone.html
    Cheers,
    Leann

  • Unable to request new password for Jabber free

    A user-account for a colleague of mine does not seem to work any more, he is unable to log in to the account and unable to request new password for the account as well.
    When attempting to request a new password, he receives this message: 
    Invalid email address or Jabber Video address
    This happens wether he uses the jabber account name, or his email adress.
    If he tries to create a new account using his email adress, he is informed that the adress have allready been registered.
    The account appeared to work fine untill last week.
    What might cause this, and how can one resolve this issue?

    HI
    Check this link:
    How to get SAP B1 Lincence key
    hope it will help you...

  • Request, new firmware for nokia N70, pls

    I'm requesting for a new firmware for Nokia N70, nokia n70 is a tough fighter. Competetive... But it needs new improvments.
    -fast loading when you access the menu
    -enhanced camera
    -faster internet browsing
    -listen to radio without headset
    -using the flash of the camera as Flashlight
    -needs sms accelerator, for faster sending of text messages.
    and other cool stuff, improvments, upgrades...
    hope you read this guys. do something....
    tHanks!!!
    I have the latest firmware, V5.0705.3.0.1
    I'm waiting for the next firmware for Nokia N70...

    The latest official version is still v4.14. No further official releases yet.

  • Requesting new vbios for N780 TF 3GD5/OC

    Requesting new bios due to UEFI.
    Getting "Sorry, you are not allowed to post external links." So no clickable links.
    N780 TF 3GD5/OC
    S/N: 602-V298-06SB1310027779
    Picture of sticker:
    i.imgur.com/yeKrKiF.jpg
    Current BIOS dump:
    dl.dropboxusercontent.com/u/1219182/Sormus_GK110.rom
    Additional screenshot:
    i.imgur.com/ve25eZK.gif

    Use the attached.
    Decompress the provided .rar archive with Winrar: http://www.rarlab.com/download.htm
    Then flash the vbios file with Nvflash for dos: http://www.guru3d.com/files_details/nvflash_download.html
    To do so rename the included file to .rom and create a dos bootstick (https://forum-en.msi.com/index.php?topic=165175.0)
    Put nvflash and the vbios file on it and boot from the stick. Then type nvflash -4 -5 -6 gop.rom (if renamed vbios that way) and hit enter. Confirm the questions and let the tool flash.

  • Using the Function:: Method for Spry Processing

    i have read the relevant article (
    http://labs.adobe.com/technologies/spry/samples/data_region/Function_colon.html)
    and have successfully managed to format as currency my price data
    in my spry table.
    what syntax do i need to format dates ? and is there a
    general reference i can look at for creating similar finctions ?
    regards

    There isn't a general reference, mainly because there are a
    wide variety of date formats ... but I suppose any sample would be
    better than none.
    In any case, what is your date format in your data, and what
    is the format you want it to look like in the output?
    An example would be:
    function FormattedDate(region, lookupFunc)
    // Get the date column which is in the format "20090120"
    // and format it so it looks like "01/20/2009".
    return
    lookupFunc("{date}").replace(/(\d\d\d\d)(\d\d)(\d\d)/, "$2/$3/$1");
    <div
    spry:region="ds1">{function::FormattedDate}</div>
    --== Kin ==--

  • I'd like to suggest/request new option for Touch Pad functionality

    Hi,
    My name is Shahar. I am a HW eng and I've been using T61 for the past 3 years. It's my work laptop, but I am happy with it. Its way better than my previous cra^#@%#^%!!! Laptop.
    I'd like to suggest / request a simple addition to the touchpad driver from the development guys in lenovo. My suggestion is about the usage of the touch-pad.
    Currently, the touch pad works like this: I drag my finger on the pad from point (x0,y0) to point (X1,Y1) thus "drawing" a vector , and the pointer moves in the same angle of my vector. The length of that movement is of course depends also on my touch-pad driver configuration.
    What I really, really, really, really want is to not have to drag my finger. I wish the touch pad will work in the following manner:
    Lets define a virtual middle of the touch pad as point (Xm,Ym), and were I touch the pad as point (Xt,Yt).
    I want the pointer to move according to the angle of a vector starting a point (Xm,Ym) and pointing to (Xt,Yt), and I want it to move in a speed which is relative to the distance between the points. Point (Xm,Ym) is where the pointer is now, and point (Xt,Yt) is the direction I want the pointer to move. The pointer should move as long as I keep touching the pad, and stop when I remove my finger.
    That's all .
    I would have added such an option to the touchpad driver myself if I had the means....
    Is this feasible ?
    Maybe I can get info on how to communicate with the touchpad ?
    Thanks,
    Shahar.

    I have a couple things I would add as well:
    "An option to link/ unlink ALL selected mask layers, instead of having to go down manually doing it on each masked layer." that wouldve saved me literally an hour at work today.
    My request is to have a "liquify all" option where you can essentially easily batch all selected masks or layers and apply a saved mesh without having to do it manually.
    As a person who professionally uses photoshop for 8 hrs a day every day this feature would save me an easy half hour on many files.  It also would cut down on the "mistakes" we make by missing  one random but essential mask.
    One more suggestion is to enable "warp" in transform to work with the "transform again" command as it is the only one of the forms of transformations that does not allow it.
    Thanks for reading
    Steph

  • Requesting New BIOS for N560GTX-Ti Twin Frozr II

    Hello, forgive me if i'm a bit slow, but this stuff is all a bit new to me. I've read that a lot of crash issues with this card (the ones i seem to be having) are video BIOS related?
    So I figured I'd give this a try.
    Card Serial Number: 602 - V238 - 370B1203014155
    GPUZ info:
    My current BIOS i have a mediafire link, but it wont allow me to post it, if you have another way for me to do so I'll get right on it.
    EDIT: nvm i found it here when i tried to upload it from GPUZ: http: //www.techpowerup.com/vgabios/120003/msi-gtx560ti-1024-120222.html
    Thank you in advance for any assistance

    Quote from: Svet on 28-April-14, 20:51:46
    how do you know that's your vbios?
    opposite. in very rare cases the vbios can help with such.
    is this a new card? or used one? if yes does it worked before?
    what are your computer specifications? list full PC specifications , see >>Posting Guide<<
    I only mention that i thought it was a vbios thing because i read a thread that had multiple people having problems with the same card (although it really does seem to have problems with the nvidia drivers). I have tried all number of different freshly installed driver versions, but to no avail.
    I know its my vbios because when i tried to upload it to the GPUZ database it said it already existed and gave me that exact name.
    the card was new when i got it about a year ago, these problems have been occuring since then (mostly with the driver updates) and I've permitted it up till now, I'm sick of my pc rebooting and getting no video output.
    System specs:
    Board: Gigabyte Z77-D3H
    Bios:1.0
    VGA: N560GTX Ti Twin Frozr II 1024
    PSU: (this info will come later when i have time to check)
    CPU: Intel Core i5-3570k @3.40GHz 3.80Ghz
    MEM: Corsair (s/n 25855899) 2x4G CMz8GX3M2A1600C9
    HDD: ST500DM002-1BD142 ATA
    OS: Win 7 x64 Ultimate

  • [REQUEST] new BIOS for 970A-G46

    I need beta BIOS newer than 7693v1B because I had these several problems :
    1.) vcore overvoltage limited to 1.451v
    2.) memory overclock higher than 2133 won't boot (debug code 50)

    Quote from: Svet on 01-January-13, 00:45:22
    https://forum-en.msi.com/index.php?topic=163876.msg1207868#msg1207868
    thank you, I'll test and post the result(s) immediately

  • Request new songs for iTunes

    I was wondering if it was possible to request songs be put on iTunes. I seem to recall seeing a "request" button somewhere. But I can't find it anywhere. Please help.

    here's a link through to the request form:
    Request music

  • Request new BIOS for MSI R9 270 GAMING 2GB

    Hi there, I use W7SP1 with a Gigabyte GA-H87-HD3 mobo and the 13.12 drivers(14.4 suffer from very high OpenCL to Direct3D interop lag unfortunately, which is a showstopper with madVR) and I just bought this board with the exact same BIOS version number as on this link: techpowerup (.com)/vgabios/149707/msi-r9270-2048-131106.html
    It's fairly silent under load and I'm happy with that, but when idle the fans seem hardlocked to 1040 rpm
    Whatever fan percentage higher than 18% does increase the fan rpm speed, but anything lower still gives 1040 rpm.......what is the point to cool the GPU down to 28°C when its TJmax is 95°C? I would like to drop the fans speed when idle to maybe 700/800rpm and get the GPU to reach 40°C or so?
    I run a SSD with a 350rpm oversized CPU fan, a passive PSU and several oversized case fans that also run very slowly, those 1040rpm are killing me....I used to own a VTX3D Vchamp HD7850 that allowed me to make my own custom fan speed curve in Afterburner: dead-silent when idle and slowly ramped up under load, perfect
    Of course its cooler was a joke compared to your TF4 but you can see that Asus are now releasing graphic cards that are semi-passive with their fans shutting off until the GPU reaches 65°C, it makes no sense to me to use the TF4 at 1040 rpm when idle(and even more so on the 70W TDP GTX750Ti).
    Long story short, I would really appreciate an unlocked BIOS please so I could build my own fan speed curve in Afterburner as I used to. I do plan on buying the future Maxwell's(a twice faster 750Ti would be awesome), I dearly hope that you will reevaluate your TF4 fan speed curves because otherwise I would more than likely buy a semi-passive Asus next time. Talk about wasted potential
    I guess you hardlocked it so dumb ppl wouldn't set the fans to a fixed very low speed and toast the board, but posting an unlocked BIOS on your forum that's aimed at power users is just showing that you care. I know EVGA did post this kind of BIOS updates recently and you polished the TF4 cooler to such extents that it's truly a crying shame to be stuck at 1040 rpm and 28°C when idle
    There is no question that TF4 is extremely effective under load with a 150W TDP GPU, but you can see that the 270X Powercolor board is quieter when idle in this comparison: tomshardware (.com)/reviews/radeon-r9-270-benchmark-review,3769-5.html
    Hope you can help, I will gladly spread the word on HTPC forums because this board is close to perfection when using madVR.
    Thank you very much in advance

    OK thanks for the reply, but the 18% cap seems BIOS based...I have a hard time believing that they can't run any lower than 1040 rpm
    Are you a mod? Working for MSI? This looks like a wild guess more than an official reply if you don't mind me saying.
    For the record, that VTX3D board I mentioned in my previous PM was able to go down to 1%.
    I would fix it myself but there are no BIOS editors for the R9 serie apparently....MSI simply capped the lowest PWM value: tpucdn dot com/rbe/RBE_Fan.png
    Whatever way their speed's being throttled(PWM or voltage), they must be able to go slower than that. I could provide you links but EVGA did make clear that they capped the lowest speed of the fans on some of their boards so dumb users wouldn't fry them but they were entirely able to release unlocked BIOS binaries.
    At this point I could either return it or unplug its fans and slap a 600rpm 140mm fan onto the board using zip ties.......it's just amazing that MSI managed to ultimately fail on such a detail. All the work put into the TF4 cooler goes down the drain
    flobelix seems able to help, I hope he'll chime in: forum-en.msi dot com/index.php?topic=180521
    Quote
    Fan controller actually can control the fans, and the GPU gets less hot

  • REQUEST new bios for MSI R9 290 GAMING 4G

    Hi
    Current version...is not possible to insert a link to a file. Forum report - "Sorry, you are not allowed to post external links"
    S/N:602-V308-07SB1402051305
    Thanks

    Quote from: adam321 on 04-January-15, 14:12:17
    Hi
    Current version...is not possible to insert a link to a file. Forum report - "Sorry, you are not allowed to post external links"
    Upload current vbios to some filehoster. If not allowed to post links yet, mask it by XX at beginning and end (e.g. XXlink.comXX)

  • Request new bios for MSI 280X 3gb

    S/N:602-V277-250B1407011905 the current bios im using is this one , i found it on a usb i forget all about it this  is my Original bios that came with the Gpu 
    http://www.filedropper.com/tahiti_1

    mh is in the link that i already give you
    ms here:  351MS.rar (39.55 kB - downloaded 12 times.)

Maybe you are looking for

  • Images into db, what's wrong?

    Hi, I'm still trying to fetch some images into my database, gif or jpeg, but I have some problems. I used the following code but it gives me a compile error. I don't understand why! EXEC does'nt work. CREATE TABLE MY_IMAGES_DB( id NUMBER(10) NOT NULL

  • How can i get iphone 6 unlocked in florida "west palm view"

    how can i get iphone 6 unlocked in florida "west palm view"

  • Trouble with liquid layout...

    Hi, I am trying to layout a site with CSS in a liquid style. This is the first time im using a liquid layout and find it pretty confusing.... The site is here. The problem im currently having is the block of text and image in the main content area (i

  • I want to buy lightroom. But I can't . Error of country.

    Je voulais acheter LIGHTROOM MAC. Mais le processus s'arrête au paiement. Erreur de country. En refaisant la démarche, je n'ai plus les moyens de corriger. Comment faire? Merci de me renseigner. 

  • Preview Music Videos Won't Play

    Hello, I'm using Mac OS X Version 10.4.11. and ITUNES 8.0.2. I can't preview the music videos in ITUNES. I used to be able to preview them all the time, but as of a couple months ago, it no longer works. I can hear the sound of the video but the scre