[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum :: View topic - Similar function without script?
XWidgetSoft Forum
https://bbs.xwidget.com/

Similar function without script?
https://bbs.xwidget.com/viewtopic.php?f=18&t=5049
Page 1 of 1

Author:  Jimking [ September 19th, 2014, 2:35 pm ]
Post subject:  Similar function without script?

The XW for android doesn't support java script. So, any ideas about how we can have the same results about the appearing of the days of the weeks, but without script?

Here is an example:
viewtopic.php?f=11&t=5046

Author:  hamid [ September 20th, 2014, 12:02 am ]
Post subject:  Re: Similar function without script?

we have talked about it before in here:


but maybe the things has get changed in newer version, so better to test them again


as a brief answer for this widget:

===============
1st method: using images (100% works)

1. use an image object for bg with white texts (you can also use 7 white text Objects)
2. create blue color images for each day and name them as days
3. use one of the binding tags that match the naming of your images


Note:
if it doesn't hide the previous day when a day has passed, you should also create empty images for other days (so finally you will have 7 blue images and 42 empty images),
you can change the date to check if it works correctly when changing days


===============
2nd method: using text objects
(it will work only if substitute works on text objects in android)

1. use an image object for bg with white texts (you can also use 7 white text Objects)
2. use text objects with blue color font for each day (7 text objects)
3. use one of the binding tags on text objects
4. use the substitute to change the text to the text you want (for each text object it should change text to make that day as it should be displayed and other days as empty)

Author:  Jimking [ September 20th, 2014, 1:10 am ]
Post subject:  Re: Similar function without script?

Yes, maybe with the latest version works.. I hope!
I need to test. Thanks for the suggestions hamid. :)

Author:  hamid [ September 20th, 2014, 1:46 am ]
Post subject:  Re: Similar function without script?

also as 3rd method: 7bg images
(works 100%)
1. create 7 bg images that for each of them one day is blue and others is white
2. use an image object
3. use one of the binding tags that match the naming of your images


i don't know which one is easier for you,
but i think filling white part of image with a color is easy

Author:  Jimking [ September 20th, 2014, 1:54 am ]
Post subject:  Re: Similar function without script?

Wow too much options! I will begin from the 3rd method.. I'll report the results soon..

Author:  hamid [ September 20th, 2014, 2:16 am ]
Post subject:  Re: Similar function without script?

want some more? :D
maybe a 4th method: using NumbImage Object

do you want to explain this as well?

Author:  Jimking [ September 20th, 2014, 2:44 am ]
Post subject:  Re: Similar function without script?

Hit me! :lol:

Author:  hamid [ September 20th, 2014, 3:32 am ]
Post subject:  Re: Similar function without script?

i have never used Numb Image,
and i just found that it's not as simple as i think ;)


edit:
i found another way,
but not the way as i thought first,

using NumbImage Object,
this is similar to other methods,
but maybe a little harder, since you need to add the empty parts into image
so doesn't need to explain ;)
the only advantage would be:
it doesn't need 42 empty images as 1st method needs

Author:  Jimking [ September 20th, 2014, 4:26 am ]
Post subject:  Re: Similar function without script?


Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/