Loading ...
Sorry, an error occurred while loading the content.

Re: [JavaScript] Needs help in popup

Expand Messages
  • Kirpa Mehta
    I change the line with the backslash but it still not open the popup. slideimages[0]=
    Message 1 of 15 , Jul 30, 2008
    View Source
    • 0 Attachment
      I change the line with the backslash but it still not open the popup.
      slideimages[0]='<a href="javascript:;" onClick="openWin(\"test7.jpg"\); return false"><img src="test7.jpg" border="0" width="200" height="200"></img></a>'
       
      Also mess some where in the code to increase the length of the bar. The bar length is increase but the scrolling of pictures and the text is stop.
       
      Thanks


      --- On Tue, 7/29/08, David Smart <smartware.consulting@...> wrote:

      From: David Smart <smartware.consulting@...>
      Subject: Re: [JavaScript] Needs help in popup
      To: JavaScript_Official@yahoogroups.com
      Date: Tuesday, July 29, 2008, 6:35 AM






      > onClick="openWin( "test7.jpg" ); return false"

      You have double quotes within double quotes. you need to escape the inner
      ones with backslashes.

      > onClick="openWin( \"test7.jpg\ "); return false"

      Regards, Dave S

      ----- Original Message -----
      From: "Kirpa Mehta" <kirpa226@yahoo. com>
      To: <JavaScript_Official @yahoogroups. com>
      Sent: Monday, July 28, 2008 4:26 AM
      Subject: [JavaScript] Needs help in popup

      Hi: Can any one please tell me what i make mistake in popup window? When i
      click on the image it gives syntax error
      Thanks.

      function openWin(img) {
      winId = window.open( '','newwin' ,'width=300, height=400' );
      winId.document. write('<body onLoad="if (window.focus)
      window.focus( )"><center> ');
      winId.document. write('<img src="' + img + '">');
      winId.document. write('</ center></ body>');
      winId.document. close();
      }
      slideimages[ 0]='<a href="javascript: ;" onClick="openWin( "test7.jpg" ); return
      false"><img src="test7.jpg" border="0" width="200" height="200" ></img></ a>'

      This is the link. If you click on the first scrolling picture it gives
      syntax error.
      http://www.southeas tneurology. com/testsite/

      [Non-text portions of this message have been removed]

      ------------ --------- --------- ------

      Visit http://aiaiai. com for more groups to joinYahoo! Groups Links


















      [Non-text portions of this message have been removed]
    • Kirpa Mehta
      Thanks it works. If you please tell me a little more 1. I want to write some text under the picture in the popup window 2. Move the popup on the center of the
      Message 2 of 15 , Jul 31, 2008
      View Source
      • 0 Attachment
        Thanks it works. If you please tell me a little more
        1. I want to write some text under the picture in the popup window
        2. Move the popup on the center of the page
        Can you please tell me the changes in the script
         
        function openWin(img) {
          winId = window.open('','newwin','width=600,height=600');
          winId.document.write('<body onLoad="if (window.focus) window.focus()"><center>');
          winId.document.write('<img src="' + img + '" width="100%">');
          winId.document.write('</center></body>');
          winId.document.close();
        }

        --- On Thu, 7/31/08, David Smart <smartware.consulting@...> wrote:

















        [Non-text portions of this message have been removed]
      • Tim Sabin
        The backslashes must go BEFORE the double quotes! In one spot you have it AFTER. --Tim Sabin ... ( test7.jpg ); return false
        Message 3 of 15 , Aug 1, 2008
        View Source
        • 0 Attachment
          The backslashes must go BEFORE the double quotes! In one spot you have
          it AFTER.

          --Tim Sabin


          > I change the line with the backslash but it still not open the popup.
          > slideimages[0]='<a href="javascript:;" onClick="openWin
          (\"test7.jpg"\); return false"><img src="test7.jpg" border="0"
          width="200" height="200"></img></a>'
          >  
          > Also mess some where in the code to increase the length of the bar.
          The bar length is increase but the scrolling of pictures and the text
          is stop.
          >  
          > Thanks
          >
          >
          > --- On Tue, 7/29/08, David Smart <smartware.consulting@...>
          wrote:
          >
          > From: David Smart <smartware.consulting@...>
          > Subject: Re: [JavaScript] Needs help in popup
          > To: JavaScript_Official@yahoogroups.com
          > Date: Tuesday, July 29, 2008, 6:35 AM
          >
          >
          >
          >
          >
          >
          > > onClick="openWin( "test7.jpg" ); return false"
          >
          > You have double quotes within double quotes. you need to escape the
          inner
          > ones with backslashes.
          >
          > > onClick="openWin( \"test7.jpg\ "); return false"
          >
          > Regards, Dave S
          >
          > ----- Original Message -----
          > From: "Kirpa Mehta" <kirpa226@yahoo. com>
          > To: <JavaScript_Official @yahoogroups. com>
          > Sent: Monday, July 28, 2008 4:26 AM
          > Subject: [JavaScript] Needs help in popup
          >
          > Hi: Can any one please tell me what i make mistake in popup window?
          When i
          > click on the image it gives syntax error
          > Thanks.
          >
          > function openWin(img) {
          > winId = window.open( '','newwin' ,'width=300, height=400' );
          > winId.document. write('<body onLoad="if (window.focus)
          > window.focus( )"><center> ');
          > winId.document. write('<img src="' + img + '">');
          > winId.document. write('</ center></ body>');
          > winId.document. close();
          > }
          > slideimages[ 0]='<a href="javascript: ;" onClick="openWin
          ( "test7.jpg" ); return
          > false"><img src="test7.jpg" border="0" width="200" height="200"
          ></img></ a>'
          >
          > This is the link. If you click on the first scrolling picture it
          gives
          > syntax error.
          > http://www.southeas tneurology. com/testsite/
          >
          > [Non-text portions of this message have been removed]
          >
          > ------------ --------- --------- ------
          >
          > Visit http://aiaiai. com for more groups to joinYahoo! Groups Links
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          > [Non-text portions of this message have been removed]
          >
          >
          > ------------------------------------
          >
          > Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
          >
          >
          >
          >
          >

          --Tim Sabin
        • David Smart
          You have . If should be . I.e. the backslash goes BEFORE the quote. Regards, Dave S ... From: Kirpa Mehta To:
          Message 4 of 15 , Aug 1, 2008
          View Source
          • 0 Attachment
            You have "\. If should be \". I.e. the backslash goes BEFORE the quote.



            Regards, Dave S

            ----- Original Message -----
            From: "Kirpa Mehta" <kirpa226@...>
            To: <JavaScript_Official@yahoogroups.com>
            Sent: Thursday, July 31, 2008 7:03 AM
            Subject: Re: [JavaScript] Needs help in popup


            I change the line with the backslash but it still not open the popup.
            slideimages[0]='<a href="javascript:;" onClick="openWin(\"test7.jpg"\);
            return false"><img src="test7.jpg" border="0" width="200"
            height="200"></img></a>'

            Also mess some where in the code to increase the length of the bar. The bar
            length is increase but the scrolling of pictures and the text is stop.

            Thanks


            --- On Tue, 7/29/08, David Smart <smartware.consulting@...> wrote:

            From: David Smart <smartware.consulting@...>
            Subject: Re: [JavaScript] Needs help in popup
            To: JavaScript_Official@yahoogroups.com
            Date: Tuesday, July 29, 2008, 6:35 AM






            > onClick="openWin( "test7.jpg" ); return false"

            You have double quotes within double quotes. you need to escape the inner
            ones with backslashes.

            > onClick="openWin( \"test7.jpg\ "); return false"

            Regards, Dave S

            ----- Original Message -----
            From: "Kirpa Mehta" <kirpa226@yahoo. com>
            To: <JavaScript_Official @yahoogroups. com>
            Sent: Monday, July 28, 2008 4:26 AM
            Subject: [JavaScript] Needs help in popup

            Hi: Can any one please tell me what i make mistake in popup window? When i
            click on the image it gives syntax error
            Thanks.

            function openWin(img) {
            winId = window.open( '','newwin' ,'width=300, height=400' );
            winId.document. write('<body onLoad="if (window.focus)
            window.focus( )"><center> ');
            winId.document. write('<img src="' + img + '">');
            winId.document. write('</ center></ body>');
            winId.document. close();
            }
            slideimages[ 0]='<a href="javascript: ;" onClick="openWin( "test7.jpg" );
            return
            false"><img src="test7.jpg" border="0" width="200" height="200" ></img></
            a>'

            This is the link. If you click on the first scrolling picture it gives
            syntax error.
            http://www.southeas tneurology. com/testsite/

            [Non-text portions of this message have been removed]

            ------------ --------- --------- ------

            Visit http://aiaiai. com for more groups to joinYahoo! Groups Links


















            [Non-text portions of this message have been removed]


            ------------------------------------

            Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
          Your message has been successfully submitted and would be delivered to recipients shortly.