It'd be helpful to know what behavior or error you are seeing.

Regardless, if you are using this exact code, the problem is (at
least) that ':' isn't a object operator. You need to use '.'.

For instance

url = tab.url

not

url = tab:url

On Mon, Nov 23, 2009 at 7:32 AM, Ben Davenport-Ray
<laserdud...@gmail.com> wrote:
> I am having plenty of trouble with getting the info on the selected
> tab.
> It seems to refuse to get the information:
>
> <html><script>
>                chrome.browserAction.onClicked.addListener(
>                        function(tab)
>                                {
>                                chrome.tabs.getSelected(null, function(tab){
>                                        url = tab:url;
>                                        title = tab:title;
>                                        delsave = 
> 'http://delicious.com/save?url='+ url +'&title='+ title
> +'&v=5&jump=yes'
>
>                                        var deltab = chrome.tabs.create({url : 
> delsave, selected :
> false});
>                                        });
>                                }
>                        )
> </script></html>
>
> the end result is supposed to be a new tab popping up with the info of
> the selected tab.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Chromium-extensions" group.
> To post to this group, send email to chromium-extensi...@googlegroups.com.
> To unsubscribe from this group, send email to 
> chromium-extensions+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/chromium-extensions?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=.


Reply via email to