Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Embed Vanilla

Hi, I'm mixing my ASP C#.net website with Vanilla using Vanilla.

I was thinking of having a button under the div named "get link" which would save the link of the current vanilla page to a string.
Is there a way to do that? I tried playing around with the PHP file but to no avail.

I'm doing this for educational purposes, I hope someone can assist me :(

Comments

  • Options
    422422 Developer MVP
    edited February 2013

    Not sure you can do that with iFrame, couldnt you use curl

    There was an error rendering this rich post.

  • Options

    i'm not familiar with curl tho, is that a plugin? i just need some way to embed the website and a way to obtain the present link

  • Options
    422422 Developer MVP
    edited February 2013

    The iframe is the url, thus it will always have that one url.

    I think you can try and fetch iframe src ( current )

    
            function ShowURLs() {
                var control = document.getElementById("mainContent");
                alert("iframe source = " + control.src);
                alert("this page = " + location.href);
            }
        
    

    resource: http://stackoverflow.com/a/938195/501173

    There was an error rendering this rich post.

  • Options

    I was having the same problem, I stopped using the embed vanilla and used the iFrame instead.

    On visual studio 2012, you can't use the runat="server" for obtaining your src, but this works aswell. Kudo's 422!

  • Options

    you are going to have be more descriptive with your question...

    grep is your friend.

Sign In or Register to comment.