[OpenSocial] Re: Load JavaScript

2009-03-10 Thread Felipe Oliveira
Robson,

Thanks, tried the code a bit and is working normally now.

But now I have another problem, my application is not displayed on profile,
and through other e-mails and also by the development blog, I read that this
option has been temporarily disabled by Orkut, in this case, there is some
another way to enable this option in the application?

Thanks ;P

Felipe Oliveira.

On Tue, Mar 10, 2009 at 4:31 PM, Robson Dantas  wrote:

> Felipe,
>
> Call the javascript files using full path, including domain. Example:
>
> common/js/jquery.js change to
> http://www.mydomain.com/path/common/js/jquery.js .
>
> Let me know if you have any doubt.
>
> -Robson
>
> 2009/3/9 Felipe Oliveira 
>
> Hi Robson,
>>
>> Following example of code (xml).
>>
>> Tomorrow I test you code, and send e-mail about, thanks for help ;P
>>
>> 
>> 
>>   http://www.orkut.com"; height="300" author="Felipe Oliveira"
>> author_email="ifn...@gmail.com">
>>
>>  
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>
>> Thanks.
>>
>> Felipe Oliveira.
>>
>>
>> On Mon, Mar 9, 2009 at 6:24 PM, Robson Dantas wrote:
>>
>>> Hi Felipe,
>>>
>>> Send us some piece of code to illustrate how you are loading the external
>>> files.
>>>
>>> If you´re trying to call dynamically, take a look over the functions
>>> below:
>>>
>>>
>>> function addScript(page)
>>> {
>>>
>>> var headID = document.getElementsByTagName("head")[0];
>>> var newScript = document.createElement('script');
>>> newScript.type = 'text/javascript';
>>> newScript.src = page;
>>> headID.appendChild(newScript);
>>> }
>>>
>>>
>>> function addCss(page)
>>> {
>>>
>>> var headID = document.getElementsByTagName("head")[0];
>>> var cssNode = document.createElement('link');
>>> cssNode.type = 'text/css';
>>> cssNode.rel = 'stylesheet';
>>> cssNode.href = page;
>>> cssNode.media = 'screen';
>>> headID.appendChild(cssNode);
>>> }
>>>
>>>
>>> Regards,
>>>
>>> -Robson
>>> http://blogdodantas.dxs.com.br
>>>
>>>
>>> 2009/3/9 FelipeOliveira 
>>>
>>>
 Hello,

 I am developing an application to orkut and want to know how to load
 external JavaScripts files?

 Example:

 I have a XML with all the information the Application (canvas,
 profile, etc) and it is working perfectly in firefox / safari, but in
 internet explorer it does not load, and the tests I made, it can not
 load the javascript outside the application.

 Because I have the 'app.xml' and in it I call to the JS and CSS files,
 but it's failing in Internet Explorer, someone knows what can be and
 how can I fix?

 Structure (example):
 - App.xml
   - / Js / jquery.js
   - / Js / friends.js
   - / Css / style.js
 - Etc. ..

 Thanks.


>>>
>>>
>>>
>>>
>
> >
>


-- 
Atenciosamente,
Felipe Oliveira.

Cel.: (11) 8694-4253 / (11) 8027-3315

São Paulo - SP

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~--~~~~--~~--~--~---



[OpenSocial] Re: Load JavaScript

2009-03-10 Thread Robson Dantas
Felipe,

Call the javascript files using full path, including domain. Example:

common/js/jquery.js change to
http://www.mydomain.com/path/common/js/jquery.js .

Let me know if you have any doubt.

-Robson

2009/3/9 Felipe Oliveira 

