Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
hidden userprefs and content type url
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nare  
View profile  
(1 user)  More options Nov 1 2007, 10:27 am
From: Nare <naregaspar...@rambler.ru>
Date: Thu, 01 Nov 2007 14:27:12 -0000
Local: Thurs, Nov 1 2007 10:27 am
Subject: hidden userprefs and content type url
Hi.
I have developed several gadgets and never had problems with saving
userprefs. Yesterday I noticed that hidden userprefs are saved in none
of my gadgets. This was very strange as I haven't changed my code.
I wrote a little code to test how userprefs work generally.
Here is the code:
<input type='button' value='click' onclick='kuku()' />
<script>
        var prefs = new _IG_Prefs();
        var userId = prefs.getString("userId");
        function kuku(){
                alert(prefs.getString("userId"));
                userId++;
                prefs.set("userId", userId);

        }
</script>

In case I put this code in a gadget of urlcontent-type, it works fine.
When calling prefs.set() function, a request to the Google server is
sent.
But when I put it in a jsp file and link to this jsp from my gadget's
xml (content-type is url), it doesn't work. No request is sent to
Google when calling the prefs.set() method.
Can someone tell me what's going on?

Thanks.
Nare.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Foster  
View profile  
(1 user)  More options Nov 1 2007, 4:37 pm
From: Matt Foster <mattfoste...@gmail.com>
Date: Thu, 01 Nov 2007 20:37:44 -0000
Local: Thurs, Nov 1 2007 4:37 pm
Subject: Re: hidden userprefs and content type url
Looks like the environment changes for gadgets of that content type.
The libraries aren't automatically incorporated like the other content
types, check out this link for a reference the developer API

http://www.google.com/apis/gadgets/fundamentals.html#JS_URL

On Nov 1, 10:34 am, Nare <naregaspar...@rambler.ru> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nare  
View profile  
(1 user)  More options Nov 2 2007, 8:39 am
From: Nare <naregaspar...@rambler.ru>
Date: Fri, 02 Nov 2007 12:39:32 -0000
Local: Fri, Nov 2 2007 8:39 am
Subject: Re: hidden userprefs and content type url
I checked the url you advised me. I've done what was written and my
gadgets have been working fine for a long time (several months).
I checked via firebug the src of the iframe containing my widget.
It is
http://mydomain.com/test.jsp?up_userId=0&upt_userId=hidden&lang=en&co...
You see that the urls of required js files come within the parameter
'libs'.
And I also saw that the script files are included.
Othercase it would throw an exception on the line
var prefs = new _IG_Prefs();
but it doesn't.

So, I think that smth has happened to Google's code.

Here is my source code. You can check it.
This is my xml:
<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs title="Test">
        <Require feature="setprefs"/>
        </ModulePrefs>
        <UserPref name="userId" default_value="0" datatype="hidden"/>
        <Content type="url" href='http://mydomain.com/test.jsp'></Content>
</Module>

and this is the test.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Test</title>
<%
 String [] libraries = request.getParameter("libs").split(",");
 for (String script : libraries) {
          if (script.endsWith("js"))
%>
            <script src='http://www.google.com/ig/f/<%=script%>'></
script>
<%
 }
%>

</head>
<body>
  <input type='button' value='click' onclick='kuku()' />
<script>
        var prefs = new _IG_Prefs();
        var userId = prefs.getString("userId");
        function kuku(){
                alert(prefs.getString("userId"));
                userId++;
                prefs.set("userId", userId);

        }
</script>
</body>
</html>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mahin  
View profile  
(2 users)  More options Nov 3 2007, 1:49 am
From: Mahin <screeperz...@gmail.com>
Date: Sat, 03 Nov 2007 05:49:54 -0000
Local: Sat, Nov 3 2007 1:49 am
Subject: Re: hidden userprefs and content type url
"User preference not saved in content type URL"

Today I had this exact problem in my Countdown gadget which is of
content-type="url" (Iframed). This gadget has been for 3 months and I
haven't changed any code. People who are already using this gadget had
no problem. But new users complained about this problem and I can
reproduce it my self.

user preference is of type "hidden" and I am sure that the preference
is not saved.

http://www.google.com/ig/directory?hl=en&url=http://www.screeperzone....
(every time I refresh my igoogle page, I am asked to enter the name
again, which means the user preference is not saved)

Please let us know how can we resolve this.

On Nov 2, 5:39 am, Nare <naregaspar...@rambler.ru> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mahin  
View profile  
(1 user)  More options Nov 6 2007, 5:44 am
From: Mahin <screeperz...@gmail.com>
Date: Tue, 06 Nov 2007 10:44:12 -0000
Local: Tues, Nov 6 2007 5:44 am
Subject: Re: hidden userprefs and content type url
Hi ,

did anyone find solution to save preference for URL content-type
gadgets ? still I am not able to save preference in my url content-
type gagets.

