close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Framework's Load plugin to div

Thread began 3/08/2023 7:29 am by asarcona308398 | Last modified 3/13/2023 3:19 pm by asarcona308398 | 218 views | 6 replies

asarcona308398

Framework's Load plugin to div

I'm trying to create a dashboard on the admin side of things and I'm using Framework Builder's Load Plugin to DIV to populate the main <div> on the right side of the page... all is good and works exceptionally well when just maneuvering about all the plugged in pages... only thing I'm stumped on is, if I load an UPDATE or INSERT page into the main <div> as a plugin, when the UPDATE/INSERT is finished it will redirect to let's say the details page if an insert or update is done. I would like to be able to stay on that plugged in page where the data is being updated or inserted, and then by way of a link/button plugin to go back to the main <div> after update/insert... OR be able to be able to adjust the $InsertGoTo = "../dashboard.php#maindiv"; to go to the main <div>.
I am using ---
action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != ""?"?".htmlentities($_SERVER["QUERY_STRING"], ENT_QUOTES):""); ?>"
in the form action"" and the UPDATE or INSERT works .
I've tried to add the ---
onClick="framework_load_plugin_url('plugins/productcategories_results.php',false,'main','../','');return document.MM_returnValue"
to the INSERT/UPDATE button but the javascript doesn't let the page submit the form to the server first...

Has anyone found a way to make something like this work?

Tony


UPDATE

this is the $SERVER info:

Array
(
[MIBDIRS] => C:/xampp1/php/extras/mibs
[MYSQL_HOME] => \xampp\mysql\bin
[OPENSSL_CONF] => C:/xampp1/apache/bin/openssl.cnf
[PHP_PEAR_SYSCONF_DIR] => \xampp\php
[PHPRC] => \xampp\php
[TMP] => \xampp\tmp
[HTTP_HOST] => localhost
[HTTP_CONNECTION] => keep-alive
[HTTP_SEC_CH_UA] => "Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"
[HTTP_SEC_CH_UA_MOBILE] => ?0
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
[HTTP_SEC_CH_UA_PLATFORM] => "Windows"
[HTTP_ACCEPT] => */*
[HTTP_SEC_FETCH_SITE] => same-origin
[HTTP_SEC_FETCH_MODE] => cors
[HTTP_SEC_FETCH_DEST] => empty
[HTTP_REFERER] => http://localhost/Bootstrap/admin/dashboard.php
[HTTP_ACCEPT_ENCODING] => gzip, deflate, br
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9
[HTTP_COOKIE] => PHPSESSID=is82r73s1d34ajgtsef8as35lp; SHOPNO=1; WAFC_MENU_DEV_OPENCLOSE=todayDate%3D%7C%3F2minutes%3D%7C%3Fday%3D; TODAYDATE=2023-03-09; TODAYDAY=5; TIMENOW=08%3A49%3A32
[PATH] => C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Users\asarc\AppData\Local\Microsoft\WindowsApps
[SystemRoot] => C:\WINDOWS
[COMSPEC] => C:\WINDOWS\system32\cmd.exe
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
[WINDIR] => C:\WINDOWS
[SERVER_SIGNATURE] =>
Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12 Server at localhost Port 80


[SERVER_SOFTWARE] => Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12
[SERVER_NAME] => localhost
[SERVER_ADDR] => ::1
[SERVER_PORT] => 80
[REMOTE_ADDR] => ::1
[DOCUMENT_ROOT] => C:/xampp1/htdocs
[REQUEST_SCHEME] => http
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => C:/xampp1/htdocs
[SERVER_ADMIN] => postmaster@localhost
[SCRIPT_FILENAME] => C:/xampp1/htdocs/Bootstrap/webassist/framework/ajax_wrapper.php
[REMOTE_PORT] => 59676
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] => plugin_from=localhost/Bootstrap/admin/dashboard.php&plugin_file=Y2F0YWxvZy9wcm9kdWN0Y2F0ZWdvcmllc19pbnNlcnQucGhw
[REQUEST_URI] => /Bootstrap/webassist/framework/ajax_wrapper.php?plugin_from=localhost/Bootstrap/admin/dashboard.php&plugin_file=Y2F0YWxvZy9wcm9kdWN0Y2F0ZWdvcmllc19pbnNlcnQucGhw
[SCRIPT_NAME] => /Bootstrap/webassist/framework/ajax_wrapper.php
[PHP_SELF] => /Bootstrap/webassist/framework/ajax_wrapper.php
[REQUEST_TIME_FLOAT] => 1678384914.5749
[REQUEST_TIME] => 1678384914
)

It has the [REQUEST_URI] as:
[REQUEST_URI] => /Bootstrap/webassist/framework/ajax_wrapper.php?plugin_from=localhost/Bootstrap/admin/dashboard.php&plugin_file=Y2F0YWxvZy9wcm9kdWN0Y2F0ZWdvcmllc19pbnNlcnQucGhw

is this for a static plugin?

Attached Files
dashboard.zip
productcategories_insert.zip

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