Jump to content

Search the Community

Showing results for tags 'footer'.

  • 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 5 results

  1. Hi, For the life of me I can't get this to work. I've tried 20 different solutions from S.O., had ChatGTP4 modify the code, etc. Hopefully, someone on this forum will have run into this and made it work... I have a simple html page that host 2 datapages, one for content and the other for the footer. The content datapage is a tabular report and the number of records varies from 1 to more than a 100, so the length on a page is dynamic and can run into multiple pages on print, and anywhere in the page: top, somewhere in the middle, bottom. The footer datapage is a details datapage with simple user name/address info that's usually 1-3 lines of text. I don't believe the datapages are the problem here as I've tried removing them and just putting text for content--with the same result. If I stick/anchor the footer to the bottom of the last page, for printing, I keep getting an extra blank page in print preview. Altering the CSS to remove the extra blank page "un-fixes" the footer from the bottom of the last page. I need both, in print preview: the footer to stick to the bottom of the last page only, and there to be no extra blank page after the footer. Does anyone have a solution to this? Here's the code I'm using that does stick the header at the bottom of the last page but has an empty blank page after it: <html> <style type="text/css" media="print"> @media print { body { position: relative; } .footer { position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; } .content { margin-bottom: 60px; /* This ensures there is space for the footer */ } .page-break { display: block; page-break-before: always; } } </style> <body> <div class="content"> <script type="text/javascript" src="https://c0afw773.caspio.com/dp/c21040009f7f41d6de1a40ebaf0b/emb"></script> <div class="page-break"></div> <!-- This forces a page break --> </div> <div class="footer" id="footer" style="height:50px; width:100%"> <script type="text/javascript" src="https://c0afw773.caspio.com/scripts/embed.js"></script><script type="text/javascript">try{f_cbload(true, "c0afw773.caspio.com", "c2104000b2ca60c9339141d0a10d");}catch(v_e){;}</script> </div> </body> </html>
  2. I am trying to allow for this JQuery tag affect to occur when the user types in to the text area in the virtual field of my submission form but have not been successful. Disclosure: Since I am new to Javascript, I was wondering if I am referencing the JQuery and Tag-It components properly? I attempted switching the id/class element with "cbParamVirtual1" and "caspioform" but no luck. I would appreciate anyone's feedback. (This is in the footer of the datapage.) <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript" charset="utf-8"></script><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/tag-it/2.0/js/tag-it.js" type="text/javascript" charset="utf-8"></script> <script language="JavaScript"> $(function(){ //------------------------------- // Single field //------------------------------- $('cbParamVirtual1').tagit({ // This will make Tag-it submit a single form value, as a comma-delimited field. singleField: true, singleFieldDelimiter: ',', singleFieldNode: $('#mySingleField') }); }); </script>
  3. I have the following code in the footer and it produces a button on the bottom of my results page that works to redirect the user to another url. <script type="text/javascript"> if(!document.getElementById("norecord")) { document.write('<button onclick=document.location.href="https://www.myirlog.com/logbook/new-record-entry">No, Really, I want to add a new record</button>'); } </script> However, when I put that same code inside of an HTML block, it does not work: <script type="text/javascript"> if('[@field:participant_1_name]' != '[@authfield:Name]' && '[@field:participant_2_name]' != '[@authfield:Name]' && '[@field:participant_3_name]' != '[@authfield:Name]' ) { if('[@field:participant_2_name]' == '' || '[@field:participant_3_name]' == '' ) { document.write('<button onclick=document.location.href="https://www.google.com">take me away</button>'); } } </script> The buttons appear in both locations, but only the footer button works, when the in-line button (the one coded in the HTML block) is clicked, the whole page just refreshes instead of going to google.
  4. Hi all ! Does anyone has a solution for this? I need to hide some text on the details page, when AuthField' value is not equal value from the Field#2. Merci!
  5. Hi! I have multiple scripts for a submission page. When I execute the page I am only able to get one to work at a time. Not all three. I am not sure what I am doing wrong. Any help or advice would be appreciated. I have pasted the scripts below. I have all the scripts in the footer of the page. The first simply checks that the MOQ field is greater than the Inner Pack field. The second checks that cost is less than retail. They third, if the virtual check box is checked, it will copy the data from the Vendor VPN field to the Vendor Style field. <SCRIPT LANGUAGE="JavaScript"> function check() { var v_moq = parseFloat(document.getElementById("InsertRecordMOQ").value); var v_innerpack = parseFloat(document.getElementById("InsertRecordINNERPACK").value); if(v_moq<v_innerpack) { window.alert("MOQ Must Be Less Than The Inner Pack"); return false; } } document.getElementById("caspioform").onsubmit=check; </SCRIPT> <SCRIPT LANGUAGE="JavaScript"> function check() { var v_cost = parseFloat(document.getElementById("InsertRecordCOST").value); var v_retail = parseFloat(document.getElementById("InsertRecordRETAIL").value); if(v_cost>v_retail) { window.alert("Vendor Cost must be less than Retail"); return false; } } document.getElementById("caspioform").onsubmit=check; </SCRIPT> <script> function f_vendorstyle() { if(document.getElementById('cbParamVirtual1').checked) { document.getElementById('InsertRecordVENDORSTYLE').value=document.getElementById('InsertRecordVENDORVPN').value; } else { document.getElementById('InsertRecordVENDORSTYLE').value=""; } } document.getElementById('cbParamVirtual1').onclick= f_vendorstyle; </script>
×
×
  • Create New...