close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Framework static-plugin; how does it work?

Thread began 8/03/2022 9:38 am by SCar87011738 | Last modified 8/08/2022 9:54 am by SCar87011738 | 62 views | 1 replies

SCar87011738

Framework static-plugin; how does it work?

Hello Ray,
I have a parent page that contains a form with a select (select1).
Then I have a static-plugin that contains another select (select2): it loads database results filtered by the select1 value.
That's ok, for now.
But now I need to display a message based on the value of select2.
On regular pages I use simple javascript to read the select value and display the message.
But this doesn't work with static-plugin select.

This is a sample script I use:

<script>
$('#prodotto_reg').change(function () {
$('.sconti').hide();



<?php
$wa_startindex = 0;
while(!$rs_prodotti_tutti->atEnd()) {
$wa_startindex = $rs_prodotti_tutti->Index;
?>

if ($("#prodotto_reg option:selected").val() == '<?php echo($rs_prodotti_tutti->getColumnVal("id_ins")); ?>')
{
$( "#rimborso<?php echo($rs_prodotti_tutti->getColumnVal("rimborso_ins")); ?>" ).addClass("wow bounceIn").css("display","inline-block").show();
}

<?php
$rs_prodotti_tutti->moveNext();
}
$rs_prodotti_tutti->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>

});


</script>



Please note that the #prodotto_reg field is contained in the static-plugin page.

How can I control the static-plugin select value?
Have I to move my logic (script) inside the static-plugin?

Or what?

TIA
tony

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...