DaQuark
Posts: 2
Joined: Tue Apr 17, 2007 6:38 pm

Highslide with form and submit button

Hi folks,

I have the following constallation. I have a form with some input fields (most of them are hidden) and then I have a submit button. And when I click on this submit button I wanna open the highslide iframe (another page on a different server) BUT with all the given parameters.

Example:

Code: Select all

<form action="url" method="POST">

<input type="hidden" id="password" value="my password" />

<input type="submit" onclick="return hs.htmlExpand(this, { src: 'url to server', contentId: 'highslide-html', objectType: 'iframe', objectWidth: 700, objectHeight: 900} )" onmousedown="javascript:unhide();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl02$ctl10$ButtonLogin", "", true, "", "", false, false))" id="ctl02_ctl10_ButtonLogin" class="txt12N" />

</form>

I also need to run some javescript functions as you can see in the onmousedown method. When I do this like above, it refers to the page I want but without the parameter "password".

My question is now, how can I combine highslide and form with input fields /submit buttons?

THANKS

Return to “Highslide JS Usage”