Despratly need help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Drisco

    Despratly need help

    I have been stuck for 2 days now trying to get my queries opened in
    popup window with certain size, no scroll and no address bar. Here is
    my link that right now opens in a _blank target

    < a href="video_pop .php?GenderID=­ ­<?php echo
    $row_rs_Gender['GenderID']; ?> " target="_blank" class ="centerTa­ble" >
    <img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a>

    Any help would be much appreciated
    Drisco

  • Daniel Tryba

    #2
    Re: Despratly need help

    Drisco <dbenayad@hotma il.com> wrote:[color=blue]
    > I have been stuck for 2 days now trying to get my queries opened in
    > popup window with certain size, no scroll and no address bar. Here is
    > my link that right now opens in a _blank target[/color]

    This is not a within PHPs control, if you want to do this (any in many
    cases annoy your users) you'll have to resort to clientside scripting
    (in this case javascript would be appropriate).
    So get a javascript reference and look for the open method of the window
    object (window.open())

    Comment

    • Drisco

      #3
      Re: Despratly need help

      Thanks Daniel for the quik reply,

      I have already posted help @comp.lang.java script first, but didn't get
      any answears, just some client side this server side that. I have
      problems passing the variables when I use the javascript function
      here is what I have

      $maxRows_rs_Gen der = 10;
      $pageNum_rs_Gen der = 0;

      <SCRIPT TYPE="text/javascript" LANGUAGE="javas cript">


      function vid_popup(name)
      {
      window.focus();
      url = name + ".php?GenderID= <?php echo
      $row_rs_Gender['GenderID']; ?>
      ";
      pop_width = (name != 'video_pop'? 710:710);
      pop_height = (name != 'video_pop'? 370:370);
      param = "width=" + pop_width + ",height=" + pop_height
      +
      ",resizable=no, scrollbars=no";
      name += "_popup";
      window.open(url ,name,param);
      }
      </SCRIPT>

      then
      <a href="video_pop .php?GenderID=< ­?php echo
      $row_rs_Gender['GenderID'];?>" CLASS="vclip"
      onClick="vid_po pup('video_pop' ­); return false" TARGET="_blank" ><img
      src=<?php echo $row_rs_Gender['Pic1']; ?> border="0"></A>

      This brings up the pop up as expected but my table in empty

      Thanks again

      Drisco

      Comment

      • Daniel Tryba

        #4
        Re: Despratly need help

        Drisco <dbenayad@hotma il.com> wrote:
        [snip][color=blue]
        > This brings up the pop up as expected but my table in empty[/color]

        Nothing wrong with the code, appart from some '?' in strange places
        (propably that crappy google groups fault) and undefined variables
        (which are offcourse part of the whole script).

        To debug this loose the param to window.open() to see what the result
        URL actually is. A simple selfcontained "working" example of your code
        online would be helpful.

        Comment

        • Tex John

          #5
          Re: Despratly need help

          Here's a working example:

          <script LANGUAGE="JavaS cript">
          <!-- hide this script from non-javascript-enabled browsers
          function open_window(url ,w,h) {
          var status_string =
          "resizable=no,l ocation=no,stat us=no,toolbar=n o,scrollbars=ye s,left=10,top=1 0
          ,width="+w+",he ight="+h;
          open(url, "_blank", status_string);
          }
          function open_window_men u_on(url,w,h) {
          var status_string =
          "resizable=no,l ocation=no,stat us=no,menubar=y es,toolbar=yes, scrollbars=yes, l
          eft=10,top=10,w idth="+w+",heig ht="+h;
          open(url, "_blank", status_string);
          }
          -->
          </script>

          <a href="javascrip t:open_window_m enu_on('print1. php?number=<?ph p echo
          $p_id_property ?>',750,800)">P rint Brochure</a>

          The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.


          hth,
          John

          "Drisco" <dbenayad@hotma il.com> wrote in message
          news:1119479787 .649531.273610@ g43g2000cwa.goo glegroups.com.. .
          I have been stuck for 2 days now trying to get my queries opened in
          popup window with certain size, no scroll and no address bar. Here is
          my link that right now opens in a _blank target

          < a href="video_pop .php?GenderID=­ ­<?php echo
          $row_rs_Gender['GenderID']; ?> " target="_blank" class ="centerTa­ble" >
          <img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a>

          Any help would be much appreciated
          Drisco


          Comment

          • Drisco

            #6
            Re: Despratly need help

            Hi guys,

            After a long day today trying to capture network information from a
            remote switch by running a "show cdp" 'Cisco descovery protocol' I was
            only getting limited information from some devices and none of the
            Cisco wireless access-points. After hours of frustration I then found
            out the remote device was a Foundry, not a Cisco, you would think the
            comand should be something like "show fdp," go figure! I don't mean
            to ventilate, but I needed to get it off my chest.

            Thank you very much John, you turned a bad day into a good one with
            this function. It works perfectly. Bless you man!

            Best regards . . . Drisco

            Tex John wrote:[color=blue]
            > Here's a working example:
            >
            > <script LANGUAGE="JavaS cript">
            > <!-- hide this script from non-javascript-enabled browsers
            > function open_window(url ,w,h) {
            > var status_string =
            > "resizable=no,l ocation=no,stat us=no,toolbar=n o,scrollbars=ye s,left=10,top=1 0
            > ,width="+w+",he ight="+h;
            > open(url, "_blank", status_string);
            > }
            > function open_window_men u_on(url,w,h) {
            > var status_string =
            > "resizable=no,l ocation=no,stat us=no,menubar=y es,toolbar=yes, scrollbars=yes, l
            > eft=10,top=10,w idth="+w+",heig ht="+h;
            > open(url, "_blank", status_string);
            > }
            > -->
            > </script>
            >
            > <a href="javascrip t:open_window_m enu_on('print1. php?number=<?ph p echo
            > $p_id_property ?>',750,800)">P rint Brochure</a>
            >
            > http://www.mozilla.org/docs/dom/domr...dow_ref76.html
            >
            > hth,
            > John
            >
            > "Drisco" <dbenayad@hotma il.com> wrote in message
            > news:1119479787 .649531.273610@ g43g2000cwa.goo glegroups.com.. .
            > I have been stuck for 2 days now trying to get my queries opened in
            > popup window with certain size, no scroll and no address bar. Here is
            > my link that right now opens in a _blank target
            >
            > < a href="video_pop .php?GenderID=­ ­<?php echo
            > $row_rs_Gender['GenderID']; ?> " target="_blank" class ="centerTa­ble" >
            > <img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a>
            >
            > Any help would be much appreciated
            > Drisco[/color]

            Comment

            • Drisco

              #7
              Re: Despratly need help

              Hi again,

              I hope you guys can still look at this thread one more time. I need to
              add a windows name, so all the popups show in a same windows. If you
              could please show me how to add it to John's script I realy appreciate
              it

              Thank you so much
              Drisco

              Comment

              • Drisco

                #8
                Re: Despratly need help

                Never mind guys I got it.

                it was there in front of me, doh. Sorry .

                John? you Rock man.....

                Thank you
                Best regards
                Drisco

                Comment

                Working...