Announcement

Collapse
No announcement yet.

encode product name on url in js popup?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    encode product name on url in js popup?

    Is it possible to encode a prod name in a js pop url? Am I missing something simple.

    This works when the prod name doesn't have special characters. But, if the name has and apostrophe, the pop up won't fire.

    HTML Code:
    <a href="Javascript:window.open('&mvt:global:sessionurl;Store_Code=&mvta:global:store:code;&amp;Screen=PROD&amp;Product_Code=&mvta:product:code;&amp;MyPRODName=&mvta:product:name;&amp;;&amp;image','scrollbars=yes,status=no,width=500,height=175').focus();">
    POP Up Window</a>
    Thanks,

    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Re: encode product name on url in js popup?

    Dear Scott,

    Are Apostrophes allowed in a Correct URL? I do not think so.
    Thank You,

    Nerd Boy

    http://www.nerdboyinc.com

    1-855-Nerd-Boy

    Comment


      #3
      Re: encode product name on url in js popup?

      Hi Jeff,

      I am thinking I should be able to encode it. I need top pass it to a form.

      Scott
      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        Re: encode product name on url in js popup?

        Look at the string functions in toolkit.

        32. Use no_apostrophe to strip apostrophe characters out of a string.

        Comment


          #5
          Re: encode product name on url in js popup?

          Probably best to write a function that encodes it with URL encoding...might have something around...remind me tomorrow if you still need it...( I did one once ripping...I mean converting a PHP script).
          Bruce Golub
          Phosphor Media - "Your Success is our Business"

          Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
          phosphormedia.com

          Comment

          Working...
          X