Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Making .asp appear with dynamic height, via cross-domain, into HTML

    Hi guys

    I have a news posting script written in ASP from years ago that I intend on using for a new website (purely because I can't write PHP well enough to create a new script and the 25+ example scripts I've downloaded don't quite do what I need). My problem is that, as ASP is now so dated, the files don't render properly on the server.

    So my idea was to upload these files to an ASP-compatible free host and reference them within the HTML on the real domain. With HTML or PHP includes this doesn't work but it does seem possible with the use of iFrames.

    The problem with using iFrames though is that I can't get the height to change depending on the content of my remote .asp file. It only seems to work based on a pre-declared height, but of course the height is going to change as news posts are made.

    My question is, does anyone know of a working solution for what I'm trying to achieve, or has anybody cracked dynamic height adjustments using iFrames and files on different domains?

    Thanks in advance.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Uhm… actually ASP has nothing to do with the outcome in the browser, it’s HTML in combination with CSS that is defining how something looks. So, the problem is not your ASP, it’s probably the HTML you’ve written in there that is supposed to render in the browser. Please give us the output source code as you see it when choosing “view source” in the browser and we might be able to figure somethig out.

  • #3
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    As you say, there is no problem with the ASP itself. Viewing the ASP on the free server that has ASP support shows the page as intended. Viewing the ASP on my 'real' server just shows its source code in the browser window though, the page doesn't render because the server doesnt support ASP.

    What I want is for the iFrame on the main server to expand to allow the whole of the .asp file to show. Any ideas?
    Last edited by Crstf; 11-02-2011 at 10:22 PM.

  • #4
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,718
    Thanks
    41
    Thanked 191 Times in 190 Posts
    are you trying to develop asp without the framework? that won't work...
    as for finding out the height "dynamically" through the iframe, that will not work if they are not on same server/same project (and even then if possible a pain in the *)... are you just trying to make changes to the asp pages and then upload them to a server? I think visual studio express is a free download (limited capability but would allow you to develop and debug *I think*)....
    also looking at the code in the iframe, some of it is outdated, if you are starting up from scratch I would take some time and change things to modern conventions (one thing I saw that stood out the most was the use of <center> tags)

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #5
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I'm not developing any .asp because the existing news posting script has a log in/post/log out system which works really well, and I want to reuse it. It's a system someone else created for me years ago.

    I totally agree about the dynamic height increase being a pain the @ss, it's stumped me for a good few days now so I wondered if any of you guys had any thoughts. I'm not giving up easily though! There must be a way....!?

    What's wrong with <center> ? The code you're looking at is indeed years old but even nowadays I find that <center> still gets the job done when needed

  • #6
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    For anyone else who has this problem, see the top answer at http://stackoverflow.com/questions/1...sed-on-content

    did the trick for me

  • #7
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,718
    Thanks
    41
    Thanked 191 Times in 190 Posts
    glad u got it working... as for the center
    w3.org Ref for center deeming it non-conforming obsolete
    and this furthermore does... now I'm pretty sure i read somewhere that non-conforming obsolete items would essentially stop working (but that's a *thought I read)... but they may or may not work pending browser support

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •