Thursday, June 4, 2009

[JavaScript] Re: Request

> Request
> Posted by: "Denis Caggiano" denisribeiro@gmail.com onaiggac
> Date: Wed Jun 3, 2009 3:03 pm ((PDT))
>
> Is there a way to request the DOM of an another page?

Not unless your script opens it and it's in the same domain as the page
containing your script. That's a security feature -- otherwise, people
could rewrite other sites' pages.

> Better yet, is there a way to know if the page that I will call will show
> some error?
>
> Here is my problem:
>
> Im using a hiperlink of the Gtalk and MSN in my web site.
> But if the user dont have Gtalk installed, the site show an error page that
> is not much friendly.

Instead of depending on the site, why not test the user's capabilities
using JS and handle him according to the outcome? Your Skype button code
includes this:

<script type="text/javascript"
src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js">
</script>

You might want to have a look to see how they do it. Also, have you
checked to see what information might be available for developers from
Google and MSN?

cheers

j.

--
This message has not been scanned for viruses.

Since I do not use a Microsoft operating
system or software, and use only plaintext
for email, there is little need for me to do so.


------------------------------------

Visit http://aiaiai.com for more groups to joinYahoo! Groups Links

<*> To reply to this message, go to:
http://groups.yahoo.com/group/JavaScript_Official/post?act=reply&messageNum=16699
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/JavaScript_Official/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/JavaScript_Official/

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/