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 2 of 2
  1. #1
    PGG
    PGG is offline
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy window.location.search problem in frameset!

    Hello there!
    I've got a problem with location.search string in my webpage, if someone can help me I really appreciatte:

    I got a webpage index.htm wich include a frameset:

    <head>
    <title>PgTitle</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <frameset cols="550,107" frameborder="yes" border="0" framespacing="0">
    <frame name="fmain" src="ind-main.htm?parameters">
    <frame name="fright" src="ind-thumb.htm">
    </frameset>
    <noframes>
    <body bgcolor="#FFCC99" text="#000000">
    </body>
    </noframes>
    </html>

    when the frame FMAIN is loaded the thing works perfectly if I write the parameters "?parameters" between quotes but I need to change the "parameters" every time I access my site, using window.location.search,
    the idea is call index.htm with the parameters:

    http://location/index.htm?parameters

    and then locate the "parameters" into src of FMAIN frame, I tried everything:

    <frame name="fmain" src="ind-main.htm"+location.search>
    <frame name="fmain" src="javascript:'ind-main.htm'+location.search'">
    <frame name="fmain" src="ind-main.htm?"+String_parameters_without?">
    <frame name="fmain" src="ind-main.htm?"+{variable}">
    <frame name="fmain" src="javascript: functionparam()">

    always ind-main.htm receive " empty " in its location.search but if I write the parameters ind-main receive location.search correctly, so someone can helpme to embbeded a string into a frame's SRC attribute .
    Thanks

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, when you manually type in the parameters, how does ind-main.htm pickup these parameters?

    I know using PHP you would use the $_GET array. I'm not sure what mechanism you're using in ind-main.htm, but you'd probably use a similar mechanism in index.htm and then concatenate to the ind-main.htm line.

    Hope that helps,
    Sadiq.


  •  

    Posting Permissions

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