First, you need to change the button type from 'submit' to 'button'.
Second, is add_detail.php in the same directory as the main page?
(and are you sure you have set GB_ROOT_DIR correctly?) Try setting
the URL in the greybox call to the FQDN.
Finally, in order to send the form data to the greybox page, you'll
need to use a trick. Either you can pop the data into the querystring
for the page you are calling (eg, ('Add', 'add_detail.php?did=' +did
+"&pid=" +pid)) or you can write a function in the greybox page that
uses top to retrieve the form data from the main page.
Hope that helps some!
Tyler
http://www.malthusian-solutions.com
http://www.nirdvana.com
On Dec 29, 2:04 pm, dbenc <[email protected]> wrote:
> I haven't found a solution searching the group. I'm trying to get a GB
> to open when I submit a form using onclick. It opens but does not load
> the URL, it says Object not Found inside the GB ...
>
> i tried
> <input type="submit" value="Add" onclick="javascript:return GB_show
> ('Add', 'add_detail.php'); >
>
> as well as some other ways ... when i trieg opening it without GB it
> took me to a URL ending with "/undefined" ...
>
> i also tried it with a full URL likehttp://www.google.combut no
> go ...
>
> thanks for the help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GreyBox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---