Discussions
Categories
Groups
Advertisement
Child Item
Home
Topics
Technology & Internet
Software & Web Development
Development
subModal Advice
GoneShootin
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¤t_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¤t_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!
Find more posts tagged with
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
Advertisement
Advertisement
Comments
zielarz
you can use different quote " or escape ' using \'
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!