Welcome Guest, Not a member yet? Register   Sign In
is there anyone good with HTMX?
#1
Sad 

So lately I have been trying to play with HTMX, for a fact I come across https://github.com/michalsn/codeigniter-htmx and I have tried their demo version as well.
on this demo on hx-boost they are returning whole page along with header and footer, and it's still getting rendered perfectly, but in my case it's showing a blank page only.

any help would be greatly appreciated.

I am on urge of giving up on HTMX because of this.

@michalsn
Learning Codeigniter 
Reply
#2

Look for whitespace before or after the html opening and closing tags.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(03-30-2023, 11:30 PM)InsiteFX Wrote: Look for whitespace before or after the html opening and closing tags.

well I found whitespace before HTML opening and closing tag, but I can't run the app rn, I will update the status once I am back home. Thank you
Learning Codeigniter 
Reply
#4

(03-30-2023, 11:30 PM)InsiteFX Wrote: Look for whitespace before or after the html opening and closing tags.

I have tried removing those spaces, but it's still not working, here's is a video of my problem. https://screenrec.com/share/pL6aCSITig
Learning Codeigniter 
Reply
#5

Turn on CodeIgniter's Debug Bar it will show you where your error is.
Code:
1) root: edit the env file.
2) # CI_ENVIRONMENT = production add the below
  CI_ENVIRONMENT = development
3) Save the file and rename it from env to .env
4) restart your server.
If it says Intl is missing then you need to edit your php.ini file and add the Intl extension
by removing the semi-colon ;  from it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

see the thing is I don't have any issues rendering the page, only white age is coming when using HTMX.

https://screenrec.com/share/eX8SAmwNE2
Learning Codeigniter 
Reply
#7

I got the error a script tag in the footer was causing this error, But I still would like to know if I want to push script tag or link tag to the header and footer, what would be the way to do it using HTMX?
Learning Codeigniter 
Reply
#8

Installing
Htmx is a dependency-free, browser-oriented javascript library. This means that using it is as simple as adding a <script> tag
to your document head. No need for complicated build steps or systems.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB