Loading ...
Sorry, an error occurred while loading the content.

try to load a dynamic content :/

Expand Messages
  • rafinha_spy
    I have a dynamic tabview in index.htm... and when i click in tab... he call for dataSrc: includes/test.htm .. ok its work fine... tabs show the contents of
    Message 1 of 2 , Nov 30, 2006
    • 0 Attachment
      I have a dynamic tabview in index.htm...
      and when i click in tab... he call for dataSrc: 'includes/test.htm' ..
      ok its work fine...

      tabs show the contents of teste.htm.

      when teste.htm is loaded.. he dont show the code of the page request
      using conection function.


      but if i access testList.php separately... he show call content
      why?

      www.mydomain.com/abc/index.htm (dont show testList.php content)
      www.mydomain.com/abc/teste.htm (show the content of testList.php)

      why?

      anybody can help me?

      thankz a l0t :P

      ============================= test.htm =============================
      <script type="text/javascript"
      src="../lib/YahooUI/yahoo/yahoo.js"></script>
      <script type="text/javascript"
      src="../lib/YahooUI/connection/connection.js"></script>
      <script>
      var handleSuccess = function(o){
      document.getElementById('testeList').innerHTML = o.responseText;
      }

      var handleFailure = function(o){
      if (o.responseText !== undefined)
      document.getElementById('testList').innerHTML = "<li>Error message:
      " + o.statusText + "</li>";
      }

      var callback = {
      success:handleSuccess,
      failure:handleFailure,
      argument: { foo:"foo", bar:"bar" }
      };

      var sUrl = "testList.php";

      function makeRequest(){
      var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
      }
      </script>

      <div id="testList" style="position: relative; width: 350px;">

      </div>
      <script>makeRequest();</script>
    • Matt Sweeney
      Hi, I checked the urls you posted, and I don t see any TabView code. Can you point to or send the code in question? Thanks, Matt
      Message 2 of 2 , Dec 1, 2006
      • 0 Attachment
        Hi,

        I checked the urls you posted, and I don't see any TabView code. Can
        you point to or send the code in question?

        Thanks,

        Matt

        rafinha_spy wrote:

        >I have a dynamic tabview in index.htm...
        >and when i click in tab... he call for dataSrc: 'includes/test.htm' ..
        >ok its work fine...
        >
        >tabs show the contents of teste.htm.
        >
        >when teste.htm is loaded.. he dont show the code of the page request
        >using conection function.
        >
        >
        >but if i access testList.php separately... he show call content
        >why?
        >
        >www.mydomain.com/abc/index.htm (dont show testList.php content)
        >www.mydomain.com/abc/teste.htm (show the content of testList.php)
        >
        >why?
        >
        >anybody can help me?
        >
        >thankz a l0t :P
        >
        >============================= test.htm =============================
        ><script type="text/javascript"
        >src="../lib/YahooUI/yahoo/yahoo.js"></script>
        ><script type="text/javascript"
        >src="../lib/YahooUI/connection/connection.js"></script>
        ><script>
        >var handleSuccess = function(o){
        > document.getElementById('testeList').innerHTML = o.responseText;
        >}
        >
        >var handleFailure = function(o){
        > if (o.responseText !== undefined)
        > document.getElementById('testList').innerHTML = "<li>Error message:
        >" + o.statusText + "</li>";
        >}
        >
        >var callback = {
        > success:handleSuccess,
        > failure:handleFailure,
        > argument: { foo:"foo", bar:"bar" }
        >};
        >
        >var sUrl = "testList.php";
        >
        >function makeRequest(){
        > var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
        >}
        ></script>
        >
        ><div id="testList" style="position: relative; width: 350px;">
        >
        ></div>
        ><script>makeRequest();</script>
        >
        >
        >
        >
        >Yahoo! Groups Links
        >
        >
        >
        >
        >
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.