close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

[framework static plugin] jquery functions work only if I load the plug-in file itself, not in parent page, why?

Thread began 8/04/2022 7:12 am by SCar87011738 | Last modified 8/08/2022 9:56 am by Ray Borduin | 80 views | 1 replies |

SCar87011738

[framework static plugin] jquery functions work only if I load the plug-in file itself, not in parent page, why?

Hello all,
I'm having really a bad time with framework plug-ins.
This is because I have not undertood the mechanism completely.

I created 1 page as test containing one plug-in.

Page 1 contains a form (only one select field).
Page 2(plug-in) contains another select field. Page 2 contains a recordset that filters the select values).

Now I need to show an alert (javascript) when the page2 select change.

The alert is shown when I run the page2 alone on my local server.
But the alert is not shown when the page2 select is called by page1.

I tried to move the alert message to the page1, but nothing changes.
What is the logic?
Have I to add all logic to the plug-in page or to the main page?
I cannot understand how framework plug-in work.

TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

Since the select list is re-created, the onchange event has to be re-binded as well. If you attached both pages then I could give code examples of how to do it.

The easier method might be to use the onchange property in the html instead of the .change() jquery method to bind the event so that you wouldn't have to re-bind it after every load, but both are actually pretty easy to accomplish but difficult to explain out of context.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...