Jump to content

Search the Community

Showing results for tags 'detailspage'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Caspio Bridge
    • Caspio Apps for Ukraine
    • General Questions
    • Caspio JavaScript Solutions
    • Tables, Views and Relationships
    • Import/Export and DataHub
    • DataPages
    • Deployment
    • Security, Authentications, Roles, SAML
    • Styles and Localizations
    • Parameters
    • API and Integration
    • Calculations and aggregations
    • User JavaScript and CSS Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Website URL


ICQ


Yahoo


Skype


Location


Interests

Found 1 result

  1. So I was exploring the functionalities of the localstorage function within javascript. I want to plass information between two webpages. When I save data from the results page and later call that information in a webform it works as desired. But, when i try to do so from a details page, it returns null everytime. I do the exact same thing in the details page as in the results page, but somehow the script does not get executed. In the footer of the details page i made a button: <script type="text/javascript"> function myFunction(){ localStorage.setItem('title','Example'); } </script> <button onclick="myFunction()">Store data</button> In the submission form I placed the following code in an html block: <script> var title = localStorage.getItem('title'); document.write(title); </script> The document write function displays null. When I save it on the results page it displays Example. Does anyone know to correctly execute the script?
×
×
  • Create New...