Thanx, I think I understand you, but still I'm not sure how to contribute
client custom JS script with WebPage class.
Additional code (JS) is:
function showUpdate(id) {
itemId = id;
var maskDiv = document.getElementById('maskDiv');
var asModalWindow = document.getElementById('asModalUpdate');
if (maskDiv) {
if (maskDiv.style.display == 'none' || maskDiv.style.display == "")
{
$("#maskDiv").fadeIn("fast", function() {
var theTop=(document.height/2)-(250/2);
var theLeft=(document.width/2)-(600/2);
asModalWindow.style.top = theTop;
asModalWindow.style.left = theLeft;
$("#asModalUpdate").fadeIn("fast");
});
}
}
return true;
}
"asModalUpdate" is :
<div id="asModalUpdate" onclick="closeModal('asModalUpdate')">
<ul>
<li wicket:id="updateFirst">
Alle Arbeiten wurden erledigt
</li>
<li>
Moment kein Zeit hierfur
</li>
<li>
Warte auf info
</li>
<li>
In Bearbeitung
</li>
<li onclick="updateManual()">
Manuelles Update
</li>
<br>
<li onclick="closeModal('asModalUpdate')">
Cancel
</li>
</ul>
</div>
When first li tag is clicked which has "wicket:id='updateFirst'", I need to
get request to server with already defined "itemId" value in
"showUpdate(id)" function.
How that is possible to do with Wicket?!
Best regards,
Aleksandar Cajic
--
View this message in context:
http://www.nabble.com/JavaScript-and-Wicket-tp21481992p21495435.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]