Thanks,
Mahin.

On Nov 2, 10:49 pm, Mahin <screeperz...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nare  
View profile  
(1 user)  More options Nov 7 2007, 6:02 am
From: Nare <naregaspar...@rambler.ru>
Date: Wed, 07 Nov 2007 11:02:12 -0000
Local: Wed, Nov 7 2007 6:02 am
Subject: Re: hidden userprefs and content type url
Hi Mahin.
No, I'm still having the same problem.
I hope one of Google developers will pay attention on this problem and
solve it.

On Nov 6, 2:44 pm, Mahin <screeperz...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil  
View profile  
(1 user)  More options Nov 16 2007, 9:28 am
From: Phil <philippe.gra...@gmail.com>
Date: Fri, 16 Nov 2007 06:28:08 -0800 (PST)
Local: Fri, Nov 16 2007 9:28 am
Subject: Re: hidden userprefs and content type url
Whoua!!! 16 days and this bug isn't yet resolved!!!!
Is there Google developpers in the place ???

I've got the same plroblem in my gadget since 2 weeks:

http://www.google.fr/ig/directory?url=http://www.netvibes.com/api/uwa...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
manatree  
View profile  
(1 user)  More options Nov 19 2007, 12:47 pm
From: manatree <gbi...@gmail.com>
Date: Mon, 19 Nov 2007 09:47:07 -0800 (PST)
Local: Mon, Nov 19 2007 12:47 pm
Subject: Re: hidden userprefs and content type url
Hello, fellow programmers.
I also am very interested in this issue since, because of it, I'm
having a hard time maintaining a Google Gadget that I developed at my
University (http://www.educ.di.unito.it/infostudenti/orari/index.php).
It has been working fine since about March 2007, until November. Then
suddenly it started to programmatically fail at saving its state on
iGoogle. Since it uses only 1 hidden userpref for saving its state as
a JSON object, I assume this suggestion doesn't apply:
http://groups.google.com/group/Google-Gadgets-API/browse_thread/threa...

For the sake of simplicity, I tried a simple test case like Nare's
one.
After calling "prefs.set(...)" I couldn't see any outgoing HTTP
package when checking via Ethereal and (on Firefox) "Live HTTP
Headers", nor I could find any error in Firefox error console (I was
also able to reproduce the same test cases on Opera 9.23 and IE 7).

I even tried the "Setprefs Demo" from the developer's guide:
   http://code.google.com/apis/gadgets/docs/fundamentals.html#SetPrefs
I published it here for testing purposes:
   http://midgar.altervista.org/test/
I suggest you see for yourselves the latter. What's even weirder is
it's a content type "html" gadget.

I'd appreciate any input, since I've been spending the last 2 days
trying to figure something out. Thanks in advance.

P.S. I just discovered another user posted a similar issue here:
http://groups.google.com/group/Google-Gadgets-API/browse_thread/threa...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan (Google Employee)  
View profile  
(2 users)  More options Nov 19 2007, 2:23 pm
From: "Dan (Google Employee)" <api....@google.com>
Date: Mon, 19 Nov 2007 11:23:51 -0800 (PST)
Local: Mon, Nov 19 2007 2:23 pm
Subject: Re: hidden userprefs and content type url
Hello everyone,

I thought I would let you all know that this issue is being
investigated, and I will let you all know when I have any updates.

Best,
Dan

On Nov 19, 9:47 am, manatree <gbi...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mahin  
View profile  
(1 user)  More options Dec 11 2007, 3:11 am
From: Mahin <screeperz...@gmail.com>
Date: Tue, 11 Dec 2007 00:11:44 -0800 (PST)
Local: Tues, Dec 11 2007 3:11 am
Subject: Re: hidden userprefs and content type url
Hi Dan,

Is there any workaround or a quick fix for this issue ?. I still have
this issue in my gadget.

Thanks,
Mahin

On Nov 19, 12:23 pm, "Dan (Google Employee)" <api....@google.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dimon.minko  
View profile  
(1 user)  More options Dec 17 2007, 1:00 pm
From: "dimon.minko" <Dimon.Mi...@gmail.com>
Date: Mon, 17 Dec 2007 10:00:12 -0800 (PST)
Local: Mon, Dec 17 2007 1:00 pm
Subject: Re: hidden userprefs and content type url
Hi Dan,

This feature is very critical for me. Could you provide some update
for this issue?

Thanks,
Dmitry

On Dec 11, 10:11 am, Mahin <screeperz...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan (Google Employee)  
View profile  
(2 users)  More options Dec 17 2007, 1:04 pm
From: "Dan (Google Employee)" <api....@google.com>
Date: Mon, 17 Dec 2007 10:04:45 -0800 (PST)
Local: Mon, Dec 17 2007 1:04 pm
Subject: Re: hidden userprefs and content type url
Hello all,

I don't have an update on this issue, yet, but I'm hoping to have one
this week. Sorry about the delay.

