Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

subModal Advice

  • 26-04-2007 01:30PM
    #1
    Closed Accounts Posts: 8,478 ✭✭✭


    If anyone here knows about subModal, then please help me on this question:

    subModal works great for the following example:

    showPopWin('mileageclaim.php?mileage_expense_id=57&current_mileage_value='+businessexpenseedit.amount7.value+'&eval_current_subs_amount='+businessexpenseedit.57_subs.value,404,458,null);

    And then I use $_GET in my target PHP page and all is well.

    However. In my calling page, showPopWin fails with the following example:

    showPopWin('mileageclaim.php?mileage_expense_id=57&current_mileage_value='+businessexpenseedit.amount7.value+'&eval_current_subs_amount='+businessexpenseedit.57_subs.value+'$somethign_else='+formname.somethingelse.value,404,458,null);

    It seems to be the multiple 's that are causing my problem. So I'm wondering how can I escape them, and yet pass the values through in the examples above.

    Cheers!


Comments

  • Registered Users, Registered Users 2 Posts: 175 ✭✭zielarz


    you can use different quote " or escape ' using \'


  • Closed Accounts Posts: 8,478 ✭✭✭GoneShootin


    Solved it. Turns out it was some other weird aspect.

    The form fieldname that I was trying to reference started with a number (db id), something like 57_subs. On a whim I changed it to subs_57 and it worked. Not sure if its an issue with showPopWin or not, but damn odd all the same.

    Word to the wise is, don't start your fieldnames with a digit if you want to use JavaScript on em!


Advertisement