NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Bruce on March 19, 2011, 08:15:13 AM
-
Hi Gordon and others,
I can't find the thread which introduced this idea, but suffice to say that the next build (5.19) has the ability to popup a form from an "other" button, which is on a form or on a browse row.
Cheers
Bruce
-
Yeaaaaaaaaah!
-
I've also added support for popups to menu items and menus (where menus allow direct links.)
Cheers
Bruce
-
I have 1 browse that has hyperlinks in columns which call a web page with parameters. I was hoping to convert that to a popup. Do you support popups via hyperlinks?
Cheers,
Kev
-
Not yet...
-
Thanks Bruce!
-
Nettalk 5.20
Unless I misunderstand, it doesn't work if you add a button to a form and get it to open another "memory" form.
If you set the button on form 1 to "Open as popup (not submit)", then when form 2 opens, the save button won't work. Click it and nothing happens. Clicking 'cancel' returns you to form 1.
Uncheck ""Open as popup (not submit)" and form 2 behaves correctly.
Thanks
Bryan
-
I'll check it out to see if I can duplicate it.
cheers
Bruce
-
I'll check it out to see if I can duplicate it.
cheers
Bruce
FYI:
In the code for the popup form Nettalk creates the save button like this:
if loc:popup
loc:javascript = clip(loc:javascript) & 'ntd.save();'
packet = clip(packet) & p_web.CreateStdButton('button',Net:Web:SaveButton,loc:formname,,,loc:javascript)
else
packet = clip(packet) & p_web.CreateStdButton('submit',Net:Web:SaveButton,loc:formname,loc:formaction,loc:formactiontarget,loc:javascript)
end
If it's a popup from a memory form you call the first line "p_web.CreateStdButton('button...". This save button is the one that doesn't work.i.e. it doesn't close the popup form.
I have manually add the second option into the code "p_web.CreateStdButton('submit...". The save button that is created works correctly (or at least seems to:) and closes the memory form.
-
the save button on a popup form should definitely be a 'button' not a 'submit'.
But I'm about to release 5.21, so try in that and see if you have any better luck.