> Hi Robson,
>
> Following example of code (xml).
>
> Tomorrow I test you code, and send e-mail about, thanks for help ;P
>
> 
> 
>   http://www.orkut.com"; height="300" author="Felipe Oliveira" author_email="
> ifn...@gmail.com">
>
>  
>   
> 
>   
>   
> 
>   
> 
>
> Thanks.
>
> Felipe Oliveira.
>
>
> On Mon, Mar 9, 2009 at 6:24 PM, Robson Dantas wrote:
>
>> Hi Felipe,
>>
>> Send us some piece of code to illustrate how you are loading the external
>> files.
>>
>> If you´re trying to call dynamically, take a look over the functions
>> below:
>>
>>
>> function addScript(page)
>> {
>>
>> var headID = document.getElementsByTagName("head")[0];
>> var newScript = document.createElement('script');
>> newScript.type = 'text/javascript';
>> newScript.src = page;
>> headID.appendChild(newScript);
>> }
>>
>>
>> function addCss(page)
>> {
>>
>> var headID = document.getElementsByTagName("head")[0];
>> var cssNode = document.createElement('link');
>> cssNode.type = 'text/css';
>> cssNode.rel = 'stylesheet';
>> cssNode.href = page;
>> cssNode.media = 'screen';
>> headID.appendChild(cssNode);
>> }
>>
>>
>> Regards,
>>
>> -Robson
>> http://blogdodantas.dxs.com.br
>>
>>
>> 2009/3/9 FelipeOliveira 
>>
>>
>>> Hello,
>>>
>>> I am developing an application to orkut and want to know how to load
>>> external JavaScripts files?
>>>
>>> Example:
>>>
>>> I have a XML with all the information the Application (canvas,
>>> profile, etc) and it is working perfectly in firefox / safari, but in
>>> internet explorer it does not load, and the tests I made, it can not
>>> load the javascript outside the application.
>>>
>>> Because I have the 'app.xml' and in it I call to the JS and CSS files,
>>> but it's failing in Internet Explorer, someone knows what can be and
>>> how can I fix?
>>>
>>> Structure (example):
>>> - App.xml
>>>   - / Js / jquery.js
>>>   - / Js / friends.js
>>>   - / Css / style.js
>>> - Etc. ..
>>>
>>> Thanks.
>>>
>>>
>>
>>
>> >>
>>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~--~~~~--~~--~--~---



[OpenSocial] Re: Load JavaScript

2009-03-10 Thread davi alves
Hello, 
  See the following, javascript runs on any browser that
happens is the reading from the corespondencia explore the mozzila has
aleitura dynamics that can quickly read the codes of the system but do
not worry, now you just need to host your system and it will rotate
normally on any other computer using exploits.

--- Em seg, 9/3/09, Felipe Oliveira  escreveu:
De: Felipe Oliveira 
Assunto: [OpenSocial] Re: Load JavaScript
Para: opensocial-api@googlegroups.com
Data: Segunda-feira, 9 de Março de 2009, 23:01

Hi Robson,

Following example of code (xml).

Tomorrow I test you code, and send e-mail about, thanks for help ;P




  http://www.orkut.com"; height="300" author="Felipe Oliveira" 
author_email="ifn...@gmail.com"> 

   
 

  
    

  
  

    
  



Thanks.

Felipe Oliveira.

On Mon, Mar 9, 2009 at 6:24 PM, Robson Dantas  wrote:

Hi Felipe,

Send us some piece of code to illustrate how you are loading the external files.


If you´re trying to call dynamically, take a look over the functions below:


function addScript(page)
{


    var headID = document.getElementsByTagName("head")[0];
    var newScript = document.createElement('script');
    newScript.type = 'text/javascript';
    newScript.src = page;


    headID.appendChild(newScript);
}


function addCss(page)
{
    
    var headID = document.getElementsByTagName("head")[0]; 
    var cssNode = document.createElement('link');


    cssNode.type = 'text/css';
    cssNode.rel = 'stylesheet';
    cssNode.href = page;
    cssNode.media = 'screen';
    headID.appendChild(cssNode);
}


Regards,

-Robson


http://blogdodantas.dxs.com.br


2009/3/9 FelipeOliveira 




Hello,



I am developing an application to orkut and want to know how to load

external JavaScripts files?



Example:



I have a XML with all the information the Application (canvas,

profile, etc) and it is working perfectly in firefox / safari, but in

internet explorer it does not load, and the tests I made, it can not

