How do I embed Wishbox code snippet into a JavaScript file?

  • Profile Image
    bhouse
    Asked on November 30, 2011 at 02:24 PM

    The embed code that is generated is a script you would place into a .html or .php file for example. How would I go about altering the embed code so that I can stick it into my website's custom scripts file? I imagine this would involve stripping thethat would need to be altered.

    In other words, is there any way to put the generated source code for Wishbox into a .js file? The problem I'm experiencing is WishBox is causing a conflict with my other JavaScripts, in particular my homepage image slider.

    Thanks for any help.

  • Profile Image
    fxr
    Answered on November 30, 2011 at 06:36 PM

    If there is a conflict between your pages javascript and Wishbox code, stripping out the Wishbox code and adding it to your customs script file wont make any difference (unless I am very much mistaken).

    What is the conflict? Do you have an example page showing it?

    I know the developers are to keen to hear of bugs like yours so they can go about resolving as many of them they can. (its possible the issue you witnessed has already been fixed)

  • Profile Image
    bhouse
    Answered on December 01, 2011 at 02:54 PM

    My homepage JavaScript image slider breaks when I try to embed the WishBox code into my header.php file. I'm wondering what type of conflict is going on here? I'm using this slider: http://nivo.dev7studios.com/

  • Profile Image
    fxr
    Answered on December 01, 2011 at 07:21 PM

    Its very hard for me to forward your issue to our developers without a page showing the exact conflict, (if there is one)

    Is it at all possible for you create a copy of your I assume, live webpage and put the wishbox code into it so we can see whats going on? 

    It should be just a matter of copying the entire contents of the HTML/php page and dumping it into file in the same directory on your web server. 

  • Profile Image
    bhouse
    Answered on December 01, 2011 at 07:28 PM

    Ok, let me do that and get back to you. I'll try to have that up in a few hours. Thank you.

  • Profile Image
    fxr
    Answered on December 01, 2011 at 07:44 PM

    Thanks, I know the developers will appreicate the effort you have went to, to show them this particular bug. 

  • Profile Image
    bhouse
    Answered on December 01, 2011 at 11:25 PM

    No problem at all. Hey, would it be possible for one of your developers to email me at the email listed on my account to resolve this issue?

  • Profile Image
    fxr
    Answered on December 02, 2011 at 05:09 AM

    No, i'm afraid that isnt possible.

    All support requests / bug issues are handled and tracked via the forum.

  • Profile Image
    bhouse
    Answered on December 06, 2011 at 10:07 PM

    Hi, letting you know this issue is resolved! I tried embedding the WishBox code snippet into my site again and everything works fine. Whatever was going on with my JavaScript image slider must have been fixed by your development team. Thanks.

  • Profile Image
    fxr
    Answered on December 07, 2011 at 03:59 AM

    Happy to hear Wishbox is now functioning properly with the javascript already on your webpage. Thanks for letting us know.