Hi,
I've been trying to do a postback from a shadowbox. And I've acctually
succeded, but it's not using jQuery witch I think could help me out
alot easier than I have now.
What I want to do is to post back a value from my shadowbox, and then
I close it with document.Shadowbox.close();
The value should then be parsed into a input form field.
The tricky part is that I want to make jQuery do something to the
input field and the value.
It's going to check the value if it's valid and if so change it to
something else.
Now I just have this...
[code]
<script type='text/javascript'>
function parseBack(thisID, thisName)
{
parent.document.inkop.productString.value = thisID;
parent.Shadowbox.close();
}
</script>
<button onClick=\"parseBack('$productID', '$productName');\">Stäng</
button>
[/code]
I think maybe there's a way to do this with jQuery right away and make
it change the html on the parent document if it's true.