im using the following javascript to open a modalwindow when a link i clicked. I whant that window to return a string back to the page and update its content.
function imback(strId) { alert("id: " + strId); jQuery("#imageContentHolder").append("<strong>"+strId+"</strong>"); }
This dosent work as I whant it to. The alert box pops up when i close, but the jquery append doesnt work? And also the object that is returned is some kind of javascript obejct, not a simple string??
Can someone please explain how to work with this? Im simply put trying to open a modal -> return a value to page -> and update the page without a reload.
openModalWindow callback?
Hi,
im using the following javascript to open a modalwindow when a link i clicked. I whant that window to return a string back to the page and update its content.
This dosent work as I whant it to. The alert box pops up when i close, but the jquery append doesnt work? And also the object that is returned is some kind of javascript obejct, not a simple string??
Can someone please explain how to work with this? Im simply put trying to open a modal -> return a value to page -> and update the page without a reload.
Thx for any help
Marthin
Hi,
I encountered your problem and this is how I resolved it, I don't know if it's the best way but it works anyway.
In my modal window page I added this javascript:
And this javascript is included in my calling page
Hope this will help you out.
Regards,
aj
Hi,
You can also do this.
Regards,
aj
Okej, thx Allan.
is working on a reply...