Hi! I’ve got an page running some custom code (html/javascript) wich works greate. But when i add more data to it, over a sertant amount, the page does not “validate” on wix. I’ve tried adding/removing diffrent lines, added test data and tested the hole code on all of the availeble “codesites” on the internet where it works. Is there an limitation to on wix? (as it states it does not have) or/and how do i figure out what the cause is?
Hi CaptWest,
Can you provide some more details and screenshots about the error messages? How much data are you adding?
Hi, I do not get any error messages as i know of. it does not update the code, the old one still remains. if i delete it stays empty.
When i add 350 data points/lines in my leaflet code it does work. Above 351 i does not. guess how many tries i did before i reached 351…
You will need to provide more information for us to be able to assist you. Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block as stated in the Forum Guidelines.
Hi, Sorry for the late response. When i add my code to the “code box” i don’t get any error messages, it just does not update. If i remove the old code and update, the page is gray and whit no code.
I add about 1300 leafletjs markers and 1500 lines of code.
var marker1308 = L.marker([xxxx, xxxxx],{icon:xxxxx, title:1308, alt:‘xxxxxxxx’, riseOnHover:true}).addTo(xxxxxx)
.bindPopup(‘# | |
xxxxxxxx
xxxxxxxxx
xxxxxx
xxxxxxx’); markers.push(marker1308);
I don’t know what else i should be providing. I don’t have any error messages, it does not publish anything.
This forum is dedicated to Corvid and and can’t provide support for HTML scripts. You will need to check with the originators of the leafletjs script to find out what the limitations are, and how to get it work.
I know, and i don’t looking for help about the script. I can’t figure out why it’s not working here, but on all other test platforms it works. So my question is; is there any limitation in the codebox/owncode? Is there something that is unsupported?
By “code box”, do you mean an HtmlComponent? I’m not aware of any limits that would cause your problem. I’ve embedded some quite large scripts, and have seen other large scripts, that work just fine.
It might be that you have a subtle error in the code that might not manifest itself in other environments. The service provider might also be imposing certain limits on code embedded in an HtmlComponent.
You will have to debug the script to see why a certain number of markers causes a problem. Are you getting any messages in the browser’s developers console?
Yes, Sorry for mixing terms. Developer console is empty and that’s why i’m out of clues. I have no leads, errors or anything that could help, it just doesn’t work. I might have an error in my code, but i can’t see what it could be.