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 10 of 10
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    IFRAME.SRC url problem, link problem

    Hi all, I am a new member on this forum, hope i will contribute somehow, but for now I need some help, please.

    I need to:

    iframe.src="http://link.com/~blah blah" + anything + "&continued_link/";

    fix this code I need to have a link that will be made of 3 parts :
    1.start point
    2.user variable
    3.end point.
    thanks in advance.

  • #2
    bdl
    bdl is offline
    Regular Coder
    Join Date
    Apr 2007
    Location
    Camarillo, CA US
    Posts
    590
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Looks like you have the right idea. Can you provide anything more concrete than "blah blah"?

    Oh, and "please this code" would be appropriate, I think.

  • #3
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hi, thanks for your reply.
    for now I need some help, please.
    And I meant "I need to [link] fix this code". I didn't mean to say "fix it". Sorry for misunderstanding.
    Can you help me out, please?
    Well, the link is going to be for my personal web page, something like that:

    "http://domain.com/?ie=UTF8&q=" + var + "&continued_link/"

  • #4
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    this thing is not working


    function functionname(var)
    {

    var iframe = document.getElementById('frame');
    iframe.src = "http://domain.com/?ie=UTF8&q=" + var + "&continued_link/";

    }

  • #5
    Regular Coder
    Join Date
    Mar 2009
    Location
    Portland Oregon
    Posts
    690
    Thanks
    44
    Thanked 63 Times in 62 Posts
    Dont use var as var name
    it works fine
    I used 2234 as test numbers and it loaded a page
    Code:
    <HTML>
    <HEAD>
    <TITLE></TITLE>
    
    <script language="JavaScript">
    function functionname(Num)
    {alert(Num)
    
    var iframe = document.getElementById('frame');
    iframe.src = "http://domain.com/?ie=UTF8&amp;q="+Num+"&amp;continued_link/";
    
    } 
    </script>
    
    </HEAD>
    
    <BODY  onload="functionname(2234)">
    
    <iframe id="frame"></iframe>
    </BODY>
    
    </HTML>

  • Users who have thanked TinyScript for this post:

    Fozz (05-09-2009)

  • #6
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by TinyScript View Post
    Dont use var as var name
    it works fine
    I used 2234 as test numbers and it loaded a page
    hm..thansk for help, but this is not working for me

    PHP Code:
    iframe.src "http://maps.google.com/maps?ie=UTF8&amp;t=h&amp;geocode=&amp;q=" num "&amp;z=5&amp;output=embed/";

    function 
    name(num)
    {
        
    alert(num)
        var 
    iframe document.getElementById('map');
        
    iframe.src "http://maps.google.com/maps?ie=UTF8&amp;t=h&amp;geocode=&amp;q=" num "&amp;z=5&amp;output=embed/";
        

    Last edited by Fozz; 05-09-2009 at 03:02 PM.

  • #7
    Regular Coder
    Join Date
    Mar 2009
    Location
    Portland Oregon
    Posts
    690
    Thanks
    44
    Thanked 63 Times in 62 Posts
    here's something different, but similar. I don't know php, sorry
    Dblclick on the page all the over the place. I was just testing with this.

    Code:
    <html>
    <div id=log></div>
    <script>
    var zoom=6;
    
    window.onmouseclick=function(event){
        //log.innerHTML += "click: "+[event.clientX, event.clientY]+"<br/>";
    }
    window.ondblclick=function(event){
        log.innerHTML = "up: "+[event.clientX, event.clientY]+"<br/>"
    
    var readout2=document.getElementById("readout2");
    
    var arry=[event.clientX, event.clientY];
    /*7...128x128....6...64X64  8...256*/
    readout2.innerHTML="<img  style=width:100%;height:100%; src=http://mt0.google.com/mt/v=ap.92&hl=en&x="+Math.round(arry[0]/25)+"&y="+Math.round(arry[1]/25)+"&z="+zoom+"&s=Galileo>"+(arry[0]/25)+" "+(arry[1]/25)
    }
    window.onmousedown=function(event){
       // log.innerHTML += "down: "+[event.clientX, event.clientY]+"<br/>";
    }
    
    </script>
    
    <div id="readout2" style="width:800px;height:800px"></div>
    
    </html>
    Last edited by TinyScript; 05-09-2009 at 05:53 PM.

  • #8
    Regular Coder
    Join Date
    Mar 2009
    Location
    Portland Oregon
    Posts
    690
    Thanks
    44
    Thanked 63 Times in 62 Posts
    here's my script I made yesterday. I'm still learning with the API.

    make sure you have the key for your site correct.
    http://h1.ripway.com/stirfry/maps/iframe/index.html

  • Users who have thanked TinyScript for this post:

    Fozz (05-09-2009)

  • #9
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks for your reply.
    What you mean?
    Oh the key..damn, but for now I do not have a site, "localhost" for now.
    P.S. it's JS, i used PHP code formatting, that's all.
    Last edited by Fozz; 05-09-2009 at 06:27 PM.

  • #10
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    My script was working, google is b1tching without the key but i need to make my web site on localhost machine damn


  •  

    Posting Permissions

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