Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

subModal Advice

  • 26-04-2007 1: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