Best,
Dan

On Dec 17, 10:00 am, "dimon.minko" <Dimon.Mi...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil  
View profile  
(1 user)  More options Dec 21 2007, 6:47 am
From: Phil <philippe.gra...@gmail.com>
Date: Fri, 21 Dec 2007 03:47:59 -0800 (PST)
Local: Fri, Dec 21 2007 6:47 am
Subject: Re: hidden userprefs and content type url
50 days and this annoying bug is already there...
I hope it will be fix this week !

Phil


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rpetri@gmail.com  
View profile  
(2 users)  More options Dec 21 2007, 3:58 pm
From: "rpe...@gmail.com" <rpe...@gmail.com>
Date: Fri, 21 Dec 2007 12:58:51 -0800 (PST)
Local: Fri, Dec 21 2007 3:58 pm
Subject: Re: hidden userprefs and content type url
Any updates on this?
It would be a sweet christmas present to get a work around :)

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Saotome Genma  
View profile  
(1 user)  More options Dec 28 2007, 3:30 pm
From: Saotome Genma <Genma...@gmail.com>
Date: Fri, 28 Dec 2007 12:30:23 -0800 (PST)
Local: Fri, Dec 28 2007 3:30 pm
Subject: Re: hidden userprefs and content type url
On Dec 21, 1:58 pm, "rpe...@gmail.com" <rpe...@gmail.com> wrote:

> Any updates on this?
> It would be a sweet christmas present to get a work around :)

I seem to be having this problem still.  Maybe their new years
resolution is to fix this sometime in 2008.

Is there a way to get a unique identifier for this user so I can just
store prefs on my server?

For now I'm using a separate login and a cookie to store an ID, rather
awkward and annoying.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil  
View profile  
 More options Jan 9 2008, 1:32 pm
From: Phil <philippe.gra...@gmail.com>
Date: Wed, 9 Jan 2008 10:32:13 -0800 (PST)
Local: Wed, Jan 9 2008 1:32 pm
Subject: Re: hidden userprefs and content type url
More than 2 month !!! What are you doing?
If you don't want to fix this bug, can you give us a workaround?

I definitively prefer Netvibes, they are very much more reactive to
fix bug like this one ...  :-(


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan (Google Employee)  
View profile  
 More options Jan 10 2008, 2:02 pm
From: "Dan (Google Employee)" <api....@google.com>
Date: Thu, 10 Jan 2008 11:02:43 -0800 (PST)
Local: Thurs, Jan 10 2008 2:02 pm
Subject: Re: hidden userprefs and content type url
Hello,

There is a fix for this issue in progress. I don't have an estimate
for when it will be released, but we are aware of the issue, and what
needs to be done to correct it.

Best,
Dan

On Jan 9, 10:32 am, Phil <philippe.gra...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rpetri@gmail.com  
View profile  
 More options Jan 29 2008, 4:10 pm
From: "rpe...@gmail.com" <rpe...@gmail.com>
Date: Tue, 29 Jan 2008 13:10:46 -0800 (PST)
Local: Tues, Jan 29 2008 4:10 pm
Subject: Re: hidden userprefs and content type url
Hi Dan,

Do you have any updates on this issue?

Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan (Google Employee)  
View profile  
 More options Feb 1 2008, 2:24 pm
From: "Dan (Google Employee)" <api....@google.com>
Date: Fri, 1 Feb 2008 11:24:23 -0800 (PST)
Local: Fri, Feb 1 2008 2:24 pm
Subject: Re: hidden userprefs and content type url
Hello,

It's my current understanding that a fix for this issue has been
pushed into production. Is everyone still seeing the buggy behavior?
It's possible that the push hasn't rolled out everywhere yet. Please
let me know.

Thanks,
Dan

On Jan 29, 1:10 pm, "rpe...@gmail.com" <rpe...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GRANET Philippe  
View profile  
 More options Feb 1 2008, 2:36 pm
From: "GRANET Philippe" <philippe.gra...@gmail.com>
Date: Fri, 1 Feb 2008 20:36:16 +0100
Local: Fri, Feb 1 2008 2:36 pm
Subject: Re: [Google-Gadgets-API] Re: hidden userprefs and content type url

Thanks, it's OK for me!

Phil.

On Feb 1, 2008 8:24 PM, Dan (Google Employee) <api....@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shameem  
View profile  
 More options Feb 11 2008, 4:12 am
From: shameem <shameema...@gmail.com>
Date: Mon, 11 Feb 2008 01:12:11 -0800 (PST)
Local: Mon, Feb 11 2008 4:12 am
Subject: Re: hidden userprefs and content type url
Hi Phil,
I m also facing this issue. As you said its working fine for you even
in case of content-type="url". Please let me know if any changes I
have to made while setting the preferences.

Thanks

On Feb 2, 12:36 am, "GRANET Philippe" <philippe.gra...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google