🍭 Submit forms with AJAX
dg asgd jagd jasgdj sagdhj gsahjd gsahj dgjsah
Axios
dg asgd jagd jasgdj
gsahjd gsahj dgjsah
December 29, 2019 9:58 PM
undefined
Michael McSwain
Team
mm@maksuco.com
sadsdsa adds
public function addMessage()
{
ray($this ->message,json_encode($this ->message));
$this ->alert('success' , __('Saved' ));
}
Edit
Delete
Important
December 28, 2021 9:58 PM
undefined
Michael McSwain
Team
mm@maksuco.com
Hola xx
Edit
Delete
Important
December 29, 2021 9:33 AM
undefined
Michael McSwain
Team
mm@maksuco.com
hljs.highlightAll();
document.querySelectorAll("code").forEach(function(element) {
element.innerHTML = element.innerHTML.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
});
document.addEventListener('alpine:init', () => {
});
Edit
Delete
Important
December 29, 2021 2:18 PM
undefined
Michael McSwain
Team
mm@maksuco.com
Hi
$dom = new DOMDocument;
$dom-> ;loadHTML($htmlString);
$preTags = $dom-> ;getElementsByTagName('pre' );
foreach ($preTags as $pre)
{
echo $pre-> ;nodeValue, PHP_EOL;
if ($pre-> ;hasAttributes())
{//i f there are attributes
foreach ($pre-> ;attributes as $attribute)
{
//d o something with attribute
echo 'Attribute: ' , $attribute-> ;name, ' = ' , $attribute-> ;value, PHP_EOL;
}
}
}
Edit
Delete
Important
December 29, 2021 9:58 PM
undefined
Michael McSwain
Team
mm@maksuco.com
sadsdsa adds
public function addMessage()
{
ray($this ->message,json_encode($this ->message));
$this ->alert('success' , __('Saved' ));
}
Edit
Delete
Important
namespace App\Http\Livewire;
use Livewire\Component;
class Notification extends Component
{
public function getListeners(): array
{
$authId = auth()->id();
return [
"echo-private:users.{$authId},.Illuminate\\Notifications\\Events\\BroadcastNotificationCreated" => 'sendNotify',
];
}
public function sendNotify(mixed $notify): void
{
// Do things!
}
}
Hope and deliverance ⌘F
in the middle of the jasgdj
night in the middle of the in the middle of the in the middle of the
VIDEO
PHP
JS
use Maksuco\BizHelpers\Rules\NoLink;
public function processTicket($api_key, Request $request)
{
//DATA
$referer = isset($request->referer) ? trim($request->referer) : (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : false);
$domain = parse_url($referer, PHP_URL_HOST);
$ip = $request->ip();
}
function contactForm() {
return {
formData: {
subject: 'none',
},
submited: false,
btn_disabled: false,
buttonLabel: 'Enviar',
submitData() {
this.buttonLabel = 'Enviando...'
this.btn_disabled = true;
let formIdData = new FormData(formElement);
for (var value of formIdData.values()) {
console.log(value);
}
//let formJson = JSON.stringify(formIdData);
fetch('https://cs-contact.test/api/post/4/4?ajax', {
method: 'POST',
body: formIdData
})
},
};
};
How the documentation is organized
platform has a lot of features and, as a result, a lot of documentation. The documentation is organized into the following sections
Platform concepts Some extensions require frontend development. This section contains frontend-specific information that may apply to multiple extensions.
Post URLs: Information relevant to specific extensions. When you start developing an app, this is where you'll spend most of your time.
Contains posts with: a primary_tag
of podcast
☞ Unsorted List
Appears on: site.com/podcast/
Post URLs: site.com/podcast/my-episode/
Contains posts with: a primary_tag
of podcast
🔥 Sorted List
Appears on: site.com/podcast/
Post URLs: site.com/podcast/my-episode/
Contains posts with: a primary_tag
of podcast
Option
Type
Default
Description
selector
string
.glightbox
Name of the selector for example '.glightbox' or 'data-glightbox' or '*[data-glightbox]'
elements
array
null
Instead of passing a selector you can pass all the items that you want in the gallery.
moreLength
number
60
Number of characters to display on the description before adding the moreText link (only for mobiles), if 0 it will display the entire description.
closeButton
boolean
true
Show or hide the close button.
touchNavigation
boolean
true
Enable or disable the touch navigation (swipe).
slideHTML
string
'See themes'
You can completely change the html of the individual slide. See the Themeable section in the README.
autoplayVideos
boolean
true
Autoplay videos on open.
Community
BACK
SOmethings goes here
NEXT
SOmethings goes here
Back to the top