Problems with widget parameters

Have you found an error? Report here!
LaTerrazza

Problems with widget parameters

Post by LaTerrazza »

It's hard, but I'll try to explain:

I created my widget choosing parameters as follows: location/Venice(Italy); language/Italian; window size/w210-h150; time format/24hours; temperature unit/Celsius; window look/all the 4 options choosen. Preview showed all the requested parameters properly.
Then, when I copied and pasted the code inside my blog, language turned into English; time format turned into AM/PM; temperature unit turned into Fahrenheit. Also changed backgound colour from #FFFFFF to #FFFEFC7, but the new colour hasn't been showed.

Although I'm a simple user, not an expert, I've tried to fix my script, and now it looks as follows:

<pre>
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="210" height="150">
<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" />
<param name="allowfullscreen" value="true" />
<param name="wmode" value="opaque" />
<param name="bgcolor" value="#FFEFC7" />
<param name="time_format" value="24&amp" />
<param name="unit_system" value="metric&amp" />
<param name="lang" value="it&amp" />
<param name="flashvars"
value="location_id=gn:3164603&time_format=24&unit_system=metric&lang=it&background=#FFEFC7"/" />
</object>
</pre>

Using that amended code my widget seems to work properly and now shows the correct parameters, except only for background colour.
I feel surprised, but I'm not sure of myself and need the counsel of an expert.

Thanks in advance.
Donatella
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Problems with widget parameters

Post by ikarus1969 »

LaTerrazza wrote:It's hard, but I'll try to explain:

I created my widget choosing parameters as follows: location/Venice(Italy); language/Italian; window size/w210-h150; time format/24hours; temperature unit/Celsius; window look/all the 4 options choosen. Preview showed all the requested parameters properly.
Then, when I copied and pasted the code inside my blog, language turned into English; time format turned into AM/PM; temperature unit turned into Fahrenheit. Also changed backgound colour from #FFFFFF to #FFFEFC7, but the new colour hasn't been showed.

Although I'm a simple user, not an expert, I've tried to fix my script, and now it looks as follows:

<pre>
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="210" height="150">
<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" />
<param name="allowfullscreen" value="true" />
<param name="wmode" value="opaque" />
<param name="bgcolor" value="#FFEFC7" />
<param name="time_format" value="24&amp" />
<param name="unit_system" value="metric&amp" />
<param name="lang" value="it&amp" />
<param name="flashvars"
value="location_id=gn:3164603&time_format=24&unit_system=metric&lang=it&background=#FFEFC7"/" />
</object>
</pre>

Using that amended code my widget seems to work properly and now shows the correct parameters, except only for background colour.
I feel surprised, but I'm not sure of myself and need the counsel of an expert.

Thanks in advance.
Donatella
Hi Donatella!

I don't know why the code from the website switches back to english.

With your current code i would change some little things:

Code: Select all

<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="210" height="150">
	<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>
	<param name="allowfullscreen" value="true"/>
	<param name="wmode" value="opaque"/>
	<param name="bgcolor" value="#FFEFC7"/>
	<param name="flashvars" 
value="location_id=gn:3164603&location_name=Venezia&time_format=24&unit_system=metric&lang=it&background=#FFEFC7"/>
</object>
This is the result; on the left is the result of your code; on the right the result of my code:
YoWindow - widget - Donatella - with background-color.jpg
YoWindow - widget - Donatella - with background-color.jpg (37.25 KiB) Viewed 9075 times
As far as i know there are no parameters to the flash program like

Code: Select all

<param name="time_format" value="24&amp" />
<param name="unit_system" value="metric&amp" />
<param name="lang" value="it&amp" />
I removed them; all the parameters for the widget are coded in the "flashvars"-parameter.


Could you please try to import my modified code to your blog and give a short notice if it works (background-color)?

Thank you in advance!
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
LaTerrazza

Re: Problems with widget parameters

Post by LaTerrazza »

ikarus1969 wrote:
LaTerrazza wrote:
Could you please try to import my modified code to your blog and give a short notice if it works (background-color)?

Thank you in advance!
Surely! I'll do it later and revert very soon.
Thanks a lot, Ikarus, for all your help.
Donatella
LaTerrazza

Re: Problems with widget parameters

Post by LaTerrazza »

Just imported your new code but it works exactly as the original one: it switches back to english, Fahrehneit, ecc. :(
And moreover such a strange thing happens: if I put the 2 codes together in the same window, all the 2 widgets swithes back!
Maybe it's a template problem. Since I'm going to change it within today or tomorrow, I'll try again and inform you.
Thanks indeed.
Donatella
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Problems with widget parameters

Post by ikarus1969 »

Hi Donatella,

i navigated to your blog and saw that it is a blogspot-blog so i tryed it within my own blogspot-blog.

My first try failed but my second one succeeded.
The way it works (for me) is the following: before you paste the code from my post into the editor you have to click on the tab "HTML bearbeiten" to insert pure html-code:
Blogspot post-editor with preview on the right
Blogspot post-editor with preview on the right
YoWindow - widget - Donatella - blog-include #1.jpg (364.69 KiB) Viewed 9065 times
After i did that i could publish a post with the YoWindow-widget inside:
published post with YoWindow widget inside
published post with YoWindow widget inside
YoWindow - widget - Donatella - blog-include #2.jpg (61.64 KiB) Viewed 9065 times
I'll keep my fingers crossed - good luck!
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
LaTerrazza

Re: Problems with widget parameters

Post by LaTerrazza »

:?: Why should I edit it on a post?
I need my widget shown where it is: in a sidebar html window...
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Problems with widget parameters

Post by ikarus1969 »

LaTerrazza wrote::?: Why should I edit it on a post?
because of:
YoWindow - Donetalla.jpg
YoWindow - Donetalla.jpg (73.76 KiB) Viewed 9063 times
i thought you want to use it in a post - it was a kind of misinterpreting you, sorry :oops:

To put the widget in your sidebar i substituted the "&" by "&" which leads to following code:

Code: Select all

<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="210" height="150">
   <param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>
   <param name="allowfullscreen" value="true"/>
   <param name="wmode" value="opaque"/>
   <param name="bgcolor" value="#FFEFC7"/>
   <param name="flashvars" 
value="location_id=gn:3164603&location_name=Venezia&time_format=24&unit_system=metric&lang=it&background=#FFEFC7"/>
</object>
Then i added the gadget "HTML/JavaScript" to my sidebar and pasted it into the editor, saved it and, voila:
YoWindow - Donetalla #2.jpg
YoWindow - Donetalla #2.jpg (22.28 KiB) Viewed 9063 times
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
LaTerrazza

Re: Problems with widget parameters

Post by LaTerrazza »

:lol: Ah, the post... it was a friend's joke on me!
Your script's last edition works properly for a short moment and then switches...
Let's stop here, I'll try again with a new template.
Thanks+thanks+thanks.
Donatella
LaTerrazza

Re: Problems with widget parameters

Post by LaTerrazza »

My friend Daniele finally solve the problem. :) The right code for my widget is:

<pre>
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="210" height="150">
<param name="allowfullscreen" value="true" />
<param name="flashvars"
value="location_id=gn:3164603&time_format=24&unit_system=metric&lang=it&background=#FFEFC7&wmode=opaque&location_name=Venezia" />
</object>
</pre>

Ciao
Donatella
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Problems with widget parameters

Post by ikarus1969 »

LaTerrazza wrote:My friend Daniele finally solve the problem. :)
Very good! :)
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
Post Reply