I am working with a filter and a list of products that have an id, name, and creation date. The filtering can be done by id, name, or creation date. When I make an AJAX request to update the content div, the URL stays the same. How can I add parameters t ...
Currently, I am utilizing the following URL to access my JSON data: myapp/laravelRoute/jsondata By entering this in the address bar, the JSON array below will be shown: [{"A":"B"},{"B":1},{"C","http"}] However, when I input the URL as follows: myapp/l ...
After receiving a JSON data object, I extract a string from it using the following code: NSDictionary *jsonDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 ...
There is a URL where I need to parse some information, including latitude and longitude, and display them on a map. Parsing and adding markers to the map seem to work fine. However, the markers are not being displayed, only the map itself. Initially, I tho ...
If you click on a div within the left-side menu, a specific file from the 'chapters' folder will be loaded into a div on the right side. <div id="menuLeft"> <div id="file01">File 01</div> <div id="file02">File 02</div& ...
Currently I am working with jQueryMobile and PhoneGap, but encountering an issue. I am trying to retrieve details in JSON format by posting parameters to one URL (URL1) and receiving the JSON response from another URL (URL2). However, I am unable to access ...
I'm just starting my journey with node.js. I read on that url_parts should contain the keys host and protocol. However, both are returning null for me. Any idea why? Here is how I am calling the server: http://localhost:8181/test/?var=vartest http.creat ...
I am interested in creating a Laravel query that can be serialized into a URL string. This would enable me to generate routes that can unserialize the query builder, execute the query, and display the results from the database. For instance, let's sa ...
It is important to note that the following two URLs should be considered equivalent: http://localhost?asdf=1&qwer=2 http://localhost?qwer=2&asdf=1 However, when using the 'equals()' method from the URL class, they are identified as different. How ...
Google Webmaster Tools has flagged several crawl errors related to unconventional URL extensions being added to my existing pages. For example, this page appears normal: However, unexpectedly, there are these strange URLs generated from the original link ...
Essentially, I am looking to allow users to access my website using a URL like /45678, as opposed to the traditional /?p=45678. The goal is to eliminate the variable name from the URL. I attempted to achieve this by utilizing mod_rewrite, but it appears th ...
Currently I am in the process of learning angular and experimenting with creating a list of websites that can be clicked on, similar to what you would find in a bookmark app. This is based on a todo example. https://github.com/LightYear9/ToDoList In orde ...
I have a large number of links on the same page that I would like to clean up by removing everything from specific characters until the end of the URL. Currently, there are too many links like this scattered throughout my page. The string "$amp;rs" or "&a ...
My issue involves working with dynamic URLs, where I have created a structure like this: http://www.example.com/index.php?page=test The problem arises when I try to send values via GET. Due to the URL structure being as follows: http://www.example.com/i ...
Hey there! I've encountered a problem with two select boxes on my webpage, each in different anchors (one on the page, the other in an iframe). What I'm trying to achieve is for the code to recognize which anchor it's in and then pass the selected value fr ...
I need assistance with PHP code to extract URLs containing the word artifact. I want to store these URLs in an array after using regex pregmatch to search for the desired keyword. PHP is the programming language being utilized for this task. Below are th ...
<a href="www.mysite.com/index.php?information/adminpanel/<?php echo $id;?>" name="approve" id="approve" ">Approve >></a> After redirecting to the specified URL, the correct ID is displayed in the address bar but unfortunately, ...
Hey there, This is my first time posting here, and I want to say thank you for all the help I've already received by reading through previous posts. I'm currently working on a WordPress project, but I seem to be struggling to get a clear overview of my p ...
Suppose I have a GET request with URL domain/search/?value=123 and the following JSON data: [ { "id": 1, "value": 123, "value2": 123123 }, { "id": 2, "value": 1, "value2": 214 } ] I want to retrieve data where value = 123. ...
What is the correct way to route to an image in an MVC web application? MVC has default routes, meaning you can access the same page in multiple ways: 1. localhost 2. localhost/home/index However, you can also do it this way, changing the root directory. ...
Currently, I am working with Next.js and facing a challenge regarding syncing my search state with URL query parameters. The goal is to maintain the search input state during navigation without losing it. Although Next.js is a server-side language, I am l ...
Seeking a solution for maintaining the URL in a Single Page application as the client navigates between pages, with the URL changing in the background. I attempted using @routeProvider but it doesn't seem to be suitable for my situation. Any suggestio ...
How can I create user-specific URLs, like www.domain.com/username I understand that a route system may be necessary for this. While I have experience using it for other URL requests, I am unsure if I need to consider my other controller classes when dy ...
Currently, I am implementing AngularJS routing alongside php which results in my URLs appearing as http://localhost/admin/home#/categories However, the issue arises when attempting to retrieve the full URL as it only returns /admin/home. I have tried ut ...
The backend function is functioning properly as both Postman and Swagger are able to call it without any issues. I decided to capture the URL string displayed in the error message and pasted it into a browser. Surprisingly, it successfully reached the bac ...
For my project, I need to pass parameters in the URL like this: The goal is to change the URL structure to: I am currently generating URLs dynamically as shown below: <a href="<?php echo base_url()?>controllername/function?id=<?php echo $def ...
When extracting the URL from API data, my code looks like this: <div class="row copy-text"> <a href="{{copy.Url}}" target="_blank" style="text-decoration: underline !important;">{{copy.Title}}</a> </div> I am interested in ve ...
Why does Javascript handle relative URLs differently than standard HTML? Consider the URL provided: http://en.wikipedia.org/wiki/Rome. Launch a Firebug console (or any other Javascript console) and type in the following: var x = new XMLHttpRequest(); x.op ...
Is there a way to securely share the url of the web api, which is hosted on a different server with a different domain, from my asp net core server to my client angular2? Currently, I am storing my settings in a typescript config file within my angular2 ap ...
I am currently utilizing selenium to develop a robot that automates the process of opening and saving a webpage. Here is the code snippet: WebDriver driver = new FirefoxDriver(); driver.get("http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber= ...
After using Quora, I started to question how they create their unique identifiers known as slugs such as quora.com/topics-slugs, quora.com/questions-slug, or quora.com/usernames-slug. I am currently working on an application using the yii framework and I ...
Task at hand: capturing the URLs/titles from Code snippet for testing purposes (fetching 3 pages and printing, not saving): from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverW ...
Is it possible to dynamically set the background color of the :root CSS property in an HTML file based on a hash present in the URL? The code provided does change the background color, but unfortunately, the hash value doesn't persist as users navigat ...
There have been many remarkable inquiries regarding this topic, such as: how to parse a url. However, as time has gone by, the answers I come across are outdated. I am looking for a more modern and flexible method to parse URLs, without relying on regular ...
Is it possible to assign a URL to a specific portion of a string in Python? For example: StrVar = "This is my test string" I would like to link the word "test" to a URL such as "www.stackoverflow.com" Can this be done? If ...
Currently, I am facing a challenge in storing the trail of URLs that my Spider visits whenever it accesses the target page. The issue lies in reading the starting URL and ending URL for each request. Despite going through the documentation thoroughly, I fi ...
I have the following urlpatterns: urlpatterns = [ url(r'^tools(?:/tool_one=(?P<tool_one>w+))?/?$', views.ToolsViews.as_view(), name='tools'), ] This results in a URL like this: tools/tool_one=bags I want to add a question mark to the U ...
I'm dealing with a string that looks like this: /dashboard/products/:id. My goal is to utilize Next Js's router to navigate to that URL and replace the placeholder :id with an actual id. Here's the code I've written: {products.map(prod ...
How can I modify a parameter in the URL without altering the overall address? https://i.stack.imgur.com/LOd4T.png This is the TypeScript code that I currently have: onRowClicked(event: any) { let currentIdPerson = event.data.IdPerson; } I am trying ...
I'm having trouble finding information on how to properly use the Linking component in react-native. The resources available are limited, and I'm not sure if I am implementing it correctly... Below is what I have in my template: <nb-button :o ...
Currently, I'm facing difficulties with hiding the URL. Specifically, I want to change it from http://example.com/products/product.php to either http://example.com/products/ or http://example.com/products/product/. I attempted to resolve this issue by usi ...
I'm having an issue with my code that is meant to replace the today's date in a URL, but it ends up printing the today's date three times instead of just once. import re today = (date.today().strftime("%d_%m_%Y")) print(today) url = 'https://demo ...
Can anyone provide me with a solution for extracting the word "google" from a link like http://drive.google.com? Currently, I am using the following search query: query: { bool : { must: { match: { text: 'google'} ...
Currently in the process of converting my PHP website to Express.js. There are numerous scripts on my frontend that generate links in the format page.php?id=10&something=anything. Is there a way in Express.js to capture variables from URLs structured ...
I am curious to know if it is achievable using angular 1.x. The requirement is to create a responsive application that works well on both mobile and desktop devices. Each page of the application should have a ui-view element that shows the regular content ...
As I loop through an array from JSON, I extract all the necessary information. For example, if I have cards for blog posts that include the title, short description, published date, and URL. When clicking on a card, it redirects to a corresponding page ba ...
In my node.js application, I am faced with the task of converting local file paths into file:// urls. After some research, I came across the File URI scheme on Wikipedia and I believe that there must be a solution out there or perhaps even an npm module t ...
Currently, I am investigating how to add a random query string at the end of a URL when someone visits my page for the first time. Let's say an individual goes to my website at www.example.com. If everything proceeds as planned, they will land on my index. ...
I'm having trouble parsing image URLs and displaying the images in a ListView. I keep getting a ProtocolNotFound Exception/JSON Exception No value for null error. I believe I am close to converting the image URLs into bitmaps, but I seem to be missing ...
After conducting thorough research, I discovered that none of the suggested URLs met my criteria, prompting me to raise a new query. Here are my specific requirements: * The URL may or may not include 'http' or 'https' * The URL can consist solely of an I ...
Recently, I discovered a function in my code that allows me to cycle through different pictures and change the URL accordingly. The initial URL is obtained using angular routes, where the "domain" parameter consists of the domain.id and the domain.category ...
Trying to create a React component that changes its background image based on the props received. Any suggestions on how to achieve this functionality? The props object includes a property called synmain, which is a string linking to an image "../image.p ...
I have a website that consists of a single page and features four tabs. Whenever a tab is clicked, it displays the corresponding content in a div while hiding the other three divs along with their respective content. To ensure a smooth user experience, I u ...
view image here Any issues with the path for the image? If so, how can a valid image path be written in a MySQL database using PHP? Please note that the image shown above contains the column for images with paths such as C:/wamp/www/phpT/images/products/m ...
I've encountered an issue while trying to pass a list of subject IDs as query params in an Ajax get-request. The API expects the subjectId param to be either a single number or a string of numbers separated by commas. I have made sure that what I am sendin ...
In my Node.js script, I have the following type of link: 148414929_307508464041827_8013797938118488137_n.mp4.m4a?_nc_ht=scontent-mxp1-1.cdninstagram.com&_nc_ohc=_--i1eVUUXoAX9lJQ-u&ccb=7-4&oe=60835C8D&oh=61973532a48cb4fb62ac6711e7eba82f& ...
I need help finding a regex pattern that will only match valid URLs that are online. For example, it should match URLs like: exmaple.com http://exmaple.com https://exmaple.com www.exmaple.com http://www.example.com https://www.example.com It should al ...
Currently, I am trying to extract the browser URL from a user who has integrated my external JavaScript file into their website. The process involves them including the JS file, which triggers an Ajax call using jQuery to communicate with my Node server. ...
One of the components I've created in Next.js is a custom routing link that appends the locale before the pathname when clicked and applies a custom style for the active link. Below is the code snippet for this component: "use client"; imp ...
Currently, I am working on a project in Angular 5 and I need to remove the hash symbol (#) from my URL. The current URL looks like this: http://localhost:4200/#/product/add. While it works fine after being published on my domain, I encounter a 404 error ...
Can anyone help with an issue regarding json_decode from Instagram URL? When using the following URL , it returns Null in PHP. $newwul = "http://www.instagram.com/username/?__a=1"; $xo = connect($newwul); $xx = json_decode($xo,tru ...
My Angular application has a routing structure that includes a query parameter. Here is an example: const routes: Routes = [{ path: '', component: DefaultComponent }, { path: ':uname', component: ProductDisplayComponent }]; When I try to access th ...
I currently find myself on a webpage Is there a way to add a URL query string without reloading the page? For example, when I click a button, can the URL change to using jQuery ajax functions? ...
With regards to this page: I am in the process of developing a script that can extract a parameter from the URL to dynamically modify the select option, thus changing which vehicle is showcased alongside the Honda on the chart. I experimented with the fo ...
My task involves reading this remote XML file: , in an HTML file using Ajax! This is the code I have written: <script type="text/javascript"> getReadXmlFile(); function getReadXmlFile(){ alert("Searching for file"); $.ajax({ typ ...
Currently, I am working through a tutorial using the react-router-dom React library. One issue I am facing is that my navigation header continues to display no matter what URL I enter after localhost:3000. For example, even if I type localhost:3000/dflkjf ...
One of the challenges I face involves implementing "controllers" in my code: app.get('/',function(req,res){ var stuff = { 'title': 'blah' }; res.render('mytemplate',stuff); }); In particular, I'm worki ...
Here is the URL: http://www.example.com/segment_one/segment_two/segment_three#jumper How can I extract the #jumper section from the current URL? ...
Issue: After submitting the JSP form on Page1, it redirects to a server-side JSP page but appears as a blank page in the browser. Instead, I want it to redirect to Page2 which includes a list box that highlights the newly created item. Seeking help with t ...
$image = '<img src="http://some-img-link" alt="some-img-alt"/>'; $source = preg_match('/<img src="(.*?)">/', $image); echo $source; Can someone help me retrieve the src value from the img tag as well as possibly the alt value? ...
Recently, I developed a website that features profiles for each member. The user data is stored in a MySQL database while their profile pictures are saved in a folder named "pictures" with the username as the filename. Each member's username is unique. O ...
Currently involved in scraping data from this specific website to compile a database. Previously, I had functioning Python code available on GitHub that successfully accomplished this task. However, due to a major overhaul in the HTML structure of the site ...
During the exam, I am dealing with 2 tables. 1) Post - and its columns : pid : uid : title : content : created date : ... 2) URL alias aid : sou_url : des_url : The purpose of the second table is to store URL aliases for all pages on my website. I have ...
Good evening, everyone. This is my inaugural post on this platform, so I hope I am following the norms correctly. I have scoured various sources, including this site, in search of a solution to a problem I am facing, but I have not come across anything t ...
I'm feeling a bit lost here. I have this csv file containing two columns: name and picture URL. My goal is to bulk download the 70k images from the file and save them in a folder, renaming each image with the corresponding name from the first column. In ca ...