1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    23
    Vote Rating
    0
    pouli is on a distinguished road

      0  

    Default Unanswered: Namespace and hidden HTML tags

    Unanswered: Namespace and hidden HTML tags


    Hello to all,

    I am really new to EXTJS and I have a very basic problem.
    I have read that is god to use namespace and this is what I did.
    I want on the other hand to use some hidden variables from the HTML that launches my Javascript code.

    It seems that with the EXT.get(...) this is not possible because I am under a namespace.
    Please correct me if I am wrong.

    Thus I have found a way aroudn this by simply using document.getEementById but I know that this is not the best way.
    Could you please explain me how to do this ?

    Thank you in advance

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Answers
    1
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Ext.get() uses document.getElementById, so they should behave identical!

  3. #3
    Ext User
    Join Date
    Aug 2010
    Posts
    23
    Vote Rating
    0
    pouli is on a distinguished road

      0  

    Default


    Hello Condor thank you for the quick reply.

    I am using this skeleton that I have found at the tutorials:

    Ext.namespace('test');


    test.app = function()
    {
    return {
    init : function(){ // Privileged method. Can be called from outside
    }
    }

    }();


    Ext.onReady(test.app.init, test.app);


    When I use Ext.get that points to a hidden tag it returns undefined but when I do document.getElementById it works.
    I have tried the Ext.get with a simpler script no namespace and it worked as well so I thought that the problem coudl be somewhere there.

    Thank you

Similar Threads

  1. HTML tags in my panel are getting ignored
    By ferr0084 in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 31 Mar 2010, 12:27 PM
  2. user defined tags, xml schema and ext namespace
    By mbenothmane in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Feb 2009, 11:08 AM
  3. textField and html tags
    By kohyea in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 Oct 2008, 7:10 AM
  4. Escaping html tags
    By okwei in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 4 Sep 2008, 11:06 AM
  5. removing html tags
    By nolsie in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 30 Oct 2007, 7:49 AM

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar