VideoHelp Forum




+ Reply to Thread
Results 1 to 14 of 14
  1. Member LSchafroth's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    I am building a web site that uses a inline frames. The left frame is Left_Frame and the main window inline frame is called Main_Frame.

    Here is how I build the links in the left frame populate the main window and update the menus on the left frame:

    <a href="#" onClick="parent.Left_Frame.location='left_news.asp '; parent.Main_Frame.location='main_frame.htm'; return false;">

    Now I have a news page using ASP code. It resides on the left and I need it to launch a page in the main window similar to the links method above but it is in vb code.

    response.write "<span style=""font-size : "& Headline_Font_Size &"; FONT-FAMILY: "& Headline_Font_Face_Type &"; line-height :14pt"">" & Rec("headline") & "
    </span>" & vbcrlf

    Anyone able to add the link functionality like above to the code?

    Lannie
    Quote Quote  
  2. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Try this:

    Code:
    <a href="#" onclick="parent.Main_Frame.location='news/read_news.asp?newsID=<%= Rec("newsID")%>><%= & Rec("headline")%>'; return false;">
    No guarantees though
    If in doubt, Google it.
    Quote Quote  
  3. Mod Neophyte redwudz's Avatar
    Join Date
    Sep 2002
    Location
    USA
    Search Comp PM
    This would get more views in Programming. Moving you.
    Quote Quote  
  4. Member LSchafroth's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Originally Posted by jimmalenko
    Try this:

    Code:
    <a href="#" onclick="parent.Main_Frame.location='news/read_news.asp?newsID=<%= Rec("newsID")%>><%= & Rec("headline")%>'; return false;">
    No guarantees though
    Don't I have to have the responsewirite commands in there too?

    LS
    Quote Quote  
  5. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Response.Write is VBScript. You can use that or you can use HTML with javascript commands, which is what I thought you wanted ?
    If in doubt, Google it.
    Quote Quote  
  6. Member LSchafroth's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Originally Posted by jimmalenko
    Response.Write is VBScript. You can use that or you can use HTML with javascript commands, which is what I thought you wanted ?
    Sorry if I confused you.
    I want to add the parent.frame type link into the vbscript line provided aove.

    LS

    PS I'm a newbie when it comes to vbscript.
    Quote Quote  
  7. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Ahhhh !

    Should be as easy as:

    response.write "<span style=""font-size : "& Headline_Font_Size &"; FONT-FAMILY: "& Headline_Font_Face_Type &"; line-height :14pt"">" & Rec("headline") & "
    </span>" & vbcrlf
    If in doubt, Google it.
    Quote Quote  
  8. Member LSchafroth's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Originally Posted by jimmalenko
    Ahhhh !

    Should be as easy as:

    response.write "<span style=""font-size : "& Headline_Font_Size &"; FONT-FAMILY: "& Headline_Font_Face_Type &"; line-height :14pt"">" & Rec("headline") & "
    </span>" & vbcrlf
    I tried doing the target command before and since this is coming from the "Left_Frame" it must not know about the "Main_Frame". I will give it a try. I appreciate the help!!

    LS

    PS I have a single default.htm. The left inline frame and the middle inline frame. It appears the left inline frame knows nothing about the main inline frame. When I do the target = "Main_Frame" it always opens up a new window.
    Quote Quote  
  9. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    Why do you use inline frames instead of a regular frame set? It's much easier to work with.

    /Mats
    Quote Quote  
  10. Member LSchafroth's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Originally Posted by jimmalenko
    Ahhhh !

    Should be as easy as:

    response.write "<span style=""font-size : "& Headline_Font_Size &"; FONT-FAMILY: "& Headline_Font_Face_Type &"; line-height :14pt"">" & Rec("headline") & "
    </span>" & vbcrlf
    It works!!! You are the man!

    I appreciate the help. Now I need to print out both lines and learn what you did and how the VB code works.

    Thanks again!

    LS
    Quote Quote  
  11. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    The only thing I did was add this in:

    Code:
    target=""Main_Frame""
    The double double quotes indicate that I want Main_Frame to be enclosed in one set of double quotes ...

    Not required though. You could always just put

    Code:
    target=Main_Frame
    and it should still work.
    If in doubt, Google it.
    Quote Quote  
  12. Member LSchafroth's Avatar
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    Originally Posted by jimmalenko
    Code:
    target=Main_Frame
    and it should still work.
    Now I feel stupid. I as putting in "_Main_Frame" like when you do "_self". Took out the underscore like you showed me and it works!

    hehe..

    LS
    Quote Quote  
  13. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Originally Posted by LSchafroth
    Now I feel stupid. I as putting in "_Main_Frame" like when you do "_self". Took out the underscore like you showed me and it works!
    D'oh

    Yeah, you can use the global defined constants (_self, _parent, _blank) or you can just use the frame name.
    If in doubt, Google it.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!