load the javascript outside the application.



Because I have the 'app.xml' and in it I call to the JS and CSS files,

but it's failing in Internet Explorer, someone knows what can be and

how can I fix?



Structure (example):

- App.xml

   - / Js / jquery.js

   - / Js / friends.js

   - / Css / style.js

- Etc. ..



Thanks.















  Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~--~~~~--~~--~--~---



[OpenSocial] Re: Load JavaScript

2009-03-09 Thread Felipe Oliveira
Hi Robson,

Following example of code (xml).

Tomorrow I test you code, and send e-mail about, thanks for help ;P



  http://www.orkut.com"; height="300" author="Felipe Oliveira" author_email="
ifn...@gmail.com">
   
 
  

  
  

  


Thanks.

Felipe Oliveira.

On Mon, Mar 9, 2009 at 6:24 PM, Robson Dantas  wrote:

> Hi Felipe,
>
> Send us some piece of code to illustrate how you are loading the external
> files.
>
> If you´re trying to call dynamically, take a look over the functions below:
>
>
> function addScript(page)
> {
>
> var headID = document.getElementsByTagName("head")[0];
> var newScript = document.createElement('script');
> newScript.type = 'text/javascript';
> newScript.src = page;
> headID.appendChild(newScript);
> }
>
>
> function addCss(page)
> {
>
> var headID = document.getElementsByTagName("head")[0];
> var cssNode = document.createElement('link');
> cssNode.type = 'text/css';
> cssNode.rel = 'stylesheet';
> cssNode.href = page;
> cssNode.media = 'screen';
> headID.appendChild(cssNode);
> }
>
>
> Regards,
>
> -Robson
> http://blogdodantas.dxs.com.br
>
>
> 2009/3/9 FelipeOliveira 
>
>
>> Hello,
>>
>> I am developing an application to orkut and want to know how to load
>> external JavaScripts files?
>>
>> Example:
>>
>> I have a XML with all the information the Application (canvas,
>> profile, etc) and it is working perfectly in firefox / safari, but in
>> internet explorer it does not load, and the tests I made, it can not
>> load the javascript outside the application.
>>
>> Because I have the 'app.xml' and in it I call to the JS and CSS files,
>> but it's failing in Internet Explorer, someone knows what can be and
>> how can I fix?
>>
>> Structure (example):
>> - App.xml
>>   - / Js / jquery.js
>>   - / Js / friends.js
>>   - / Css / style.js
>> - Etc. ..
>>
>> Thanks.
>>
>>
>
> >

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~--~~~~--~~--~--~---



[OpenSocial] Re: Load JavaScript

2009-03-09 Thread Robson Dantas
Hi Felipe,

Send us some piece of code to illustrate how you are loading the external
files.

If you´re trying to call dynamically, take a look over the functions below:


function addScript(page)
{

var headID = document.getElementsByTagName("head")[0];
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = page;
headID.appendChild(newScript);
}


function addCss(page)
{

var headID = document.getElementsByTagName("head")[0];
var cssNode = document.createElement('link');
cssNode.type = 'text/css';
cssNode.rel = 'stylesheet';
cssNode.href = page;
cssNode.media = 'screen';
headID.appendChild(cssNode);
}


Regards,

-Robson
http://blogdodantas.dxs.com.br


2009/3/9 FelipeOliveira 

>
> Hello,
>
> I am developing an application to orkut and want to know how to load
> external JavaScripts files?
>
> Example:
>
> I have a XML with all the information the Application (canvas,
> profile, etc) and it is working perfectly in firefox / safari, but in
> internet explorer it does not load, and the tests I made, it can not
> load the javascript outside the application.
>
> Because I have the 'app.xml' and in it I call to the JS and CSS files,
> but it's failing in Internet Explorer, someone knows what can be and
> how can I fix?
>
> Structure (example):
> - App.xml
>   - / Js / jquery.js
>   - / Js / friends.js
>   - / Css / style.js
> - Etc. ..
>
> Thanks.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~--~~~~--~~--~--~---