Welcome, Guest
  • Author Topic: Flash to Javascript - Encoding Format  (Read 1551 times)

    tangamampilia

    • Server what's that
    • *
    • Posts: 7
      • View Profile
      • Email
    Flash to Javascript - Encoding Format
    « on: 02/25/04, 16:17 »
    Hi, Im having some troubles passing data from flash to javascript, and storing that data in a mysql database. Its a little bit hard to explain, but I gonna try

    I developed a flash form where you can fill some fields, and at the end, you press a button wich open a pop window where you can upload the image of the product. The data is passed with javascript functions...and here we can find the problem. If you make a request directly from flash to php, the data come in utf8 encode...but what about if you send the data to javascript and then, to php??

    If I write :

    hi
    world


    In javascript I can read "hi world" (in one line only)
    How can I send it in two lines?? I wanna make a request where flash can read the two lines...I had tried sending the data in url_encoding, but isnt working  :'(

    a idea??

    which is the format that javascript use??

    thanks very much

    tangamampilia

    • Server what's that
    • *
    • Posts: 7
      • View Profile
      • Email
    Re:Flash to Javascript - Encoding Format
    « Reply #1 on: 02/25/04, 17:19 »
    ok...I found it..the problem was the xml...if u have a \n in your text, flash read wrong the xml...thats strange, because when I wanna read it in the explorer, the format is correct

    bye

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:Flash to Javascript - Encoding Format
    « Reply #2 on: 03/01/04, 03:22 »
    try read your xml in Netscape ;) see the difference..

    tangamampilia

    • Server what's that
    • *
    • Posts: 7
      • View Profile
      • Email
    Re:Flash to Javascript - Encoding Format
    « Reply #3 on: 03/01/04, 12:26 »
    thanks for the advice...I gonna download it (I use macintosh  :) )


    byee!!