Posts by Ricardo Afonso • 503 points
16 posts
-
3
votes1
answer114
viewsQ: Find the index of all occurrences in a jquery string
How to find the index of all occurrences of a string within another string with jquery? Example: String all "three sad tigers for three wheat dishes, three wheat dishes for three sad tigers." String…
-
-1
votes4
answers8644
viewsA: How to take the "src" value of an "img" tag through Javascript and copy it to clipboard?
Using jquery should work like this: var imagem = $("#id-da-imagem").attr('src'); alert(imagem);
-
0
votes0
answers123
viewsQ: Access to a json array value in Ajax
I am working on a project in Laravel. I am doing a dynamic search function using Ajax and Json. Function in the controller: public static function busca_ajax() { $query = Input::get('query');…
-
2
votes1
answer460
viewsQ: Require Once / Include no Laravel
I’m trying to include a file on a page on a site made in Laravel. The file and page are on different servers. How can I do that? I tried with include and gave the following error : include():…
-
0
votes1
answer4772
viewsQ: Create session variable when logging in - Laravel
Good morning, I’m going through a site made in Laravel, which I didn’t do. I need to do the following: When the user logs in, I want to take a specific value ("idLoja" column) from that user in the…
-
1
votes2
answers1596
viewsQ: Get cursor position with jquery
Is there any way to get the cursor position relative to the screen when I’m typing in a textarea? Ex: I type some character, call a jquery keyup function and take the position where the cursor is…
-
4
votes2
answers976
viewsQ: Attribute "wrap" of the textarea tag
What is the usefulness of the attribute wrap tag textarea? What is the difference between your values soft, hard, off?
-
0
votes2
answers142
viewsQ: Access multidimensional arrays of a php input
I have several image arrays in the following format: <input type="file" name="imagens[$id][]"> The $id is changed dynamically. How do I access to take some of the image data, the name for…
-
0
votes0
answers370
viewsQ: Register multiple elements with multiple images associated in a single BD in php
I am doing a function to register products on an E-commerce platform. The function is as follows: the user registers the base product after registering its variations (color and size, for example).…
-
15
votes1
answer10056
viewsQ: Upload images with Crop and resize, jQuery and PHP
I need a function in which the person should upload an image, and it should "crop the image", leaving it in the right size, Facebook style and then should be saved in the databank. I tried several…
-
0
votes1
answer121
viewsQ: PHP does not recognize all Multiple input files
Good morning, I’m doing a function to upload several images, but in PHP only reaches the last one. Here are my codes: HTML <form id="msform"…
-
0
votes2
answers669
viewsQ: Do not lose input text when switching pages
Good morning, I need to do the following: The user types some text in an input and this text is not lost if he changes pages. This input has no Submit button. How can I do this? It has BD-free…
-
7
votes1
answer3807
viewsQ: Block direct access to a page
Good afternoon, I’m developing a PHP site in which there is a login screen, which redirects to the admin screen, but if I try to access this admin screen through the url, it usually opens. I would…
-
3
votes1
answer84
viewsQ: Site with horizontal navigation
I need to do a photo gallery on my website. This gallery will be in the Metroui style, with images of different sizes and the page sliding horizontally. The page would grow as the number of images…
-
2
votes1
answer1432
viewsQ: Return ajax function with result of an sql search
I am doing a section on my website, in which there is a field select. When I select something in that select, i want to conduct a BD search by returning the information about that item selected to…
-
0
votes0
answers509
viewsQ: Receive emails via php off the server
I am developing a website with contact form. The form is very simple only with name, email, message and subject. I have the site hosted on a server, but I need the data from form are received in…