Code Monkey home page Code Monkey logo

Comments (11)

kombai avatar kombai commented on August 23, 2024

Hi,
could you show the "data" string ?

from freewall.

CR34L avatar CR34L commented on August 23, 2024

sure...here it is: (same structure as the default brick class) ... damn github parser..attached a screeny...

screen

freewall is initialized:

$(document).ready(function() {
        var wall = new freewall('#freewall');
        wall.reset({
            selector: '.brick',
            animate: true,
            cellW: 300,
            cellH: 300,
        });
        wall.fitWidth();
});

from freewall.

kombai avatar kombai commented on August 23, 2024
if (data != "") {
  console.log(data);

  wall.appendBlock(data);
  is_rendering = false;
}

could you get screen shot of this ?

from freewall.

CR34L avatar CR34L commented on August 23, 2024

sure...simple infinite scroll stuff: attached below:::

screeny2

from freewall.

kombai avatar kombai commented on August 23, 2024

Please add the line code:

 console.log(data);

in your code.

I want to see the data string show in console.

from freewall.

CR34L avatar CR34L commented on August 23, 2024

the first screenshot I sent shows the plain console output.

plain html

from freewall.

kombai avatar kombai commented on August 23, 2024

Thank you.
Could you test by try:

if (data != "") {
   //wall.appendBlock(data);
   wall.appendBlock("<div class='brick' style='width: 300px; heigh:200px' > test </div>");
}

from freewall.

CR34L avatar CR34L commented on August 23, 2024

..thats working.

var dump = "<_div_class='brick' style='width:300px; height:200px; background-image:url(/uploads/1/6c604707-c7ce-4dd1-b38f-83485d389e69_279x400_fit_aura.jpg)'>";

wall.appendBlock(dump);

its the same in the data string...now I am thinking...ufff.

from freewall.

CR34L avatar CR34L commented on August 23, 2024

FYI: appending a single element (div) is working. But if I append more than one element at the same time it crashes.

from freewall.

Kyojimaru avatar Kyojimaru commented on August 23, 2024

hi, may I know the type of 'data'?
can you test it with

if (data != "") {
   //wall.appendBlock(data);
   var bricks = $(data);
   wall.appendBlock(bricks);
}

from freewall.

kombai avatar kombai commented on August 23, 2024

@Kyojimaru it is String or HTML Element list.
It using this method of jQuery:
http://api.jquery.com/append/

from freewall.

Related Issues (20)

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.