Forum Moderators: coopster
I would just like to say thanks for reading this!
I have a higslide/js popup which i am trying to use to edit content in a database, i can get the form to display, but when i click submit the variable i am using should turn true when the mysql has been sent. And when it turns true, the popups content should change to the latter half of the if clause. I have successfully done this in the past, but with a 'normal' javascript popup, well it generates a new window, but i saw the highslide stuff and thought ace - i'll have a bit of that!
this is the code that fires the popup:
return hs.htmlExpand(this, { contentId: 'highslide-html' } )"class="highslide" which works fine
and this is the div that populates said window:
<div class="highslide-html-content" id="highslide-html">
<div class="highslide-header">
<ul>
<li class="highslide-close">
<a href="#" onclick="return hs.close(this)">X</a>
</li>
</ul>
</div>
<div class="highslide-body">
<?php
if(!$AMEND)
{
?>
<form method="post" action="index.php?cmd=edit&form=amend">
<input type="input"><br><br>
<input type="button" value="update text" class="formbutton" name="amend">
</form>
<?php
}
else
{
echo 'done';
}
?>
</div>
<div class="highslide-footer">
<div>
<span class="highslide-resize" title="Resize">
<span></span>
</span>
</div>
</div>
</div>
The idea is once the submit button is clicked the popup contents changes as the variable is changed to true, and the mysql is sent
Any help ideas is much appreciated.
Back to the BBQ now.
Cheers,
Matthew
Hopefully that will give you a better idea of the problem.
[edited by: dreamcatcher at 9:40 am (utc) on July 31, 2008]
[edit reason] No urls please! [/edit]