Coder Social home page Coder Social logo

grjkzp2.github.io's People

Contributors

grjkz avatar

Watchers

 avatar  avatar  avatar

grjkzp2.github.io's Issues

Problem trying to get main.js to work

The purpose of what I'm trying to do is to get my main.js file working with sqlite3 so that I can use onclick() to update the db votes.

When main.js is in the static folder:

<script type='text/javascript' src='/main.js'></script>

It links with the page BUT it can't require('sqlite3');

When I move main.js up to the root alongside the app.js file:

<script type='text/javascript' src='../main.js'></script>
plus other variations of stuff to path into it

The script doesn't link anymore

Back button inside a form

I'm trying to make the back button only redirect. The problem is, I'm trying to get it to work inside a POST form. Can it be done?

<form action="/boards/<%=path%>" method="POST">
        <div class="row">
            <div class="row">
                <label for="topic-input">Topic:</label>
            </div>
            <div class="row">
                <input type="text" placeholder='Topic' name='topic' id='topic-input'>
            </div>
        </div>
        <div class="row">
            <div class="row">
                <label for="detail-input">Comment:</label>
            </div>
            <div class="row">
                <textarea name="detail" id="detail-input" cols="30" rows="10"></textarea>
            </div>
        </div>

        <div class="row">
            <div class="small-6 medium-9 columns">
                <form action="/boards/<%=path%>" method='GET'>
                    <button type='button' action='/boards/<%=path%>'>Back</button>
                </form>
            </div>
            <div class="small-6 medium-3 columns end">
                <button>Create Thread</button>
            </div>
        </div>
    </form>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.