Forum Discussion
GauravSharma3
8 years agoQrew Commander
Hi there,
You can go to the App settings then, click on the new button above the Pages link and select the code page option.
Give the name <YourPageName>.js
Please let me know if you have further questions.
Thanks,
Gaurav
You can go to the App settings then, click on the new button above the Pages link and select the code page option.
Give the name <YourPageName>.js
Please let me know if you have further questions.
Thanks,
Gaurav
- RobertScalise7 years agoQrew CadetGaurav,
I'm having trouble referencing <YourPageName>.js in my HTML code page.
If the pageid of <YourPageName>.js is 48, is this syntax correct?
<link href="https://mydomain.quickbase.com/db/mydbid?a=dbpage&pageID=48">; - GauravSharma37 years agoQrew CommanderHi Robert,
Just to let you know that we use link tag to reference the CSS files and for javascript, we use script tag.
Here are the examples.
For CSS:<link rel="stylesheet" href="https://yourdomain.quickbase.com/db/bnnp8ryeg?a=dbpage&pageID=70">
For JavaScript:<script src="https://yourdomain.quickbase.com/db/bnnp8ryeg?a=dbpage&pageID=71"></script>
You can actually use the page name as well.https://yourdomain.quickbase.com/db/bnnp8ryeg?a=dbpage&pageName=main.css
https://yourdomain.quickbase.com/db/bnnp8ryeg?a=dbpage&pageName=modal.js
_I would suggest you to always use ID because if someone changes the name later then, no need to change the name in your code as you have referenced the ID not name. :)
Please let me know if need any further information.
Thanks,
Gaurav - RobertScalise7 years agoQrew CadetThank You Gaurav.
- _anomDiebolt_7 years agoQrew EliteI would suggest the opposite - that you always use the &pagename parameter so you code is understandable and human readable. If for some reason you change the page name just change it consistently including in your code.
- GauravSharma37 years agoQrew CommanderMake sense my friend. :)