Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: fluidtextresizer localstorage ?

  1. #1
    Join Date
    Jun 2015
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question fluidtextresizer localstorage ?

    1) Script Title: fluidtextresizer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...extresizer.htm

    3) Describe problem: there is a cookies/session . there is no local storage. is there an option to add it ? how ?

    regards - liat

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There's no tangible benefits to switching over to using LocalStorage in this case as far as I can see. Is there a reason for your asking?
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    liat (07-13-2015)

  4. #3
    Join Date
    Jun 2015
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    ddadmin hi, when using the fluidtextresizer in an app - after close and a open again the app the user should set again and again the font size he prfer that is why i think it will be benefits using local storage. what do you think about it ?
    best regards

  5. #4
    Join Date
    Jun 2015
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    at the dynamicdrive site the demo is great and even after reload it save the data. but when i used the script on site and at an app it did'nt save any data. is it a solution for that ?

  6. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    It's impossible to answer or troubleshoot something we can't see. If you provide a link we can help troubleshoot why cookies aren't working for you.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  7. The Following User Says Thank You to Beverleyh For This Useful Post:

    liat (07-13-2015)

  8. #6
    Join Date
    Jun 2015
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    hi beverleyh thank for your answer. the code is exactly as [url] http://www.dynamicdrive.com/dynamicindex9/fluidtextresizer.htm. i copied step 1 and step 2 and add http://www.dynamicdrive.com/dynamici...textresizer.js so the text resize fine but the cookies aren't working.
    i wonder, is there something i should add or change like set cookies function for sepcific days and etc . (i havn't doen it) ?
    Last edited by liat; 07-12-2015 at 04:01 PM. Reason: Spelling mistake

  9. #7
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The demo page works fine so we don't need to troubleshoot that. We need to see YOUR page in order to work out why YOUR setup isn't working as expected.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  10. The Following User Says Thank You to Beverleyh For This Useful Post:

    liat (07-13-2015)

  11. #8
    Join Date
    Jun 2015
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    this is the html
    Code:
    <!DOCTYPE html>
    <html>
    <head>
    
     <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="css/jquery.mobile-1.4.5.css">
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    
    <script type="text/javascript" src="js/fluidtextresizer.js">
    
    /***********************************************
    * Fluid Text Resizer-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/
    </script>
    <script type="text/javascript">
    var mytextsizer=new fluidtextresizer({
    	controlsdiv: "sizecontroldiv", //id of special div containing your resize controls. Enter "" if not defined
    	targets: ["body"], //target elements to resize text within: ["selector1", "selector2", etc]
    	levels: 6, //number of levels users can magnify (or shrink) text
    	persist: "session", //enter "session" or "none"
    	animate: 200 //animation duration of text resize. Enter 0 to disable
    })
    </script>
    <div data-role="page" id="page10">
      <div data-role="header" data-position="fixed" data-fullscreen="true">
        <h1>test</h1>
    	  <div data-role="main" class="ui-content">
        <p> Mobile Developer!!</p>
    	<div id="sizecontroldiv" class="controlstyle">
    Increase/Decrease controls: <a href="#smaller"><img src="fontminus.gif" /></a> *<a href="#bigger"><img src="fontplus.gif" /></a><br /><br />
    Font levels controls: <a href="#fontsize-1"><img src="-1.gif" /></a> <a href="#fontsize0"><img src="0.gif" /></a> <a href="#fontsize1"><img src="1.gif" /></a> <a href="#fontsize2"><img src="2.gif" /></a>
    </div>
    <p>Arbitrary link control: <a href="javascript:mytextsizer.setFontLevel(0)">Set font level to default</a>
    	  </div>
      <div data-role="footer" data-position="fixed" data-fullscreen="true">
        <h1>Footer Text</h1>
      </div>
    </div>
    </body>
    </html>
    the js is the same exactly as (no any change) http://www.dynamicdrive.com/dynamici...textresizer.js

  12. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I'm afraid I can't phrase it any other way. We need to see your actual live web page.

    Guessing might present 20 possible reasons as to why your page isn't working, but realistically, nobody is going to waste their time thinking of them and typing them, when the quickest way is for you to provide the link to the problematic page. If you want help, you need to make it easy for people to give you help.

    Think of it this way - I have the same car as my next door neighbour. He's been having problems starting his this past week, yet mine has started first time, every time. What do you think the mechanic would say if he took MY car to the garage and asked why HIS wont start?
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  13. The Following User Says Thank You to Beverleyh For This Useful Post:

    liat (07-13-2015)

  14. #10
    Join Date
    Jun 2015
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    I appreciate your attempt to figure it out. Although due to unworking cookies the fluidtextresizer is'nt combined now in any site so all it has now is the two file above.A code as shown at the dynamicdrive site as it recommended for use. Thank you any way. If you will have any idea or possible options it will be welcome.

Similar Threads

  1. Fluidtextresizer disables Nivoslider
    By janvl in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 12-16-2012, 05:44 AM
  2. Replies: 0
    Last Post: 12-07-2012, 01:41 PM
  3. Cookie script to LocalStorage?
    By pxlcreations in forum JavaScript
    Replies: 19
    Last Post: 07-10-2010, 09:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •