I recently moved my website to a new web host and noticed that the nivo.slider nav's are not working correctly. Rather than let the user cycle through the images in the slider, it sends the user to another one of my pages. This only happens in browsers other than IE. Not sure why it is doing this Below is my JS code for the slider. Any and all help is greatly appreciated. My code is actually 60,000 characters too long to be posts, so I have stuck it in my Dropbox. Link is below. Thank you!
Javascript: https://www.dropbox.com/s/jbpvihwi8fer4fs/jquery.nivo.slider.js?dl=0
Related
We're hoping to get feedback on a new site launch (beta; site will fully launch March 28). To give end users the chance to explore the site, we'd like the pop-up to appear after 10 seconds. I'm extremely new to coding JavaScript on my own, so any help is greatly appreciated.
I found an answer to a very similar question (and indeed, some answers seemed more specific to my situation): delayed pop-up code; however, I can't get the code to work on my site.
The pop-up is embedded using this JavaScript, supplied by SurveyMonkey. There's no associated HTML or CSS.
(function(t,e,s,o){var n,c,l;t.SMCX=t.SMCX||[],e.getElementById(o)||(n=e.getElementsByTagName(s),c=n[n.length-1],l=e.createElement(s),l.type="text/javascript",l.async=!0,l.id=o,l.src=["https:"===location.protocol?"https://":"http://","widget.surveymonkey.com/collect/website/js/tRaiETqnLgj758hTBazgd8fe_2Bhm5gFnGqBOI61Z1zZLxwDFd6OcUAaoSp03T3t6v.js"].join(""),c.parentNode.insertBefore(l,c))})(window,document,"script","smcx-sdk");
And this is the code I currently have, modified from one of the answers in the previous post.
function OpenSurvey(t,e,s,o){};
window.setTimeout(function(){ OpenSurvey(window,document,"script","smcx-sdk"); }, 10000);
I was running into the same issue today and I managed to get it working with this code. I hope this helps:
setTimeout(function(){ OpenSurvey(window,document,"script","smcx-sdk"); }, 60000);
function OpenSurvey(t,e,s,o){var n,a,c;t.SMCX=t.SMCX||[],e.getElementById(o)||(n=e.getElementsByTagName(s),a=n[n.length-1],c=e.createElement(s),c.type="text/javascript",c.async=!0,c.id=o,c.src=["https:"===location.protocol?"https://":"http://","widget.surveymonkey.com/collect/website/js/xxxxxxx.js"].join(""),a.parentNode.insertBefore(c,a))}
I had this exact same issue and was beating my head into my desk trying to make this work by editing the code snippet from SurveyMonkey. I called SurveyMonkey and the most they could do was to send me an additional snippet with some new handlers - didn't work. Finally, I was about to call WIX and while making my way down the tree to find the best phone option for me, the site suggested I try reading the tutorial on embedding 3rd party code. BINGO!
Long story short, click this link and follow the instructions - ridiculously easy to implement and you don't have to paste the snippet into the page code - there is a specific section in the Advanced Setting of your site Dashboard (not the WIX account dashboard or the editor, if you ARE on the WIX dashboard click on your sites thumbnail and look for Settings in the dark blue right rail, then click Advanced Settings in the body of the page). Link to WIX instructions for 3rd party code below:
https://support.wix.com/en/article/embedding-custom-code-to-your-site#working-with-third-party-code
Good luck with your endeavores and I really hope this helps! The most challenging part of this was honestly getting the dashboards confused until I realized they meant to go to that particular site's settings.
BrZrKr
https://github.com/mliu95/quintus-tag
Source code is there.
I was following Liu's tutorial on this (https://mliu95.github.io/2014/09/16/Creating-an-online-multiplayer-web-game-using-Socketio-and-Quintus-Part2/)
Part 1 worked perfectly fine (single player with a movable sprite). However, upon introducing multiplayer (accomplished by opening multiple windows with localhost:8080), the sprites simply don't appear on the screen.
Also, you are dealing with a complete noob in terms of networking. I know a decent amount of Java but have no experience whatsoever. Any advice would be greatly appreciated.
You didn't give much information to go on, and didn't respond to my question in the comments that could clarify the issue.
But here is what I think is happening, in part one of the tutorial he lists his sprite paths here:
var files = [
'/images/tiles.png',
'/maps/arena.json',
'/images/sprites.png',
'/images/sprites.json'
];
I'm assuming your sprites are 404'ing (not being found), so here is a possible fix.
Your file structure is probably not the same as his, where are you storing the sprite images locally (on your pc)? It needs to be in the same paths as shown above. Sprites should be located in YourProjectFolder/images. Make sure your your sprite file is named sprites.png
After making sure all those files are placed correctly, open your developer tools (f12), head to the network tab, check the "disable cache" box (if you're on chrome). And refresh.
It should load your sprites after these changes, and if not, you need to post the specific errors you are running into. The errors will show up in developer tools after you refreshed, if it is still unable to find them.
Good luck
I wanted to add a cool new feature to my website that allows for clickable popup java-script thumbnails using HighSlide. I have thoroughly searched stackoverflow, google, and the forum on highslide for a solution to my problem to no avail.
The main problem I am experience is the onclick java function, which, when clicked, is supposed to enlarge one of the images. However, instead of it opening up, I get a perpetual loading message.
http://untetheredthoughts.com/highslide-custom-example.htm
Upon my examination of other people who have had a similar error, they needed to ensure that all paths to the files were setup correctly, which I have double checked. I am still new to coding, so if anyone could give me some pointers, I would greatly appreciate it.
Thank you for your time, I am very excited to get this working.
There's a longstanding bug in the "editor" on the Highslide JS site, and it always makes the same mistake! Open the highslide.config.js file, then:
Change:
hs.outlineType = 'custom';
To:
hs.outlineType = '';
I think that will cure the problem. If not, post back, and we can start looking at some of the other usual suspects. ;)
I have 3 pages with different banners sets, they are JSSOR slides and where working okay, but suddenly all of them stop working properly , the background is not showing up. What is this about? do they upgrade something in the plugin? can somebody from JSSOR help me?
Here are one of my pages
Alpanel
there isn't any JavaScript messages in the browser console, they are in diferent hosts , and actually I am building a new page in my localhost and last week it works, but now it doesn't
I just upload the banner in this link Banner if there is someone that can look it for me and let me know what happend, with /js after domine you will find all js code like normal.
I have a ASP.NET Application and I want to use the tag to play music.
In the codebehind I write this element
<audio controls preload src='PATH/TO/FILE'></audio>
into a literal.
The Problem is that the player crashes when I click in the seek bar at a position behind the current position.
There is no error message or any other response. It just stops working. I have to reload the page to get it working again.
Seeking forward just works fine with small files. With larger files (a song with about 2:00 min) the controls gets grey and nothing happens anymore until I click in the seekbar again nearby the starting position.
When I create a simple HTML File with nothing else than this audio tag the seeking works.
I'm using Chrome v. 26.
I have no idea why this is not working in the ASP.NET application...
The next problem is that I can't use something like soundmanager2 oder jPlayer. I used soundmanager2 before but I had many problems with it.
In the test above I just use one sound file with the audio tag but in the final state there will be a couple of players.
the sound files are created dynamically and so are the players and this happens with ajax. I had to recreate the soundmanager2 object every time and there occurred several problems.
So my hope is that somebody maybe has an idea why the audio tag is not working correctly in the ASP.NET application or give me a hint to something how I can achieve it to have multiple audio players on one page which changes dynamically per ajax.
i finally found it...
This post helped me
The problem was that the path of the sound file was on localhost.
After i uploaded it to a server and used that url it worked.
I think that the reason it worked with the simple HTML testfile was because i used an absolute Path there to the wavfile.