Results 1 to 5 of 5
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    48
    Hello, What do I need to do so when I user clicks search the results open in a NEW window and users don't leave my site? TIA!


    <p align="Center"> <HTML>
    <BODY>
    <script language="JavaScript1.1">
    var eBayMP_partner = "711-1751-4022-31";
    // Please don't change any javascript below this line.
    var eBayRedirectURL = "http://adfarm.mediaplex.com/ad/ck/" + eBayMP_partner + "?loc=";
    function redirectEnter(form,url){
    var eBayURL = url;
    for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if ((e.type != "image") && (e.type != "button") && (e.type != "submit")){
    if(i==0){
    eBayURL += "?" + e.name + "=" + e.value;
    }
    else{
    eBayURL += "&" + e.name + "=" + e.value;
    }
    }
    }
    var temp = eBayRedirectURL + escape(eBayURL);
    document.location = temp;
    }
    </script>
    <table width="300" border="2" cellspacing="0" cellpadding="0" bordercolor="#EAEAF2" bgcolor="#FFFFFF">
    <tr>
    <td> <img src="http://img-snv.mediaplex.com/ads/711/1751/ebay_logo_300x50lycos.gif" width="80" height="46" align="left">
    <table border=0 cellpadding=1 cellspacing=0 height="46">
    <FORM action="http://service.bfast.com/bfast/click?bfmid=XXXXX&siteid=XXXXXX&bfpage=350x50_search_border" onSubmit="redirectEnter(this,'http://service.bfast.com/bfast/click?bfmid=XXXXX&siteid=XXXXX&bfpage=350x50_search_border'); return false;" METHOD="GET"">
    <input type=hidden name="MfcISAPICommand" value="GetResult">
    <input type=hidden name=ht value=1>
    <input type=hidden name="SortProperty" value="MetaEndSort">
    <tr>
    <td nowrap>
    <input type="text" name="query" size="15" maxlength="100" value="">
    <font size="-1"></font></td>
    <td align=center>
    <input type="hidden" name="ebaytag1" value="ebayreg">
    <input type="submit" value="Search" name="submit">
    </td>
    </tr>
    </form>
    </table>
    </td>
    </tr>
    </table>
    <img src="http://adfarm.mediaplex.com/ad/tr/711-1751-4022-31"><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=XXXXXX&siteid=XXXXXX&bfpage=350x50_search_border" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE>
    <BODY>
    <HTML/></p>

  2. #2
    ABW Ambassador FFoc's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,015
    You click on the checkbox that says "If the user clicks a link in the Editor Kit, show my results in a new window" when building it. That's the easy way.

    --
    "No matter how dark things seem to be or actually are, raise your sights and see the possibilities – always see them, for they're always there." – Norman Vincent Peale
    --
    Ford Fox-body Owners Club
    http://www.ford-fox.org

  3. #3
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    <FORM> The Line:
    XXXXX&bfpage=350x50_search_border'); return false;" METHOD="GET"">

    after METHOD="GET" you can add TARGET="_blank" is a simple fix without need to write additional lines within the code.

    Example:
    METHOD="GET" TARGET="_blank"

    Hope that helps.

    Ray Thomas
    DesignerWiz.com CEO
    Development Resource & Javascript Public Archive Center
    http://DesignerWiz.com

  4. #4
    Newbie
    Join Date
    January 18th, 2005
    Posts
    48
    METHOD="GET"" TARGET="_blank">

    OR

    METHOD="GET" TARGET="_blank">

    Did not work.

  5. #5
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Hello AlwaysLearning,

    I grabbed your code and was going to write the language in code for you. I took your original script & it kept telling me either a.)forbidden, or b.) You must accept cookies (even though our cookie acceptance are on). So, I did not bother from there .. sorry I could not help you.

    Ray Thomas
    DesignerWiz.com CEO
    Development Resource & Javascript Public Archive Center
    http://DesignerWiz.com

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Open in new window
    By Steveinid in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: January 11th, 2004, 07:58 PM
  2. To Open in a New Window OR Not?
    By Cheesehead in forum Newbie Affiliate FAQs & Helpful Articles
    Replies: 6
    Last Post: November 8th, 2003, 10:52 AM
  3. open in new window (or not)
    By stanleyholtsclaw in forum Cusimano.com Scripts
    Replies: 2
    Last Post: November 16th, 2002, 07:40 PM
  4. To open in a New Window or not?
    By wly in forum Midnight Cafe'
    Replies: 7
    Last Post: May 6th, 2002, 07:22 PM

Posting Permissions

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