Dynamic content and URL parameters without javascript?

  • Unknown's avatar

    I’d like to make a lightweight tool on my site that would involve some user interaction and dynamic content changes that I’d normally do with javascript, but I can’t add script tags to my site with the plan I’m on. Is there another way to handle dynamic user interaction without javascript?

    Also, is there a way to get URL parameters without javascript?

    If dynamic content or capturing URL parameters aren’t possible without javascript, which of the plans would be best suited to allow me to do so without breaking the bank?

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    Is there another way to handle dynamic user interaction without javascript?

    No, there is not. This is literally what JavaScript exists for on the web – HTML for content, CSS for styling, and JS for anything that’s interactive.

    Also, is there a way to get URL parameters without javascript?

    URL parameters/queries are a feature of the GET method in PHP, the language that’s used to create the website and interact with the database on the server’s side. JavaScript itself has nothing to do with handling query string parameters.

    Adding custom JavaScript code to your site’s content, or modifying your site’s PHP code, are both only possible on our Business Plan or higher. Though if you’re going to be doing something that requires you messing with PHP, I’d recommend you see if you can’t create a custom WordPress plugin to add the functions you want available instead – that would ultimately be much easier to maintain than a bunch of custom code added directly to the site. Also keep in mind that any direct modifications you make to a WordPress installation will be wiped out every time the software updates.

    We’re not able to help with custom code like this, so if you need help with the coding side of things, you can try the advanced forums on WordPress.org, or a developers forum like Stackexchange.

  • The topic ‘Dynamic content and URL parameters without javascript?’ is closed to new replies.