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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer How to make a widget (script) work in same page/window or iframe

    I'm not a programmer but understand basics of html & script. Let me explain my question: I've a website in which i want to embed a job portal widget provided by smart recruiters which works fine but when i click the link inside the widget it open up in another window, which i don't like.

    I want to make this widget run in same window without leaving my website, kindly let me know the lines to include in the widget code.

    I tried many things but failed.

    Any helps, suggestions appreciated

    thanks in advance....

    See the widget code to be embeded:
    [CODE]
    <script src="https://www.smartrecruiters.com/img/script/smartWidget/smart_widget.js" type="text/javascript">
    </script>
    <script class="job_widget" type="text/javascript" target="_self">
    widget({
    "searchField":"",
    "company_code":"ionsys",
    "bg_color_widget":"#ffffff",
    "bg_color_headers":"#969696",
    "bg_color_links":"#99ccff",
    "txt_color_headers":"#292929",
    "txt_color_job":"#3d3d3d",
    "bg_color_even_row":"#e0e0e0",
    "bg_color_odd_row":"#f7f7f7",
    "custom_css_url":"https://www.smartrecruiters.com/img/style/smartWidget /smart_widget.css",
    "auto_width":"auto",
    "auto_height":"auto",
    "number":"on",
    "job_title":"true",
    "department":"true",
    "location":"true",
    "published_since":"true",
    "hiring_date":"true",
    "add_search":"true"
    });
    </script>
    [CODE]

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,486
    Thanks
    23
    Thanked 636 Times in 635 Posts
    My guess is that your browser is doing it or an add-on to it.
    TARGET = "_self"
    "_self" puts the new document in the same window and frame as the current document. "_self" works the same as if you had not used TARGET at all.

    It's a guess cause there is not enough info to run this.
    Evolution - The non-random survival of random variants.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."

  • #3
    New Coder
    Join Date
    Oct 2008
    Posts
    47
    Thanks
    6
    Thanked 2 Times in 2 Posts
    I recomend that you use the Browser WebKIT of Javascript 3000 since it will load the the page in a iframe. Simple as that

    Example:
    Code:
    a href="http://www.site.com" target="_123">Site</a>
    <iframe src="#" frameborder="0" height="100%" width="100%" id="_123"></iframe>
    Hope it helps


  •  

    Tags for this Thread

    Posting Permissions

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