GIGJ.COM
welcome to my space
X
Search:  
Welcome to:gigj.com
NAVIGATION: Home >>

Prototype adapter does not allow executing script in dynamically loaded ContentPanels

Published by: wktd 2010-03-15

  • ReiberLabs - welcome to ReiberLabs! http://reiber.org landing ::
    Subsequent re-render does NOT re-fold tiddler, but closing/re-opening tiddler added animation when opening/closing faq content panel 2008.09.21 [1.3.0] sort . the external link an IFRAME will be dynamically added to the content. add to body to execute, then remove for cleanup var script = document.
    http://reiber.org/nxt/pub/Main/ReiberLabs/
    HOME
    Well, I can confirm it :) The Prototype adapter is borked in 1.0

    Using the BorderLayout (I was using /ext-1.0/examples/layout/complex.html to test with), loading a ContentPanel dynamically with something like this:
    Ext.Element.get(id).getUpdateManager().update({url :"/ext-1.0/examples/layout/test.html", scripts:true});
    (or any of the other methods I've tried) to load a page that looks like this:

    Now is the time for all good men to come to the aid of their country





  • Ugh... Apparently prototype itself is the problem, since even using something like this:
    new Ajax.Updater('targetDivID', 'test.php', { method: 'get' });
    Results in all < script>
    howto - JRoller - Javalobby Community Weblog Service::
    to code quick event adapters as anonymous classes, but Groovy does not support The code I tested was a slight modification of ContentPanel (provided by the Executing this class with the Groovy Eclipse plugin yields the same . with JavaScript and later feed them to a dynamically created JRuby applet.
    http://www.jroller.com/aalmiray/tags/howto
    HOME
    Source for "VidzBigger" â “ Userscripts.org::
    There are 93 previous versions of this script. the source is over 100KB, Does not load them unitl you mouse over. The rate is ~1.5 seconds but can vary if . replacing them with a link to VidzBigger.com or if the [allow replace .. listener (gsStateChangeListener) and then executes the default YouTube
    http://userscripts.org/scripts/review/41691
    HOME
    blocks in the test.php file being stripped. What a pain!!!

    According to the page at http://www.prototypejs.org/api/ajax/updater it is well known (and a conscious decision maybe?) that the script blocks are stripped from the Ajax response. Scroll down to About evalScripts and defining functions to see what I mean :/


    .


  • Wow... and I thought I was going crazy... I ran into this issue and fussed around every which way I could to try and get those scripts to run.

    I just stripped out all the YUI code from my rails app a little while back and this mysteriously broke, I guess I'll have to put YUI or jQuery back in then :(


  • I saw this the other day, maybe you'll find it useful

    http://yehudakatz.com/2007/05/17/jquery-on-rails-a-fresh-approach/


  • I have been experimenting with Ext for a little while now and trolling the forums for info. I am one who usually searches the ends of the earth before wasting someone's time with a question that has been asked and answered so many times before. And i also believe that you gotta get dirty and "read, read, read" to learn.

    I must say that the level of support to the community and the value of this product is awe inspiring to say the least.

    For my part though, I would have saved a lot of time if I would have found this thread a long time ago. I was using Prototype until now. My whole project depends upon the scripts being parsed in for Ajax loads. I really think there should be a sticky on this.

    Again thanks very much for your hard work. I'm sure I will be a "REAL" supporter very soon.


  • heh. Well, though I might agree with you now that I've gotten to this point, I had not had any problems with it long enough to get a pretty significant portion of my project done :)

    So now I've refactored everything to use JQuery (path of least least divergence), and everything seems to be going well for the most part. I will look into YUI after I get this project done, since this current project is comparitively small in scope and is well under way.

    Oh.... Yeah... by the way.....

    Ext JS Rocks!


  • I can't see a reason to use the prototype-adapter. From what I've heard, prototype is well dodgy. The YUI classes upon which the yui-adapter builds are very robust.





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks

    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Prototype adapter does not allow executing script in dynamically loaded ContentPanels , Please add it free.
  • help my cat is going mad
  • why does my cat use the litterbox after she just came in from outside
  • what can i do for my sneezing cat
  • if you had a cat what will you name it why would you name it that for what type of cat persian or normal
  • how long do cats usually live
  • any home mixes or products you can suggest to combat litter box odor besides baking soda sprays on litter
  • cat biting butt any ideas
  • cat story anyone have anything similar
  • should i wait till after the holidays to get my kitten spayed or should i do it next week
  • ok so i 039 ve decided to get a cat
  • does it hurt my cat to hold it by its neck skin
  • my cat goes 2 on my floor but 1 in the box
  • cat pees for a very long time think he 039 s holding it in
  • my cat is very sick

  • i have an 11 month old male neutered stricty indoor cat who started sneezing last night
  • what do cats do when they get something in there eye
  • animal activists and cat lovers
  • what should i do with my 15 week old boy cat he keeps terrorizing my other female cat help please
  • is it necessary to take a stray cat to the vet
  • my cat has been fatigued the past few days and threw up today he is also having trouble breathing help
  • what the heck is catnip
  • how do you get yr 7 year old cat to come into the house again when there is a new puppy addition to the family
  • cat eyes are always runny
  • is there something wrong with my cat
  • why is my cat so skinny
  • what is a good name for an orange cat
  • my female cat pup almost everywhere in places she no supposed i am desperate what can i do

  • About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 gigj.com All Rights Reserved
    Site made&Support support@gigj.com    E-mail: web@gigj.com